summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release/sysinstall/tcpip.c3
-rw-r--r--usr.sbin/sysinstall/tcpip.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c
index 3a946f94..dc06e68 100644
--- a/release/sysinstall/tcpip.c
+++ b/release/sysinstall/tcpip.c
@@ -560,12 +560,15 @@ int
tcpMenuSelect(dialogMenuItem *self)
{
Device *tmp;
+ WINDOW *save;
variable_set("NETWORK_CONFIGURED=NO",0);
tmp = tcpDeviceSelect();
variable_unset("NETWORK_CONFIGURED");
+ save = savescr();
if (tmp && tmp->private && !((DevInfo *)tmp->private)->use_dhcp && !msgYesNo("Would you like to bring the %s interface up right now?", tmp->name))
if (!tmp->init(tmp))
msgConfirm("Initialization of %s device failed.", tmp->name);
+ restorescr(save);
return DITEM_SUCCESS;
}
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index 3a946f94..dc06e68 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -560,12 +560,15 @@ int
tcpMenuSelect(dialogMenuItem *self)
{
Device *tmp;
+ WINDOW *save;
variable_set("NETWORK_CONFIGURED=NO",0);
tmp = tcpDeviceSelect();
variable_unset("NETWORK_CONFIGURED");
+ save = savescr();
if (tmp && tmp->private && !((DevInfo *)tmp->private)->use_dhcp && !msgYesNo("Would you like to bring the %s interface up right now?", tmp->name))
if (!tmp->init(tmp))
msgConfirm("Initialization of %s device failed.", tmp->name);
+ restorescr(save);
return DITEM_SUCCESS;
}
OpenPOWER on IntegriCloud