diff options
author | Mathias Kresin <dev@kresin.me> | 2016-12-23 08:21:31 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2016-12-24 10:03:38 +0100 |
commit | ae3ac76e565724e188138dafe38ebeed122e2cf8 (patch) | |
tree | a0cfd911e11921e6ce31ba666e17c57990511a79 /target/linux/ramips/base-files | |
parent | a18488a0aadc0ceca9561f93f4456839b9302857 (diff) | |
download | mtk-20170518-ae3ac76e565724e188138dafe38ebeed122e2cf8.zip mtk-20170518-ae3ac76e565724e188138dafe38ebeed122e2cf8.tar.gz mtk-20170518-ae3ac76e565724e188138dafe38ebeed122e2cf8.tar.bz2 |
ramips: use destinct 11AC NAS board name
Use a distinct board name even if the board is near to identical to
the WeVO W2914NS v2.
To make sure that a 11AC NAS image can not be installed on a
WeVO W2914NS v2, both board need to use different names.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/01_leds | 21 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 9 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 2 |
3 files changed, 16 insertions, 16 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index bcb1df1..b7f3b36 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -17,6 +17,16 @@ board=$(ramips_board_name) board_config_update case $board in +11acnas|\ +all0239-3g|\ +hw550-3g|\ +mofi3500-3gn|\ +sap-g3200u3|\ +sk-wb8|\ +w2914nsv2|\ +wf-2881) + set_usb_led "$board:green:usb" + ;; 3g150b|\ 3g300m) set_usb_led "$board:blue:3g" @@ -45,14 +55,6 @@ air3gii) set_wifi_led "$board:green:wlan" set_usb_led "$board:green:mobile" ;; -all0239-3g|\ -hw550-3g|\ -mofi3500-3gn|\ -sap-g3200u3|\ -sk-wb8|\ -wf-2881) - set_usb_led "$board:green:usb" - ;; all0256n) ucidef_set_rssimon "wlan0" "200000" "1" ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:rssilow" "wlan0" "1" "40" "0" "6" @@ -315,9 +317,6 @@ vocore) ucidef_set_led_netdev "eth" "ETH" "$board:orange:eth" "eth0" set_wifi_led "$board:green:status" ;; -w2914nsv2) - set_usb_led "$board:green:usb" - ;; w502u) set_usb_led "$board:blue:usb" set_wifi_led "rt2800pci-phy0::radio" diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 94cf0ec..daf9b33 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -32,6 +32,11 @@ ramips_setup_interfaces() local board="$1" case $board in + 11acnas|\ + w2914nsv2) + ucidef_add_switch "switch0" \ + "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0" + ;; 3g150b|\ 3g300m|\ a5-v11|\ @@ -251,10 +256,6 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0" ;; - w2914nsv2) - ucidef_add_switch "switch0" \ - "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0" - ;; wcr-150gn) ucidef_add_switch "switch0" \ "0:lan" "6t@eth0" diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 50903c7..31a2049 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -14,7 +14,7 @@ ramips_board_detect() { case "$machine" in *"11AC NAS Router") - name="w2914nsv2" + name="11acnas" ;; *"3G150B") name="3g150b" |