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

Changing SES Light on WDS

Discussion in 'Tomato Firmware' started by Master_Nick, Jul 15, 2008.

  1. Master_Nick

    Master_Nick Addicted to LI Member

    Hello everyone :)

    i use that script on one of my WRT54GL which makes the amber and white Led go on or off by wireless connectivity.

    it works fine....

    now i search a script for changing the led white if the Accesspoint which is entered in the WDS Settings is connected or amber if it isnt.


    Any idea?.... I'm a bit new to that all ;)
     
  2. danix71

    danix71 LI Guru Member

    You have this on a GL that is bridge with the router? In that case I was looking after that script :). Aa, one more question, how high it's the loading of the processor, when the script is running? Thank you.

    LE: Doesn't work for me.
     
  3. Master_Nick

    Master_Nick Addicted to LI Member

    You got me wrong the script i posted was an example for the thing that a wireless client connects.

    For WDS it dont works

    Im searching a script which shows WDS connectivity on LED ;)
     
  4. danix71

    danix71 LI Guru Member

    Then, we are two. :)
     
  5. Master_Nick

    Master_Nick Addicted to LI Member

    Nobody knows ho the script must look like if i dont want to use the wlan list, but the wds connection ??
     
  6. TexasFlood

    TexasFlood Network Guru Member

    There is a single command to list wireless clients but I'm not aware of a similar command for WDS. I'm sure there's a way to do it, I just don't know it.

    However if you're linked to a known router with a static IP address, then just use ping to see if the the link is up.

    For example, modifying the script above to ping an IP address of 192.168.1.2 which in this example would be the router on the other side of the WDS link, or "remote" WDS router. Just define the variable "remotewdsip" with the IP address of the router to be pinged on the other side of the WDS link. If a ping times out, the link is assumed down and the light turned off. If the ping succeeds then the link is assumed up and the light turned on.
    Code:
    remotewdsip="192.168.1.2"
    sleep 2
    while sleep 20; do
    if [ "`ping -c 1 $remotewdsip|grep 100%`" == "" ] ; then
    led amber off white on
    else
    led amber on white off
    fi
    done
     
  7. Master_Nick

    Master_Nick Addicted to LI Member

    Thats it !!! Wohoooo ;)

    Thank you!!!!
     
  8. danix71

    danix71 LI Guru Member

    INDEED, that's it!
    Also from me, thank you Tex! :thumbup::thumbups:
     
  9. nexxman

    nexxman Addicted to LI Member

    Thanks Tex! This is excellent. I use it in my livingroom client bridge and its nice to be able to tell when the link is always up. Do you have a script for checking the WAN connection on the main router?
     
  10. Low-WRT

    Low-WRT LI Guru Member

    If anyone is interested, I modified TexasFlood's script. Now, by looking at the Cisco light, I not only know if my WDS link is up, I can also tell if my WAN connection is up as well.
    Instead of pinging the static ip of the host ap, I ping one of Yahoo's servers. I have it set for every 10 min., which is plenty for me. I also changed the leds to suite my needs.
    Code:
    sleep 5
    remotewdsip="69.147.76.15"
    sleep 2
    while sleep 600; do
    if [ "`ping -c 1 $remotewdsip|grep 100%`" == "" ] ; then
    led amber on white off
    else
    led amber off white on
    fi
    done
     
  11. Low-WRT

    Low-WRT LI Guru Member

    I'm just a cut & paster, but does this work?
    This should ping a Yahoo server every 5 mintues...

    Code:
    sleep 5
    wanup="69.147.76.15"
    sleep 2
    while sleep 300; do
    if [ "`ping -c 1 $wanup|grep 100%`" == "" ] ; then
    led amber on white off
    else
    led amber off white on
    fi
    done
     

Share This Page