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.
This commit is contained in:
parent
a321935999
commit
143c3d9f14
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user