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


Discussion in 'HyperWRT Firmware' started by GhaladReam, Sep 28, 2006.

  1. GhaladReam

    GhaladReam Network Guru Member

    I'm wondering how to completely turn off the WLAN led in the Startup script of Thibor15c. I tried the method mentioned on Thibor's site, that is to add the following line:

    led wl off

    I also tried

    led wl of

    That didn't work either. I do however have some other things in my startup script. Here is my startup script I currently have:

    echo 8192 > /proc/sys/net/ipv4/ip_conntrack_max
    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
    echo "600 1800 120 60 120 120 10 60 30 120" > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts
    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 tried adding the "led wl of/off" commands at the end after "done" (leaving a space below) and they didn't work. Am I missing something? Reason I want it off is because with the above script, I already know when a wireless client is connected and using bandwidth, and I always confuse the WLAN led with an ethernet LED, because my router is in a dark-ish room.

  2. mstombs

    mstombs Network Guru Member

    Yes, you have created a loop the code never gets past "done" - try putting

    led wl of

    above the done (below fi the end of the if) and then it will switch the led off every second - just in case something else turns it on?
  3. RonWessels

    RonWessels Network Guru Member

    In fact, that entire section from the "#!/bin/sh" to the end of file is designed to turn on the LED if someone is connecting wirelessly to your router and change color when traffic is flowing. If you want the LED permanently off, simply delete those lines and replace them with "led am of wh of".
  4. GhaladReam

    GhaladReam Network Guru Member

    Yes, however the script that I have applies to the SES Light. The big Orange/White LED. I want that script there. The LED I'm talking about is the tiny green one next to the ethernet LEDs.

    This brings me to my next issue. For certain reasons, I needed to turn the wl LED back on. Now when I issue the "led wl on" command after the last "fi" and before "done", the wl led seems to be in a blinking state. What do I do to make it solid (ie not blinking) again?

  5. GhaladReam

    GhaladReam Network Guru Member

    So much for my router's reign... My uptime was 141 days, 2 hours. Had to reboot it to fix this problem. Oh well.

Share This Page