From: Andy Boyett Date: Thu, 15 Jan 2009 18:02:08 +0000 (+0000) Subject: change LEDs on wrt54g3g only /proc/diag is not available on x86, so check for existan... X-Git-Tag: reboot~24780 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cd0cd144211799097831bd8afec5d68a5cd45b9a;p=openwrt%2Fstaging%2Fxback.git 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 --- 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