[LEDE-DEV] [PATCH 3/5] lantiq: pass MAC address to the ATM bridge helper
Mathias Kresin
dev at kresin.me
Sat Jul 2 08:00:38 PDT 2016
Signed-off-by: Mathias Kresin <dev at kresin.me>
---
target/linux/lantiq/base-files/etc/board.d/02_network | 4 ++--
1 file changed, 2 insertions(+), 2 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 c271e62..3bb4e6e 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -163,7 +163,7 @@ WBMR300)
esac
if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then
- ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload"
+ ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload" "$wan_mac"
fi
if grep -qE "system type.*: (VR9|xRX200)" /proc/cpuinfo; then
@@ -177,7 +177,7 @@ fi
ucidef_set_interface_wan "$interface_wan" "pppoe"
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan "$lan_mac"
-[ -n "$wan_mac" ] && ucidef_set_interface_macaddr wan "$wan_mac"
+[ -n "$wan_mac" ] && [ "$interface_wan" != "nas0" ] && ucidef_set_interface_macaddr wan "$wan_mac"
board_config_flush
--
1.9.1
More information about the Lede-dev
mailing list