1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 02:48:26 +02:00

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
This commit is contained in:
agb 2009-01-15 18:02:08 +00:00
parent 0a08620690
commit 8ace14ec40

View File

@ -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