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

SES LED Script Request

Discussion in 'Tomato Firmware' started by jmmjm, Oct 13, 2008.

  1. jmmjm

    jmmjm Addicted to LI Member

    Could someone please share the script that do the following?

    Wireless off SES LED off
    Wireless on w/ no wireless connections SES LED amber
    Wireless on w/ wireless connections SES LED white
    SES button toggles wireless on/off (This can be done in Tomato setting)

    Does Tomato has some settings to do it without writing self defined scripts?
    If not, could someone please post one for me?

    Thanks in advance.
     
  2. Rob650

    Rob650 Addicted to LI Member

  3. jmmjm

    jmmjm Addicted to LI Member

    err... thanks. I am a newbie, i don't understand that script, do i need to modify it to satisfy my need?

    thanks.

    Code:
    sleep 5
    I=`nvram get wl0_ifname`
    while sleep 1; do
    if [ "`wl assoclist`" != "" ]; then
    XFER=`ifconfig $I|grep bytes`
    if [ "$XFER" != "$PXFER" ]; then
    LED="amber on white on"
    PXFER=$XFER
    else
    LED="amber on white off"
    fi
    else
    LED="amber off white off"
    fi
    if [ "$LED" != "$PLED" ]; then
    led $LED
    PLED=$LED
    fi
    done
    
     

Share This Page