aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-28 20:52:55 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-28 21:25:42 +0200
commiteb28a0cde631c96388ada781fb02933ecdb0e69d (patch)
tree91fc4ffc5454b2f80491b8c8a1cc8d0f52b8105c
parent3bb2b46bc32f35e18eb5e656fa8dafa3e3434592 (diff)
downloadupstream-eb28a0cde631c96388ada781fb02933ecdb0e69d.tar.gz
upstream-eb28a0cde631c96388ada781fb02933ecdb0e69d.tar.bz2
upstream-eb28a0cde631c96388ada781fb02933ecdb0e69d.zip
lantiq: fix WBMR-300HPD switch port assignment
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/board.d/02_network9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network
index c271e62f73..d6f66016f6 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -149,15 +149,16 @@ VGV7510KW22)
ucidef_add_switch "switch0" \
"2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "6t@eth0"
;;
-*)
- ucidef_set_interface_lan 'eth0'
- ;;
WBMR300)
lan_mac=$(mtd_get_mac_ascii ubootconfig ethaddr)
wan_mac="$lan_mac"
ucidef_add_switch "switch0" \
- "2:lan:1" "3:lan:2" "5:lan:3" "4:wan:1" "6t@eth0"
+ "2:lan:2" "3:lan:3" "5:lan:4" "4:wan:1" "6t@eth0"
+ ;;
+
+*)
+ ucidef_set_interface_lan 'eth0'
;;
esac