1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configuring the SES LED button

Discussion in 'Tomato Firmware' started by aeonone, Jan 8, 2007.

  1. aeonone

    aeonone Network Guru Member

    Is there any script or way to make it so that when there is at least one wireless connection, the led is turned on?
     
  2. Reiper

    Reiper LI Guru Member

    There is this one written for HyperWRT so I'm not sure if it will work with Tomato...

    Amber when a wireless client is connected, white when there's data being transferred wirelessly:

    #!/bin/sh
    I=`nvram get wl0_ifname`
    while sleep 1; do
    if [ "`wl assoclist`" != "" ]; then
    XFER=`ifconfig $I|grep bytes`
    if [ "$XFER" != "$PXFER" ]; then
    LED="am on wh on"
    PXFER=$XFER
    else
    LED="am on wh of"
    fi
    else
    LED="am of wh of"
    fi
    if [ "$LED" != "$PLED" ]; then
    led $LED
    PLED=$LED
    fi
    done
     
  3. aeonone

    aeonone Network Guru Member

    Thanks! Which section of the router is this for? NVRAM?
     
  4. Reiper

    Reiper LI Guru Member

    My guess would be Administration/Scripts/Init? Someone else that is more familiar with scripts may know better...
     
  5. digitalgeek

    digitalgeek Network Guru Member

    When I ran Thibor I tried this script and it worked quite well on my GS router (my G does not have an ses button/light)... it actually blinked white with traffic.

    I put it in the startup(init) script.
     

Share This Page