change LEDs on wrt54g3g only /proc/diag is not available on x86, so check for existance to avoid errors... Thanks Markus Wigge
SVN-Revision: 14044
This commit is contained in:
parent
3ca7f3bd6f
commit
cd0cd14421
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
|||
set_3g_led() {
|
||||
# set on WRT54G3G only
|
||||
[ -d /proc/diag ] || return 0
|
||||
grep WRT54G3G /proc/diag/model >/dev/null || return 0
|
||||
echo "$1" > /proc/diag/led/3g_green
|
||||
echo "$2" > /proc/diag/led/3g_blue
|
||||
|
|
Loading…
Reference in a new issue