projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ca7f3b
)
change LEDs on wrt54g3g only /proc/diag is not available on x86, so check for existan...
author
Andy Boyett
<agb@openwrt.org>
Thu, 15 Jan 2009 18:02:08 +0000
(18:02 +0000)
committer
Andy Boyett
<agb@openwrt.org>
Thu, 15 Jan 2009 18:02:08 +0000
(18:02 +0000)
SVN-Revision: 14044
package/comgt/files/3g.sh
patch
|
blob
|
history
diff --git
a/package/comgt/files/3g.sh
b/package/comgt/files/3g.sh
index b27e90e5050eb3c164376ed1e7ffaade114f5ac8..8fcac0936a240d2528cab4a546326c608e25416f 100644
(file)
--- 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