2016-07-20 13:44:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
. /lib/apm821xx.sh
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
|
|
|
board=$(apm821xx_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
2016-07-20 13:44:51 +00:00
|
|
|
mr24)
|
|
|
|
ucidef_set_led_netdev "wan" "WAN" "mr24:green:wan" "eth0"
|
|
|
|
ucidef_set_led_wlan "wlan1" "WLAN1" "mr24:green:wifi1" "phy0assoc"
|
|
|
|
ucidef_set_led_wlan "wlan2" "WLAN2" "mr24:green:wifi2" "phy0assoc"
|
|
|
|
ucidef_set_led_wlan "wlan3" "WLAN3" "mr24:green:wifi3" "phy0assoc"
|
|
|
|
ucidef_set_led_wlan "wlan4" "WLAN4" "mr24:green:wifi4" "phy0tpt"
|
|
|
|
;;
|
|
|
|
|
2016-07-20 13:44:54 +00:00
|
|
|
mbl)
|
|
|
|
;;
|
|
|
|
|
2016-07-20 13:44:50 +00:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|