Skip to content

Commit 1dcf30d

Browse files
committed
On second thought, lets add this to the network module guysoft/OctoPi#721
1 parent e2f96c5 commit 1dcf30d

2 files changed

Lines changed: 7 additions & 20 deletions

File tree

src/modules/network/start_chroot_script

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,11 @@ sed -i 's@exit 0@@' /etc/rc.local
5454
echo '/sbin/iptables -t mangle -I POSTROUTING 1 -o wlan0 -p udp --dport 123 -j TOS --set-tos 0x00' >> /etc/rc.local
5555
echo 'exit 0' >> /etc/rc.local
5656

57+
# Turn off wlan power management
58+
sed -i 's@exit 0@@' /etc/rc.local
59+
cat <<'EOT' >> /etc/rc.local
60+
echo "Disabling power management for wlan0"
61+
iw dev wlan0 set power_save off
62+
EOT
63+
5764

src/modules/wireless-powersave-off/start_chroot_script

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)