mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00

The current target code is too chaotic, the patches are messy and disorderly, and there are still many duplicate code. Pack it back to half a year ago.
35 lines
809 B
Bash
Executable File
35 lines
809 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions/leds.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board=$(board_name)
|
|
boardname="${board##*,}"
|
|
|
|
board_config_update
|
|
|
|
case $board in
|
|
friendlyarm,nanopi-r2c|\
|
|
friendlyarm,nanopi-r2s|\
|
|
xunlong,orangepi-r1-plus|\
|
|
xunlong,orangepi-r1-plus-lts)
|
|
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
|
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth1"
|
|
;;
|
|
friendlyarm,nanopi-r4s|\
|
|
friendlyarm,nanopi-r4se|\
|
|
sharevdi,guangmiao-g4c)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
|
|
;;
|
|
friendlyarm,nanopi-r5s)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
|
|
ucidef_set_led_netdev "lan1" "LAN1" "green:lan1" "eth1"
|
|
ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth2"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|