mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-17 21:03:30 +00:00

Hardware Specification: CPU: RockChip RK3328 (4 cores) RAM: 1GB DDR4 Ethernet: 2x 1000 Base-T Flash: SPI-NOR 16 MB (mx25l12835f) LED: SYS, LAN, WAN MicroSD Slot x 1 Button: Reset USB:1x 2.0 Serial1: 13 Pin pin-header Serial2: 3 Pin debug port Type-C: for power input Power Supply: DC 5V/2A Installation: Write the image to SD Card with dd. Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
26 lines
506 B
Bash
Executable File
26 lines
506 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-r2s|\
|
|
xunlong,orangepi-r1-plus)
|
|
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
|
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth1"
|
|
;;
|
|
friendlyarm,nanopi-r4s)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|