2 # bring up the network before boot, used to allow
3 # netconsole logging and NFS boot. This runs out
4 # of flash, but that's ok because the script doesn't
5 # leave any process running.
7 # NOTE: /etc/default/functions defines ifup as a shell
9 . /etc/default/functions
11 # Now all the information for booting should be in the configuration
12 # file. Config the loopback and network interfaces.
13 ifconfig lo 127.0.0.1 up
15 iface="$(config iface)"
16 if test -n "$mac" -a -n "$iface" -a "$mac" != "00:00:00:00:00:00" -a "$mac" != "FF:FF:FF:FF:FF:FF"
18 if ifconfig "$iface" hw ether "$mac" &&
24 # exit code is true only if the interface config has succeeded