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.
10 * JUN/99 -- copied from shutdown.c to make new reboot command.
12 * AUG/99 -- added delay option to reboot
19 #include <sys/types.h>
30 #include <sys/reboot.h>
32 int main(int argc
, char *argv
[])
34 int delay
= 0; /* delay in seconds before rebooting */
38 while ((rc
= getopt(argc
, argv
, "h?d:f")) > 0) {
49 printf("usage: reboot [-h] [-d <delay>] [-f]\n");
60 signal(SIGTERM
,SIG_IGN
);
61 signal(SIGHUP
,SIG_IGN
);