adding powersafe off for wifi in rpis

This commit is contained in:
do
2021-09-09 17:10:07 +02:00
parent 5e9ea64d41
commit 73a24f50c6
5 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# disable powersave
[connection]
wifi.powersave = 2

View File

@@ -0,0 +1,12 @@
#!/bin/sh
IWCONFIG=/sbin/iwconfig
WLAN_IFACE=wlan0
if [ ! -x $IWCONFIG ]; then
exit 1
fi
if [ "$IFACE" = $WLAN_IFACE ]; then
$IWCONFIG $IFACE power off
fi