aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-29 23:24:28 +0000
committerBill Nottingham <notting@redhat.com>2001-01-29 23:24:28 +0000
commit8e1cad758fcd2ef66cf89723e7af9e9c59c58b08 (patch)
treed1039044d4098f8755ae82e906f08a6b462fd16a /src
parentbf5b844b6ef35805b0c73fedbf04716024abad17 (diff)
downloadinitscripts-8e1cad758fcd2ef66cf89723e7af9e9c59c58b08.tar
initscripts-8e1cad758fcd2ef66cf89723e7af9e9c59c58b08.tar.gz
initscripts-8e1cad758fcd2ef66cf89723e7af9e9c59c58b08.tar.bz2
initscripts-8e1cad758fcd2ef66cf89723e7af9e9c59c58b08.tar.xz
initscripts-8e1cad758fcd2ef66cf89723e7af9e9c59c58b08.zip
make boot timeout configurable (BOOTTIMEOUT); patch from <awk@awks.org>
Diffstat (limited to 'src')
-rw-r--r--src/ppp-watch.c10
1 files changed, 9 insertions, 1 deletions
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);