From bffc09ca0f9081340e51a3b8de865f549ae93c2c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 7 Aug 2000 05:57:19 +0000 Subject: add RETRYCONNECT option for ppp-watch --- src/ppp-watch.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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"); -- cgit v1.2.1