Skip to content

Instantly share code, notes, and snippets.

@rolandoislas
Created January 6, 2018 18:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolandoislas/f06c7126f3dff16fc56db75665b5562e to your computer and use it in GitHub Desktop.
Save rolandoislas/f06c7126f3dff16fc56db75665b5562e to your computer and use it in GitHub Desktop.
Script to restart the radio on a DD-WRT router
#!/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