4 .
/lib
/functions
/uci-defaults.sh
5 .
/lib
/functions
/system.sh
11 for lan
in /sys
/class
/net
/lan
*; do
12 lan_list
="$lan_list $(basename $lan)"
14 ucidef_set_bridge_device switch
15 ucidef_set_interface_lan
"$lan_list"
28 lan_mac
=$
(mtd_get_mac_ascii u-boot-env ethaddr
)
32 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr
"lan" $lan_mac
33 [ -n "$wan_mac" ] && ucidef_set_interface_macaddr
"wan" $wan_mac
34 [ -n "$label_mac" ] && ucidef_set_label_macaddr
$label_mac
40 rtl838x_setup_macs
$board