Reboot Script for Linksys WAP200 access points
Since the Linksys WAP200 has a tendency to hang and not let any users connect anymore, this little script to reboot an accesspoint (webinterface still works fine). Replace user and password with correct values.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/bash if [[ "$#" == "1" ]] then nc -w1 -z $1 443 if [[ "$?" == "0" ]] then wget -q -O - --user=foouser --password=foopass --no-check-certificate --post-data='DeviceReboot=1&page=AdminReboot.htm' https://${1}/reboot.cgi >/dev/null else echo "Could not connect to https webinterface on ${1}" fi else echo "Usage: $(basename $0) " fi |