Blinking LED shows number of associated wireless clients

Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload
Author Message
joeDeuce
DD-WRT Novice


Joined: 10 Jul 2010
Posts: 1

PostPosted: Sat Jul 24, 2010 2:00    Post subject: Blinking LED shows number of associated wireless clients Reply with quote
Thought someone might find this useful. I'm too lazy to register for the wiki to add it there. :/

Tested on a WRT54GL, but should work with any broadcom chipset i guess.
Code:

#!/bin/sh
WTTIME=3
WINAME=`nvram get wl0_ifname`
while sleep $WTTIME; do
    NUMCLIENTS=`wl -i $WINAME assoclist | wc -l`
    i=0
    while [ $i != $NUMCLIENTS ]; do   
        gpio disable 2
        usleep 150000
        gpio enable 2
        usleep 225000
        i=`expr $i + 1`
    done
done
Sponsor
mojso
DD-WRT User


Joined: 09 Sep 2007
Posts: 232
Location: Macedonia

PostPosted: Mon Jul 26, 2010 13:09    Post subject: Re: Blinking LED shows number of associated wireless clients Reply with quote
good script

Quote:

but should work with any broadcom chipset i guess.



script will not work on dd-wrt micro version, because `expr` command does not exist in the micro version
liverpoolatnight
DD-WRT User


Joined: 29 May 2008
Posts: 243
Location: United Kingdom

PostPosted: Mon Apr 18, 2011 13:07    Post subject: Reply with quote
cool Razz

This work on my linksys WRT54GS v4 Very Happy Very Happy

_________________
TP-Link TL-WDR3600 v1 [EU]: r36330 (07/16/18 )
D-Link DIR-615 D2 [EU]: r36330 (07/16/18 )
Mikrotik RB750r2 (OpenWrt 17.01.4)
EE BrightBox 1 aka A4001N (OpenWrt 17.01.4)
Sagemcom FAST@5364 (VDSL2,FTTC (Fibre to the Cabinet) Synced 65/17

Twitter: @francisuk1989
---------------------------------
Found a bug? Report it http://svn.dd-wrt.com
DD-WRT Official FB Group: https://www.facebook.com/groups/493762527744455
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum