LED script does not work for me in Tofu12

Discussion in 'HyperWRT Firmware' started by lanceykins, Feb 2, 2006.

  1. lanceykins

    lanceykins Network Guru Member

    I browsed through the readme file of Tofu12 and came across this script and what it does:

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

    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"
    $LED="am on wh of"
    $LED="am of wh of"
    if [ "$LED" != "$PLED" ]; then
    led $LED


    I put this in the startup script but it does not work for me even after rebooting the router.

    any help is much appreciated. Thank you
  2. Fr_rene

    Fr_rene Network Guru Member


    Me too,

    It doesn't work

    Any help ??
  3. cgondo

    cgondo Network Guru Member

    mine neither
  4. Thibor

    Thibor Super Moderator Staff Member Member

    are you using v3.0+ routers? if not, the script won't work as they don't have the ses led
  5. john9527

    john9527 Network Guru Member

    There's a slight error in the script.....remove the $ from the $LED="am......" statements.

    At least, this worked for me.....
  6. tofu

    tofu Network Guru Member

    oops, i didn't notice.
  7. lanceykins

    lanceykins Network Guru Member

    @tofu its a ver 3.1

    i'll try fixing the script

    thank you for all your help :cheering:
  8. nando1975

    nando1975 Network Guru Member

    i have a question can i use tath script with a wrt54gs v4 with thibor 13c instaled

  9. Fr_rene

    Fr_rene Network Guru Member


    Yes without problem !!!
  10. lanceykins

    lanceykins Network Guru Member

    thank you for this firmware
    it's really great :rockon:
  11. bat420

    bat420 Network Guru Member

    $LED="am on wh on"
    $LED="am on wh of"
    $LED="am of wh of"

    remove the $ from the front of those 3 lines to have the script work right i had to do that for thibor 12 and 13 for my v4.
  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