summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragb <agb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-01-15 18:02:08 +0000
committeragb <agb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-01-15 18:02:08 +0000
commit8ace14ec404d9ffc8083393cb3f67361f3883ebe (patch)
treed1a3b1c77ca047ddba19f4470112480c4055b887
parent0a086206907ea0491b56d01e3280873571a69c0d (diff)
change LEDs on wrt54g3g only
/proc/diag is not available on x86, so check for existance to avoid errors... Thanks Markus Wigge git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14044 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/comgt/files/3g.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/comgt/files/3g.sh b/package/comgt/files/3g.sh
index b27e90e505..8fcac0936a 100644
--- a/package/comgt/files/3g.sh
+++ b/package/comgt/files/3g.sh
@@ -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