3 # Copyright (C) 2013 OpenWrt.org
14 mac
=$
(mtd_get_mac_binary u-boot
326656)
15 mac
=$
(macaddr_add
$mac $offset)
17 ucidef_set_interface_macaddr
$cfg $mac
21 [ -e /etc
/config
/network
] && exit 0
23 touch /etc
/config
/network
25 .
/lib
/functions
/uci-defaults.sh
28 ucidef_set_interface_loopback
30 board
=$
(mpc85xx_board_name
)
34 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
35 ucidef_add_switch
"switch0" "1" "1"
36 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
37 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
43 ucidef_set_interfaces_lan_wan
"eth0" "eth1"