diff options
author | Gerrit Pape <pape@smarden.org> | 2002-02-13 09:59:52 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2002-02-13 09:59:52 +0000 |
commit | 83a3c4ec659fa4a766ab4eb6e88bf08c70ff8635 (patch) | |
tree | 3b3229f3d5c7bdbbb94069fe89f7e37ef1e6cda6 /src/runit.c | |
parent | a434efda7db21b1ca71739def9468a405f33dcbd (diff) | |
download | runit-83a3c4ec659fa4a766ab4eb6e88bf08c70ff8635.tar.gz runit-83a3c4ec659fa4a766ab4eb6e88bf08c70ff8635.tar.xz runit-83a3c4ec659fa4a766ab4eb6e88bf08c70ff8635.zip |
runit.c: support ctrl-alt-del also on Linux/i386, dietlic.
runscripts.html: more samples. (thx Alessandro Bono)
Diffstat (limited to 'src/runit.c')
-rw-r--r-- | src/runit.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/runit.c b/src/runit.c index 9df8407..74d06ff 100644 --- a/src/runit.c +++ b/src/runit.c @@ -96,10 +96,15 @@ int main (int argc, const char * const *argv, const char * const *envp) { ndelay_on(selfpipe[1]); #ifdef RB_DISABLE_CAD - /* activate ctrlaltdel handling */ + /* activate ctrlaltdel handling, glibc */ if (RB_DISABLE_CAD == 0) reboot(0); #endif +#ifdef LINUX_REBOOT_CMD_CAD_OFF + /* activate ctrlaltdel handling, dietlibc */ + if (LINUX_REBOOT_CMD_CAD_OFF == 0) + reboot(0); +#endif strerr_warn3(INFO, "$Id$", ": booting.", 0); |