2021-08-06 23:05:53 +08:00
|
|
|
#!/bin/sh
|
2020-07-02 23:34:55 +08:00
|
|
|
|
2020-07-29 19:02:51 +08:00
|
|
|
. /lib/functions/leds.sh
|
2020-07-02 23:34:55 +08:00
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
|
2020-07-29 19:02:51 +08:00
|
|
|
board=$(board_name)
|
|
|
|
boardname="${board##*,}"
|
|
|
|
|
2020-07-02 23:34:55 +08:00
|
|
|
board_config_update
|
|
|
|
|
2020-07-29 19:02:51 +08:00
|
|
|
case $board in
|
2021-11-10 23:30:09 +08:00
|
|
|
embedfire,doornet1|\
|
2021-09-23 14:47:55 +08:00
|
|
|
friendlyarm,nanopi-r2c|\
|
2021-08-06 23:05:53 +08:00
|
|
|
friendlyarm,nanopi-r2s|\
|
2021-12-22 23:29:37 +08:00
|
|
|
xunlong,orangepi-r1-plus|\
|
|
|
|
xunlong,orangepi-r1-plus-lts)
|
2020-07-29 19:02:51 +08:00
|
|
|
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
|
|
|
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth1"
|
2020-07-02 23:34:55 +08:00
|
|
|
;;
|
2021-11-10 23:30:09 +08:00
|
|
|
embedfire,doornet2|\
|
2021-11-08 12:55:54 +08:00
|
|
|
friendlyarm,nanopi-r4s|\
|
2022-07-12 21:06:43 +08:00
|
|
|
friendlyarm,nanopi-r4se|\
|
2021-11-10 23:30:09 +08:00
|
|
|
sharevdi,guangmiao-g4c)
|
2021-03-23 13:12:59 +08:00
|
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
|
|
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
|
|
|
|
;;
|
2022-08-11 13:51:47 +08:00
|
|
|
firefly,rk3568-roc-pc)
|
|
|
|
ucidef_set_led_timer "health" "health" "firefly:yellow:user" "200" "800"
|
|
|
|
;;
|
2020-07-02 23:34:55 +08:00
|
|
|
esac
|
2020-07-29 19:02:51 +08:00
|
|
|
|
2020-07-02 23:34:55 +08:00
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|