Add scripts, configurations, docs from borgcube
This commit is contained in:
14
bin/wifi-power-off
Executable file
14
bin/wifi-power-off
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently
|
||||
# /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
|
||||
# [connection]
|
||||
# wifi.powersave = 2
|
||||
|
||||
#DEVICE=wlp0s20f3
|
||||
DEVICE=$(ip route list default | awk '{ print $5 }')
|
||||
echo "Device $DEVICE"
|
||||
ip -c -4 addr show dev $DEVICE
|
||||
|
||||
iwconfig $DEVICE power off
|
||||
|
||||
Reference in New Issue
Block a user