Last active
March 3, 2020 07:21
-
-
Save kamawanu/85c67862ec4c5e4cb4d31bf5cd68ba24 to your computer and use it in GitHub Desktop.
https://forum.clockworkpi.com/t/how-to-disable-wifi-power-save-to-prevent-disconnects/933 /etc/network/if-up.d/powesave_off
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
set -e | |
# Don't bother for loopback | |
if [ "$IFACE" = lo ]; then | |
exit 0 | |
fi | |
# Only run from ifup. | |
if [ "$MODE" != start ]; then | |
exit 0 | |
fi | |
# Only do it once (skip for inet6). | |
if [ "$ADDRFAM" != inet ]; then | |
exit 0 | |
fi | |
/sbin/iw dev "$IFACE" set power_save off | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment