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

newbie SES led script question

Discussion in 'Tomato Firmware' started by katamara, May 2, 2008.

  1. katamara

    katamara Guest

    OK, I'm a newbie to Tomato and really dont know much about scripts. I've done some searching but havent found exactly what I'm looking for, I'm hoping someone more knowledgeable than myself can help me.

    Script I'm looking for:

    Wireless off SES LED off
    Wireless on w/ no wireless connections SES LED white
    Wireless on w/ wireless connections SES LED amber
    SES button toggles wireless on/off



    TIA
     
  2. apillowofclouds

    apillowofclouds Addicted to LI Member

    That sounds cool, anyone know how to do it?
     
  3. jestermiami

    jestermiami Addicted to LI Member

    Here is a script i use.. i cant remember where i found it or who made it but it does work--
    Code:
    #!/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="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