3 # Copyright (c) 2015 The Linux Foundation. All rights reserved.
4 # Copyright (c) 2011-2015 OpenWrt.org
7 .
/lib
/functions
/uci-defaults.sh
9 .
/lib
/functions
/system.sh
13 board
=$
(ipq806x_board_name
)
21 ucidef_add_switch
"switch0" \
22 "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
25 ucidef_set_interface_lan
"eth1 eth2 eth3"
26 ucidef_add_switch
"switch0" \
27 "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
31 hw_mac_addr
=$
(mtd_get_mac_ascii devinfo hw_mac_addr
)
32 ucidef_add_switch
"switch0" \
33 "1:lan" "2:lan" "3:lan" "4:lan" "0t@eth0" "5:wan" "0t@eth0"
34 ucidef_set_interface_macaddr
"lan" "$hw_mac_addr"
35 ucidef_set_interface_macaddr
"wan" "$hw_mac_addr"
38 echo "Unsupported hardware. Network interfaces not intialized"