3 [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
7 [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
8 [ -n "$subnet" ] && NETMASK="netmask $subnet"
9 [ -n "$rootpath" ] && echo "$rootpath" > /rootpath
10 [ -n "$hostname" ] && hostname ${hostname}
12 busybox ifconfig $interface $ip $BROADCAST $NETMASK
15 while route del default gw 0.0.0.0 dev $interface; do
21 busybox route add default gw ${i}
24 [ -n "$domain" ] && echo "domain ${domain}" >> /etc/resolv.conf
29 echo "nameserver ${i}" >> /etc/resolv.conf
34 busybox ifconfig $interface 0.0.0.0