[solved] Security LED Script WRT300n v1.1

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3
Author Message




Joined: 01 Jan 1970
Posts:

PostPosted: Thu Sep 30, 2010 19:49    Post subject: Reply with quote
On the wiki for 150N is posted

root@DD-WRT:~# gpio enable 5 #(SECURITY LED - off - green)
root@DD-WRT:~# gpio disable 5 #(SECURITY LED - on - green)
root@DD-WRT:~# gpio disable 3 #(SECURITY LED - on - amber)
root@DD-WRT:~# gpio enable 3 #(SECURITY LED - off - amber)


this applies for the WRT300Nv1.0 as well so to incorporate the amber into the mix as not secure:

while sleep 1; do
if [ `nvram get wl0_security_mode` = "disabled" ]; then
gpio enable 5
gpio disable 3
else
gpio enable 3
gpio disable 5
fi
done &
Sponsor
Dark_Shadow
DD-WRT Guru


Joined: 31 Aug 2009
Posts: 2448
Location: Third Rock from the Sun

PostPosted: Thu Sep 30, 2010 20:40    Post subject: Reply with quote
osmosis wrote:
On the wiki for 150N is posted

root@DD-WRT:~# gpio enable 5 #(SECURITY LED - off - green)
root@DD-WRT:~# gpio disable 5 #(SECURITY LED - on - green)
root@DD-WRT:~# gpio disable 3 #(SECURITY LED - on - amber)
root@DD-WRT:~# gpio enable 3 #(SECURITY LED - off - amber)


this applies for the WRT300Nv1.0 as well so to incorporate the amber into the mix as not secure:

while sleep 1; do
if [ `nvram get wl0_security_mode` = "disabled" ]; then
gpio enable 5
gpio disable 3
else
gpio enable 3
gpio disable 5
fi
done &
I will give this a go on the v1.1 this thread is about. Hopefully the gpio's are the same for the 300Nv1.1 as the 300Nv1.0 & 150N
_________________
Peacock Thread-FAQ -- dd-wrt Wiki

Testing Multiple Routers -- Bootloader Collection Project -- My Wiki




Joined: 01 Jan 1970
Posts:

PostPosted: Thu Sep 30, 2010 23:05    Post subject: Reply with quote
Sure. you could always test out the different GPIOs in a telnet session first to make sure. I was just reporting on the WRT300N v1 since I didn't find it anywhere else and I spent a half hour fiddling with it and this script. I also thought it would be nice to keep the 300N LED stuff in one spot seeing as this was the closest thing a forum search yielded.

Note they aren't as bright as the other LEDs, not sure if there's another GPIO for that as there are with other routers or not; if so, I couldn't find it (and I tried most if not all of the relevant GPIOs).

Cheers! Wink
Dark_Shadow
DD-WRT Guru


Joined: 31 Aug 2009
Posts: 2448
Location: Third Rock from the Sun

PostPosted: Fri Oct 01, 2010 2:44    Post subject: Reply with quote
osmosis wrote:
Sure. you could always test out the different GPIOs in a telnet session first to make sure. I was just reporting on the WRT300N v1 since I didn't find it anywhere else and I spent a half hour fiddling with it and this script. I also thought it would be nice to keep the 300N LED stuff in one spot seeing as this was the closest thing a forum search yielded.

Note they aren't as bright as the other LEDs, not sure if there's another GPIO for that as there are with other routers or not; if so, I couldn't find it (and I tried most if not all of the relevant GPIOs).

Cheers! Wink
Good call, works great on the 1.1 as well.
_________________
Peacock Thread-FAQ -- dd-wrt Wiki

Testing Multiple Routers -- Bootloader Collection Project -- My Wiki
Goto page Previous  1, 2, 3 Display posts from previous:    Page 3 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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 can attach files in this forum
You can download files in this forum