summaryrefslogtreecommitdiff
path: root/package/comgt/files/3g.sh
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
commitcd0cd144211799097831bd8afec5d68a5cd45b9a (patch)
treef6388aefbecf55ac488536bad651093ae1da59fe /package/comgt/files/3g.sh
parent3ca7f3bd6f53c36530693696670a182208b0925c (diff)
downloadmtk-20170518-cd0cd144211799097831bd8afec5d68a5cd45b9a.zip
mtk-20170518-cd0cd144211799097831bd8afec5d68a5cd45b9a.tar.gz
mtk-20170518-cd0cd144211799097831bd8afec5d68a5cd45b9a.tar.bz2
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
Diffstat (limited to 'package/comgt/files/3g.sh')
-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 b27e90e..8fcac09 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