diff options
author | Andy Boyett <agb@openwrt.org> | 2009-01-15 18:02:08 +0000 |
---|---|---|
committer | Andy Boyett <agb@openwrt.org> | 2009-01-15 18:02:08 +0000 |
commit | cd0cd144211799097831bd8afec5d68a5cd45b9a (patch) | |
tree | f6388aefbecf55ac488536bad651093ae1da59fe /package | |
parent | 3ca7f3bd6f53c36530693696670a182208b0925c (diff) | |
download | upstream-cd0cd144211799097831bd8afec5d68a5cd45b9a.tar.gz upstream-cd0cd144211799097831bd8afec5d68a5cd45b9a.tar.bz2 upstream-cd0cd144211799097831bd8afec5d68a5cd45b9a.zip |
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')
-rw-r--r-- | package/comgt/files/3g.sh | 2 |
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 |