From 8e1cad758fcd2ef66cf89723e7af9e9c59c58b08 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 29 Jan 2001 23:24:28 +0000 Subject: make boot timeout configurable (BOOTTIMEOUT); patch from --- src/ppp-watch.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ppp-watch.c b/src/ppp-watch.c index 7bc483ae..3bbe9982 100644 --- a/src/ppp-watch.c +++ b/src/ppp-watch.c @@ -489,8 +489,16 @@ main(int argc, char **argv) { set_signal(SIGIO, signal_handler); set_signal(SIGCHLD, signal_handler); if (theBoot) { + temp = svGetValue(ifcfg, "BOOTTIMEOUT"); + if (temp) { + timeout = atoi(temp); + if (timeout < 1) timeout = 1; + free(temp); + } else { + timeout = 30; + } set_signal(SIGALRM, signal_handler); - alarm(30); + alarm(timeout); } fork_exec(1, "/sbin/netreport", NULL, NULL, NULL); -- cgit v1.2.1