3 .
/lib
/functions
/system.sh
4 .
/lib
/functions
/uci-defaults.sh
6 ath79_setup_interfaces
()
12 ucidef_set_interface_lan
"eth0"
15 ucidef_add_switch
"switch0" \
16 "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "6@eth1"
19 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
30 lan_mac
=$
(macaddr_add $
(mtd_get_mac_ascii u-boot-env ethaddr
) +2)
31 wan_mac
=$
(macaddr_add $
(mtd_get_mac_ascii u-boot-env ethaddr
) +3)
35 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr
"lan" $lan_mac
36 [ -n "$wan_mac" ] && ucidef_set_interface_macaddr
"wan" $wan_mac
37 [ -n "$label_mac" ] && ucidef_set_label_macaddr
$label_mac
42 ath79_setup_interfaces
$board
43 ath79_setup_macs
$board