bsdinstall: unbreak static address assignment for wired networks.

This fixes regression introduced in r298946 (fixes static address
assignment for wireless networks).

Reported & submitted by:	allanjude
This commit is contained in:
avos 2016-05-26 11:58:36 +00:00
parent e46113c355
commit bc1b30bf9f

View File

@ -84,7 +84,11 @@ retval=$?
if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
. $BSDINSTALL_TMPETC/._rc.conf.net
ifconfig $INTERFACE `eval echo \\\$ifconfig_$INTERFACE | sed "s|$2||"`
if [ -n "$2" ]; then
ifconfig $INTERFACE `eval echo \\\$ifconfig_$INTERFACE | sed "s|$2||"`
else
ifconfig $INTERFACE `eval echo \\\$ifconfig_$INTERFACE`
fi
if [ "$defaultrouter" ]; then
route delete -inet default
route add -inet default $defaultrouter