mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300735
@ -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