corz.org front page. welcome! cor's blog, aka 'corzblog'. I write stuff here.. downloads of all shapes and sizes, documents, secret chasms, you name it.. developing sites, software, stuff.. updates generally get posted here. music is everywhere, sometimes I pin it down.. soul-candy, captured things you can look at.. 'Mathematics For Women' copyright Cor 1994 ;o)
the power to serve, at home or anywhere. webmasters tricks, tips, tools and resources. the devil's work, or a capable multimedia desktop, you decide..
information and search
contact page for corz.org, ways to get $hit to me.. get a print friendly version of this page, probably.. Put YOUR money where MY mouth is!
 
corz.org text viewer..
[currently viewing: /public/docs/comms/router/shell scripts/rr.sh - raw]
 
#!/bin/sh

#
# reboot the router v0.2
#
# the trick to this technique, is...
# (drum roll please) a DELAY after the commands. 
# well, it works for me ;o)
###

###
# drop this script into your PATH somewhere, and make it executable
# cp rr /usr/local/bin/rr
# chmod +x /usr/local/bin/rr
#
# to reboot the router, simply type "rr" from your shell.
#

# prefs..

#router="router"
router="192.168.1.1"
user="admin"
password="admin"
command="reboot"

# let's go..
{
    sleep 1;
    echo $user
    sleep 1;
    echo $password
    sleep 1;
    echo $command
    sleep 1;
    
} | telnet $router

# fin