Skip to content

Commit f20137a

Browse files
committed
Use module options to disable secondary interface of wifi driver and disable power management
1 parent 0399b68 commit f20137a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

simpleimage/make_rootfs.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,14 @@ EOF
271271
cat > "$DEST/etc/modprobe.d/blacklist-pine64.conf" <<EOF
272272
blacklist 8723bs_vq0
273273
EOF
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
279282
EOF
280283
fi
281284
}

0 commit comments

Comments
 (0)