diff options
author | dteske <dteske@FreeBSD.org> | 2013-04-22 06:10:27 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2013-04-22 06:10:27 +0000 |
commit | 6776c629e584a596185ed6b615ad214e3961d9a9 (patch) | |
tree | b060fa67f80cd914c54f3393708f36ad896ddb95 /usr.sbin | |
parent | 38a1025029f2645291d940ab9f0b7c9c808e2c92 (diff) | |
download | FreeBSD-src-6776c629e584a596185ed6b615ad214e3961d9a9.zip FreeBSD-src-6776c629e584a596185ed6b615ad214e3961d9a9.tar.gz |
Fix two bugs when setting up a plip interface. First, dhcp status was not
being properly cleared each iteration of the loop. Second, values weren't
properly quoted when sent to the editor function.
Diffstat (limited to 'usr.sbin')
-rwxr-xr-x | usr.sbin/bsdconfig/networking/devices | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/networking/devices b/usr.sbin/bsdconfig/networking/devices index 7304a78..ae3136c 100755 --- a/usr.sbin/bsdconfig/networking/devices +++ b/usr.sbin/bsdconfig/networking/devices @@ -99,6 +99,7 @@ while :; do # fallback to reading the active configuration if not configured in # the rc.conf(5) file(s). # + dhcp= _ipaddr= _netmask= _ifconfig=$( f_sysrc_get ifconfig_$interface ) @@ -147,7 +148,7 @@ while :; do # Block on user-configuration of the probed settings f_dialog_menu_netdev_edit \ - $interface $_ipaddr $_netmask "$_options" $dhcp + "$interface" "$_ipaddr" "$_netmask" "$_options" $dhcp # Return to root menu if above returns success [ $? -eq $SUCCESS ] && break |