aboutsummaryrefslogtreecommitdiffstats
path: root/package/comgt
diff options
context:
space:
mode:
authorAndy Boyett <agb@openwrt.org>2009-01-15 18:02:08 +0000
committerAndy Boyett <agb@openwrt.org>2009-01-15 18:02:08 +0000
commit0865b3bfccdac008af2fe55b68d0c00caacf9aaf (patch)
treed1a3b1c77ca047ddba19f4470112480c4055b887 /package/comgt
parent0b145d2e847b51bda63d0f8a52bd0a8a1f65e4b9 (diff)
downloadupstream-0865b3bfccdac008af2fe55b68d0c00caacf9aaf.tar.gz
upstream-0865b3bfccdac008af2fe55b68d0c00caacf9aaf.tar.bz2
upstream-0865b3bfccdac008af2fe55b68d0c00caacf9aaf.zip
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
Diffstat (limited to 'package/comgt')
-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