diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1995-12-07 10:34:59 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1995-12-07 10:34:59 +0000 |
| commit | 40b0c0d936b1fb9878b178e19028ab6a045fe8bc (patch) | |
| tree | 3d31cd880ab6a9af9ad3ab3c6313d70e1c542d60 /release/sysinstall/main.c | |
| parent | cde694287a635a30da358e47c21ed4eff6e8d0e5 (diff) | |
Notes
Diffstat (limited to 'release/sysinstall/main.c')
| -rw-r--r-- | release/sysinstall/main.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/release/sysinstall/main.c b/release/sysinstall/main.c index 7d22216ac679..a94f133195ca 100644 --- a/release/sysinstall/main.c +++ b/release/sysinstall/main.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: main.c,v 1.13 1995/06/11 19:30:02 rgrimes Exp $ + * $Id: main.c,v 1.14 1995/09/18 16:52:29 peter Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -43,12 +43,24 @@ #include "sysinstall.h" #include <stdio.h> +#include <sys/signal.h> + +static void +screech(int sig) +{ + fprintf(stderr, "\007Fatal signal %d caught! I'm dead..\n", sig); + pause(); +} int main(int argc, char **argv) { int choice, scroll, curr, max; + if (getpid() == 1) { + signal(SIGBUS, screech); + signal(SIGSEGV, screech); + } if (geteuid() != 0) { fprintf(stderr, "Warning: This utility should be run as root.\n"); sleep(1); @@ -64,21 +76,18 @@ main(int argc, char **argv) /* Probe for all relevant devices on the system */ deviceGetAll(); - /* Default to passive mode ftp since it's the only thing we currently support :-( */ - OptFlags |= OPT_FTP_PASSIVE; + /* Set default flag and variable values */ + installVarDefaults(NULL); /* Begin user dialog at outer menu */ while (1) { choice = scroll = curr = max = 0; dmenuOpen(&MenuInitial, &choice, &scroll, &curr, &max); - if (getpid() != 1 || !msgYesNo("Are you sure you wish to exit? System will reboot.")) + if (getpid() != 1 || !msgYesNo("Are you sure you wish to exit? The system will reboot\n" + "(be sure to remove any floppies from the drives).")) break; } - /* Write out any changes to /etc/sysconfig */ - if (SystemWasInstalled) - configSysconfig(); - /* Say goodnight, Gracie */ systemShutdown(); |
