adding powersafe off for wifi in rpis
This commit is contained in:
12
hardware/raspberrypi/wifi/files/wifi-powermanagement-off
Normal file
12
hardware/raspberrypi/wifi/files/wifi-powermanagement-off
Normal 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
|
||||
Reference in New Issue
Block a user