diff options
author | Markus Wigge <markus@cultcom.de> | 2010-08-02 10:32:39 +0000 |
---|---|---|
committer | Markus Wigge <markus@cultcom.de> | 2010-08-02 10:32:39 +0000 |
commit | d4e110704c0066e137e2c1ca34ca4fb5086df34e (patch) | |
tree | e65de2346db2671bb0c9d194d8ba3e8650f2ca65 /package/comgt/files/3g.sh | |
parent | 6e62d58483485a2caaedec47bb0dc3bd3d404fa3 (diff) | |
download | upstream-d4e110704c0066e137e2c1ca34ca4fb5086df34e.tar.gz upstream-d4e110704c0066e137e2c1ca34ca4fb5086df34e.tar.bz2 upstream-d4e110704c0066e137e2c1ca34ca4fb5086df34e.zip |
LED handling fixes for WRT54-G3Gv2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22462 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/comgt/files/3g.sh')
-rw-r--r-- | package/comgt/files/3g.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/comgt/files/3g.sh b/package/comgt/files/3g.sh index 59e99c761d..c6f8ffbfc2 100644 --- a/package/comgt/files/3g.sh +++ b/package/comgt/files/3g.sh @@ -1,9 +1,10 @@ set_3g_led() { # set on WRT54G3G only - [ -d /proc/diag ] || return 0 - grep WRT54G3G /proc/diag/model >/dev/null || return 0 + [ -f /proc/diag/model ] || return 0 + grep -q "WRT54G3G" /proc/diag/model >/dev/null || return 0 echo "$1" > /proc/diag/led/3g_green echo "$2" > /proc/diag/led/3g_blue + grep -q "WRT54G3G$" /proc/diag/model >/dev/null || return 0 echo "$3" > /proc/diag/led/3g_blink } |