File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,14 @@ EOF
271271 cat > " $DEST /etc/modprobe.d/blacklist-pine64.conf" << EOF
272272blacklist 8723bs_vq0
273273EOF
274- if [ -e " $DEST /etc/network/interfaces" ]; then
275- cat >> " $DEST /etc/network/interfaces" << EOF
276-
277- # Disable wlan1 by default (8723bs has two intefaces)
278- iface wlan1 inet manual
274+ if [ -d " $DEST /etc/modprobe.d" ]; then
275+ # Based on https://github.com/ayufan-pine64/linux-build/commit/e03970dfd0a9b894037ecdd5a8b70ab7ad5107ea
276+ # 8723bs is used in Pine64
277+ # 8723cs is used in Pinebook
278+ cat > " $DEST /etc/modprobe.d/wifi-rt8723-pine64.conf" << EOF
279+ # Disable secondary interface and power management.
280+ options 8723bs if2name=p2p0 rtw_power_mgnt=0
281+ options 8723cs if2name=p2p0 rtw_power_mgnt=0
279282EOF
280283 fi
281284}
You can’t perform that action at this time.
0 commit comments