From 8ace14ec404d9ffc8083393cb3f67361f3883ebe Mon Sep 17 00:00:00 2001 From: agb Date: Thu, 15 Jan 2009 18:02:08 +0000 Subject: 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 --- package/comgt/files/3g.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3