Support ifconfig_<ifn> variables containing quoted variables with spaces

in them by wrapping the ifconfig command with eval "...".

For example, this allows:

ifconfig_iwi0="DHCP ssid 'foo bar baz'"
This commit is contained in:
Brooks Davis 2005-08-26 04:06:17 +00:00
parent 83582626ad
commit 815e43db38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149483

View File

@ -43,7 +43,7 @@ ifconfig_up()
ifconfig_args=`ifconfig_getargs $1`
if [ -n "${ifconfig_args}" ]; then
ifconfig $1 ${ifconfig_args}
eval "ifconfig $1 ${ifconfig_args}"
_cfg=0
fi