summaryrefslogtreecommitdiffstats
path: root/package/comgt/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/comgt/files')
-rw-r--r--package/comgt/files/3g.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/comgt/files/3g.sh b/package/comgt/files/3g.sh
index 59e99c761..c6f8ffbfc 100644
--- a/package/comgt/files/3g.sh
+++ b/package/comgt/files/3g.sh
@@ -1,9 +1,10 @@
set_3g_led() {
# set on WRT54G3G only
- [ -d /proc/diag ] || return 0
- grep WRT54G3G /proc/diag/model >/dev/null || return 0
+ [ -f /proc/diag/model ] || return 0
+ grep -q "WRT54G3G" /proc/diag/model >/dev/null || return 0
echo "$1" > /proc/diag/led/3g_green
echo "$2" > /proc/diag/led/3g_blue
+ grep -q "WRT54G3G$" /proc/diag/model >/dev/null || return 0
echo "$3" > /proc/diag/led/3g_blink
}