diff options
Diffstat (limited to 'target/linux/ath79/base-files')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/01_leds | 10 | ||||
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/02_network | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index e73a0a03c9..6f1bdc6eaf 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -28,15 +28,19 @@ case "$board" in ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f" ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f" ;; - "pcs,cap324") ucidef_set_led_netdev "lan" "LAN" "pcs:lan:green" "eth0" ;; - +"pcs,cr3000") + ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1" + ucidef_set_led_switch "lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04" + ucidef_set_led_switch "lan2" "LAN2" "pcs:blue:lan2" "switch0" "0x08" + ucidef_set_led_switch "lan3" "LAN3" "pcs:blue:lan3" "switch0" "0x10" + ucidef_set_led_switch "lan4" "LAN4" "pcs:blue:lan4" "switch0" "0x02" + ;; "pcs,cr5000") ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1" ;; - "tplink,re450-v2") ucidef_set_led_netdev "lan_data" "LAN Data" "tp-link:green:lan_data" "eth0" "tx rx" ucidef_set_led_netdev "lan_link" "LAN Link" "tp-link:green:lan_link" "eth0" "link" diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index a4d91fcdf2..0bc187a245 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -44,6 +44,12 @@ ath79_setup_interfaces() "0@eth1" "1:lan" "2:lan" "3:lan:3" "4:lan:4" ;; + "pcs,cr3000") + ucidef_add_switch "switch0" \ + "0@eth1" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2" + ucidef_set_interface_wan "eth0" + ;; + "pcs,cr5000") ucidef_add_switch "switch0" \ "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" |