diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-07-08 03:00:53 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-07-08 03:00:53 +0000 |
commit | 459119c94529602d08de465b7ebfa4871d328081 (patch) | |
tree | 369a7eb643938d6d51ef6f2d0c46561e61dcc0ae /loader2/shutdown.c | |
parent | 390977d3ee0ebc010168ce04573f63ae15458718 (diff) | |
download | anaconda-459119c94529602d08de465b7ebfa4871d328081.tar.gz anaconda-459119c94529602d08de465b7ebfa4871d328081.tar.xz anaconda-459119c94529602d08de465b7ebfa4871d328081.zip |
massive merge from taroon branch. changes are all over the place, but a
summary of looking through the diff is
* clean up warnings, we build with -Wall -Werror here too
* product.img stuff
* max logical partitions enforcement
* 1 TB max fs size
* ethtool stuff
* autopart in kickstart
* driver disk fixes
* RHEL upgrade stuff
* network driver disks
* variant pkgorder/tree splitting
Diffstat (limited to 'loader2/shutdown.c')
-rw-r--r-- | loader2/shutdown.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/loader2/shutdown.c b/loader2/shutdown.c index f6ade0ae0..2f6456d17 100644 --- a/loader2/shutdown.c +++ b/loader2/shutdown.c @@ -32,6 +32,14 @@ extern int testing; void disableSwap(void); void unmountFilesystems(void); +void rebootHandler(int signum) { + printf("rebooting system\n"); +#if USE_MINILIBC + reboot(0xfee1dead, 672274793, 0x1234567); +#else + reboot(RB_AUTOBOOT); +#endif +} void shutDown(int noKill, int doReboot) { sync(); sync(); @@ -65,7 +73,8 @@ void shutDown(int noKill, int doReboot) { #endif } else { printf("you may safely reboot your system\n"); - reboot(RB_HALT_SYSTEM); + signal(SIGINT, rebootHandler); + while (1); } exit(0); |