aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rtl838x/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/rtl838x/base-files/etc/board.d/02_network')
-rwxr-xr-xtarget/linux/rtl838x/base-files/etc/board.d/02_network41
1 files changed, 0 insertions, 41 deletions
diff --git a/target/linux/rtl838x/base-files/etc/board.d/02_network b/target/linux/rtl838x/base-files/etc/board.d/02_network
deleted file mode 100755
index d745526d0e..0000000000
--- a/target/linux/rtl838x/base-files/etc/board.d/02_network
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-. /lib/functions.sh
-. /lib/functions/uci-defaults.sh
-. /lib/functions/system.sh
-
-rtl838x_setup_switch()
-{
- local lan lan_list
-
- for lan in /sys/class/net/lan*; do
- lan_list="$lan_list $(basename $lan)"
- done
- ucidef_set_interface_lan "$lan_list"
-}
-
-rtl838x_setup_macs()
-{
- local board="$1"
- local lan_mac
- local wan_mac
- local label_mac
-
- case $board in
- allnet,all-sg8208m)
- lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
- label_mac=$lan_mac
- esac
-
- [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
- [ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac
- [ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac
-}
-
-board_config_update
-board=$(board_name)
-rtl838x_setup_switch
-rtl838x_setup_macs $board
-board_config_flush
-
-exit 0