summaryrefslogtreecommitdiff
path: root/release/sysinstall/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'release/sysinstall/network.c')
-rw-r--r--release/sysinstall/network.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/release/sysinstall/network.c b/release/sysinstall/network.c
index b92e37bac5999..5e064a7ae0708 100644
--- a/release/sysinstall/network.c
+++ b/release/sysinstall/network.c
@@ -70,9 +70,12 @@ mediaInitNetwork(Device *dev)
}
}
+ w = savescr();
+ dialog_clear_norefresh();
+
/* Old PPP process lying around? */
if (pppPID) {
- msgNotify("Killing previous PPP process %d.", pppPID);
+ msgConfirm("Killing previous PPP process %d.", pppPID);
kill(pppPID, SIGTERM);
pppPID = 0;
}
@@ -88,8 +91,6 @@ mediaInitNetwork(Device *dev)
char *val;
char attach[256];
- w = savescr();
- dialog_clear_norefresh();
/* Cheesy slip attach */
snprintf(attach, 256, "slattach -a -h -l -s 9600 %s", dev->devname);
val = msgGetInput(attach,
@@ -131,7 +132,7 @@ mediaInitNetwork(Device *dev)
}
else if (!strcmp(cp, "DHCP"))
goto bail;
- msgNotify("ifconfig %s %s", dev->name, cp);
+ msgDebug("ifconfig %s %s", dev->name, cp);
i = vsystem("ifconfig %s %s", dev->name, cp);
if (i) {
msgConfirm("Unable to configure the %s interface!\n"
@@ -145,7 +146,7 @@ mediaInitNetwork(Device *dev)
"not on your local network");
}
else {
- msgNotify("Adding default route to %s.", rp);
+ msgDebug("Adding default route to %s.", rp);
vsystem("route -n add default %s", rp);
}
bail:
@@ -173,18 +174,18 @@ mediaShutdownNetwork(Device *dev)
cp = variable_get(ifconfig);
if (!cp)
return;
- msgNotify("ifconfig %s down", dev->name);
+ msgDebug("ifconfig %s down", dev->name);
i = vsystem("ifconfig %s down", dev->name);
if (i)
msgConfirm("Warning: Unable to down the %s interface properly", dev->name);
cp = variable_get(VAR_GATEWAY);
if (cp) {
- msgNotify("Deleting default route.");
+ msgDebug("Deleting default route.");
vsystem("route -n delete default");
}
}
else if (pppPID) {
- msgNotify("Killing previous PPP process %d.", pppPID);
+ msgConfirm("Killing previous PPP process %d.", pppPID);
kill(pppPID, SIGTERM);
pppPID = 0;
}