bsdinstall: fix static address assignment for protected wireless networks.

Filter out IFCONFIG_PREFIX variable (which may contain WPA keyword)
from ifconfig parameters.

PR:		169199
This commit is contained in:
Andriy Voskoboinyk 2016-05-02 21:40:34 +00:00
parent afd6748258
commit 6d8e01b078

View File

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