aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc/uci-defaults/leds
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-05 10:12:53 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-05 10:12:53 +0000
commit5c105d9f3fd086aff195d3849dcf847d6b0bd927 (patch)
tree1229a11f725bfa58aa7c57a76898553bb5f6654a /target/linux/lantiq/base-files/etc/uci-defaults/leds
downloadopenwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.tar.gz
openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.zip
branch Attitude Adjustment
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files/etc/uci-defaults/leds')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/uci-defaults/leds58
1 files changed, 58 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/leds b/target/linux/lantiq/base-files/etc/uci-defaults/leds
new file mode 100755
index 000000000..64b080f33
--- /dev/null
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/leds
@@ -0,0 +1,58 @@
+#!/bin/sh
+#
+# Copyright (C) 2011 OpenWrt.org
+# based on ar71xx
+#
+
+. /lib/functions/uci-defaults.sh
+. /lib/lantiq.sh
+
+board=$(lantiq_board_name)
+
+case "$board" in
+ARV4520PW|ARV452CPW)
+ ucidef_set_led_netdev "wifi" "wifi" "soc:blue:wifi" "wlan0"
+ ucidef_set_led_usbdev "usb" "USB" "soc:blue:usb" "1-1"
+ ucidef_set_led_default "fxs1" "fxs1" "soc:blue:fxs1" "1"
+ ucidef_set_led_default "fxs2" "fxs2" "soc:blue:fxs2" "1"
+ ucidef_set_led_default "online" "online" "soc:blue:internet" "1"
+ ;;
+
+ARV7525PW)
+ ucidef_set_led_netdev "wifi" "wifi" "soc:green:wifi" "wlan0"
+ ucidef_set_led_default "fxs1" "fxs1" "soc:green:fxs1" "1"
+ ucidef_set_led_default "fxs2" "fxs2" "soc:green:fxs2" "1"
+ ucidef_set_led_default "dsl" "dsl" "soc:red:dsl" "1"
+ ucidef_set_led_default "online" "online" "soc:green:online" "1"
+ ;;
+
+ARV4525PW)
+ ucidef_set_led_netdev "wifi" "wifi" "soc:green:wifi" "wlan0"
+ ucidef_set_led_default "fxs1" "fxs1" "soc:green:fxs1" "1"
+ ucidef_set_led_default "fxs2" "fxs2" "soc:green:fxs2" "1"
+ ucidef_set_led_default "dsl" "dsl" "soc:green:dsl" "1"
+ ucidef_set_led_default "online" "online" "soc:green:online" "1"
+ ;;
+
+GIGASX76X)
+ ucidef_set_led_wlan "wifi" "wifi" "soc:green:wifi" "phy0radio"
+ ucidef_set_led_netdev "online" "online" "soc:green:online" "pppoe-wan"
+ ucidef_set_led_usbdev "usb" "USB" "soc:green:usb" "1-1"
+ ;;
+
+ARV4519PW)
+ ucidef_set_led_wlan "wifi" "wifi" "soc:green:wifi" "phy0radio"
+ ucidef_set_led_netdev "internet" "internet" "soc:green:internet" "pppoe-wan"
+ ucidef_set_led_usbdev "usb" "USB" "soc:green:usb" "1-1"
+ ;;
+
+ARV7518PW)
+ ucidef_set_led_wlan "wifi" "wifi" "soc:green:wifi" "phy0radio"
+ ucidef_set_led_netdev "internet" "internet" "soc:green:internet" "pppoe-wan"
+ ucidef_set_led_usbdev "usb" "USB" "soc:green:usb" "1-1"
+ ;;
+esac
+
+ucidef_commit_leds
+
+exit 0