2011-11-13 07:40:21 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2011 OpenWrt.org
|
|
|
|
# based on ar71xx
|
|
|
|
#
|
|
|
|
|
2012-05-30 00:39:21 +08:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2011-11-13 07:40:21 +08:00
|
|
|
. /lib/lantiq.sh
|
|
|
|
|
|
|
|
board=$(lantiq_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
2012-03-25 16:50:30 +08:00
|
|
|
ARV4520PW|ARV452CPW)
|
2012-05-30 00:39:21 +08:00
|
|
|
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"
|
2012-03-25 16:50:30 +08:00
|
|
|
;;
|
|
|
|
|
2011-11-13 07:40:21 +08:00
|
|
|
ARV7525PW)
|
2012-05-30 00:39:21 +08:00
|
|
|
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"
|
2011-11-13 07:40:21 +08:00
|
|
|
;;
|
|
|
|
|
2012-03-25 16:50:30 +08:00
|
|
|
ARV4525PW)
|
2012-05-30 00:39:21 +08:00
|
|
|
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"
|
2012-03-25 16:50:30 +08:00
|
|
|
;;
|
|
|
|
|
2011-11-13 07:40:21 +08:00
|
|
|
GIGASX76X)
|
2012-05-30 00:39:21 +08:00
|
|
|
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"
|
2012-03-25 16:50:30 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
ARV4519PW)
|
2012-05-30 00:39:21 +08:00
|
|
|
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"
|
2012-03-25 16:50:30 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
ARV7518PW)
|
2012-05-30 00:39:21 +08:00
|
|
|
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"
|
2011-11-13 07:40:21 +08:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2012-05-30 00:39:21 +08:00
|
|
|
ucidef_commit_leds
|
2011-11-13 07:40:21 +08:00
|
|
|
|
|
|
|
exit 0
|