aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/falcon
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/lantiq/falcon')
-rwxr-xr-xtarget/linux/lantiq/falcon/base-files/etc/board.d/02_network43
1 files changed, 34 insertions, 9 deletions
diff --git a/target/linux/lantiq/falcon/base-files/etc/board.d/02_network b/target/linux/lantiq/falcon/base-files/etc/board.d/02_network
index 997f4c741f..7998efc2a0 100755
--- a/target/linux/lantiq/falcon/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/falcon/base-files/etc/board.d/02_network
@@ -7,21 +7,46 @@
. /lib/functions/system.sh
. /lib/functions/lantiq.sh
-board_config_update
+lantiq_setup_interfaces()
+{
+ local board="$1"
+
+ case "$board" in
+ *)
+ ucidef_set_interface_lan 'eth0'
+ ;;
+ esac
+}
+
+lantiq_setup_dsl()
+{
+ local board="$1"
+ local annex="a"
-annex="a"
+ case "$board" in
+ esac
-lan_mac=""
-wan_mac=""
+ lantiq_setup_dsl_helper "$annex"
+}
-ucidef_set_interface_lan 'eth0'
+lantiq_setup_macs()
+{
+ local board="$1"
+ local lan_mac=""
+ local wan_mac=""
-lantiq_setup_dsl_helper "$annex"
+ case "$board" in
+ esac
-[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
-[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"
+ [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
+ [ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"
+}
+board_config_update
+board=$(board_name)
+lantiq_setup_interfaces $board
+lantiq_setup_dsl $board
+lantiq_setup_macs $board
board_config_flush
exit 0
-