aboutsummaryrefslogtreecommitdiffstats
path: root/src/ppp-watch.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-07 05:57:19 +0000
committerBill Nottingham <notting@redhat.com>2000-08-07 05:57:19 +0000
commitbffc09ca0f9081340e51a3b8de865f549ae93c2c (patch)
tree3d0d4b9be90d388100c9060cce1dc8cef41ed57d /src/ppp-watch.c
parent305706cc1f323b80c82a4d66749835f1a6816544 (diff)
downloadinitscripts-bffc09ca0f9081340e51a3b8de865f549ae93c2c.tar
initscripts-bffc09ca0f9081340e51a3b8de865f549ae93c2c.tar.gz
initscripts-bffc09ca0f9081340e51a3b8de865f549ae93c2c.tar.bz2
initscripts-bffc09ca0f9081340e51a3b8de865f549ae93c2c.tar.xz
initscripts-bffc09ca0f9081340e51a3b8de865f549ae93c2c.zip
add RETRYCONNECT option for ppp-watch
Diffstat (limited to 'src/ppp-watch.c')
-rw-r--r--src/ppp-watch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ppp-watch.c b/src/ppp-watch.c
index be241fef..a264dd90 100644
--- a/src/ppp-watch.c
+++ b/src/ppp-watch.c
@@ -617,6 +617,11 @@ main(int argc, char **argv) {
break;
}
+ /* We default to retrying the connect phase for backward compatibility. */
+ if ((WEXITSTATUS(status) == 8) && !svTrueValue(ifcfg, "RETRYCONNECT", 1)) {
+ cleanExit(WEXITSTATUS(status));
+ }
+
if ((WEXITSTATUS(status) == 8) ||
!connectedOnce || svTrueValue(ifcfg, "PERSIST", 0)) {
temp = svGetValue(ifcfg, "RETRYTIMEOUT");