Fun with LEDs

Discussion in 'HyperWRT Firmware' started by cessna, Mar 22, 2006.

  1. cessna

    cessna Guest

    while sleep 600; do
    	ping -c1 -w1 > /dev/null
    	if [ $? -ne 0 ]
    			led am on wh of
    		led am of wh on
    This little script attempts to ping a local host on the Network. If the host responds it shows the White LED. If it doesn't respond it shows a Amber LED. It rechecks every 10 minutes.

    Anyone else have any cool LED scripts? I've been trying to figure out what I can use the DMZ/Power LEDs for...

    I might configure the SES Button to send a WoL Packet to that system.
  2. starbiker99

    starbiker99 Network Guru Member

    How do I get the full command to run it seems I have to enter one line at a time and it doesnt work?
  3. SteelersFANinMA

    SteelersFANinMA Network Guru Member

    I'm going to assume that you're trying to run this script through the Run Command prompt. If so, try entering it into the Startup Script. It should work then.
  4. starbiker99

    starbiker99 Network Guru Member

    That was the problem. Thanks
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice