diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-01-21 20:00:06 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-01-21 20:00:06 +0000 |
commit | 4582b113110b605ea165abf1ff163dfddafe64a5 (patch) | |
tree | f9b9686c99660cb19434265e5901b06f68a94318 /mdk-stage1 | |
parent | 9a93b2f13e8af8504baa35525d3f23ddc2bbfc74 (diff) | |
download | drakx-backup-do-not-use-4582b113110b605ea165abf1ff163dfddafe64a5.tar drakx-backup-do-not-use-4582b113110b605ea165abf1ff163dfddafe64a5.tar.gz drakx-backup-do-not-use-4582b113110b605ea165abf1ff163dfddafe64a5.tar.bz2 drakx-backup-do-not-use-4582b113110b605ea165abf1ff163dfddafe64a5.tar.xz drakx-backup-do-not-use-4582b113110b605ea165abf1ff163dfddafe64a5.zip |
- better msg in fatal errors
- do not include code to spawn a shell for releases
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/stage1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 9ed4cc492..4c7b5e174 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -66,7 +66,7 @@ char * method_name; void fatal_error(char *msg) { - printf("FATAL ERROR IN STAGE1: %s\n\nI can't recover from this.\n", msg); + printf("FATAL ERROR IN STAGE1: %s\n\nI can't recover from this.\nYou may reboot your system.\n", msg); while (1); } @@ -75,6 +75,7 @@ void fatal_error(char *msg) /* spawns a shell on console #2 */ static void spawn_shell(void) { +#ifdef SPAWN_SHELL int fd; pid_t pid; char * shell_name = "/sbin/sash"; @@ -108,6 +109,7 @@ static void spawn_shell(void) close(fd); } +#endif } |