From 6776c629e584a596185ed6b615ad214e3961d9a9 Mon Sep 17 00:00:00 2001 From: dteske Date: Mon, 22 Apr 2013 06:10:27 +0000 Subject: 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. --- usr.sbin/bsdconfig/networking/devices | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bsdconfig/networking') 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 -- cgit v1.1