Pass the '-n' flag to route(8) when setting up/tearing down the default

route.  If your nameserver config is wrong, this will otherwise hang for
the default resolver timeout (75 seconds), leading people to think that
the system has hung.
This commit is contained in:
msmith 1998-10-01 19:26:02 +00:00
parent 6a182d981b
commit 2046c5e166
2 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
* $Id: network.c,v 1.30 1998/03/09 08:57:22 jkh Exp $
* $Id: network.c,v 1.31 1998/07/12 17:11:53 brian Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -132,7 +132,7 @@ mediaInitNetwork(Device *dev)
}
else {
msgNotify("Adding default route to %s.", rp);
vsystem("route add default %s", rp);
vsystem("route -n add default %s", rp);
}
if (isDebug())
msgDebug("Network initialized successfully.\n");
@ -165,7 +165,7 @@ mediaShutdownNetwork(Device *dev)
cp = variable_get(VAR_GATEWAY);
if (cp) {
msgNotify("Deleting default route.");
vsystem("route delete default");
vsystem("route -n delete default");
}
}
else if (pppPID) {

View File

@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
* $Id: network.c,v 1.30 1998/03/09 08:57:22 jkh Exp $
* $Id: network.c,v 1.31 1998/07/12 17:11:53 brian Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -132,7 +132,7 @@ mediaInitNetwork(Device *dev)
}
else {
msgNotify("Adding default route to %s.", rp);
vsystem("route add default %s", rp);
vsystem("route -n add default %s", rp);
}
if (isDebug())
msgDebug("Network initialized successfully.\n");
@ -165,7 +165,7 @@ mediaShutdownNetwork(Device *dev)
cp = variable_get(VAR_GATEWAY);
if (cp) {
msgNotify("Deleting default route.");
vsystem("route delete default");
vsystem("route -n delete default");
}
}
else if (pppPID) {