- Use
iw wlan0 get power_saveto see if the wifi power save feature is enabled or not - If you want to permantently disable it add this to the
/etc/network/interfacesafter theiface wlan0linewireless-power off - Reboot and if you run
iw wlan0 get power_saveyou should see that is off.
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div> | |
| <p id="logs" class="log"></p> | |
| </div> |
This file contains hidden or 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/bash | |
| TIMEOUTSEC=10 | |
| function findIP { | |
| startTime=$(date +%s) | |
| ip=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1') | |
| iplen=${#ip} | |
| elapsedTime=$(( $(date +%s) - startTime )) | |
| echo "Checking for IPv4 address..." |
NewerOlder