+ sleep 1
+
+ setup_interface "$device" "$config" "${ipproto:-dhcp}"
+ local gw="$(find_gw)"
+ [ -n "$gw" ] && {
+ [ "$gw" != 0.0.0.0 ] && route delete "$server" 2>/dev/null >/dev/null
+ route add "$server" gw "$gw"
+ }
+
+ # fix up the netmask
+ config_get netmask "$config" netmask
+ [ -z "$netmask" -o -z "$device" ] || ifconfig $device netmask $netmask