Last active
May 13, 2022 01:04
-
-
Save jhthorsen/8393f1fcf2327be9a435 to your computer and use it in GitHub Desktop.
Fix iwlwifi power save
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 | |
EXPRESSION=${1:-"tcp port 22"}; | |
DEVICE="wlan0"; | |
while tcpdump -p -c 1 -i $DEVICE "$EXPRESSION"; do | |
iwconfig $DEVICE power off; | |
sleep 600; | |
iwconfig $DEVICE power on; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment