- ipcalc -s "$if_ip" || return
- ipcalc -s "$if_netmask" || return
- $DEBUG ifconfig $if $if_ip netmask $if_netmask up
-
- ipcalc -s "$if_gateway" || return
- $DEBUG route add default gw $if_gateway
+ $DEBUG ifconfig $if $if_ip ${if_netmask:+netmask $if_netmask} up
+ ${if_gateway:+$DEBUG route add default gw $if_gateway}