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:
parent
e46113c355
commit
bc1b30bf9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user