mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
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
4686f1a660
commit
fb82771908
1 changed files with 5 additions and 1 deletions
|
|
@ -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 a new issue