Created
January 6, 2018 18:13
-
-
Save rolandoislas/f06c7126f3dff16fc56db75665b5562e to your computer and use it in GitHub Desktop.
Script to restart the radio on a DD-WRT router
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
#!/usr/bin/env sh | |
# Restarts the radio of a DD-WRT router | |
# | |
# Version 1.0 | |
echo "Stopping radio" | |
stopservice nas | |
wl -i eth1 radio off | |
echo "Starting radio" | |
stopservice nas | |
wl -i eth1 radio on | |
startservice nas | |
radio_status="$(wl radio)" | |
echo $radio_status | |
echo "Radio restarted" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment