3 * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
18 #include <sys/types.h>
27 #include <sys/reboot.h>
34 char *progname
= argv
[0];
36 if (argc
> 2 && strcmp(argv
[1], "-d") == 0) {
40 if ((argc
!= 3) || (strcmp(argv
[1], "-h") && strcmp(argv
[1], "-r")) || strcmp(argv
[2], "now")) {
41 printf("Usage: %s [-d delay] -h|-r now\n", progname
);
47 signal(SIGTERM
,SIG_IGN
);
51 kill(-1, SIGHUP
); /* Force PPPD's down, too */
57 if (strcmp(argv
[1], "-h")==0) {