Deleted Added
full compact
system.c (8811) system.c (8825)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $Id: system.c,v 1.38 1995/05/26 21:00:43 jkh Exp $
7 * $Id: system.c,v 1.39 1995/05/28 09:36:06 jkh Exp $
8 *
9 * Jordan Hubbard
10 *
11 * My contributions are in the public domain.
12 *
13 * Parts of this file are also blatently stolen from Poul-Henning Kamp's
14 * previous version of sysinstall, and as such fall under his "BEERWARE license"
15 * so buy him a beer if you like it! Buy him a beer for me, too!

--- 84 unchanged lines hidden (view full) ---

100 end_dialog();
101 DialogActive = FALSE;
102 }
103 /* REALLY exit! */
104 if (RunningAsInit) {
105 int fd, on = 1;
106
107 /* Put the console back */
8 *
9 * Jordan Hubbard
10 *
11 * My contributions are in the public domain.
12 *
13 * Parts of this file are also blatently stolen from Poul-Henning Kamp's
14 * previous version of sysinstall, and as such fall under his "BEERWARE license"
15 * so buy him a beer if you like it! Buy him a beer for me, too!

--- 84 unchanged lines hidden (view full) ---

100 end_dialog();
101 DialogActive = FALSE;
102 }
103 /* REALLY exit! */
104 if (RunningAsInit) {
105 int fd, on = 1;
106
107 /* Put the console back */
108 fd = open("/dev/ttyv0", O_RDONLY);
109 if (fd != -1)
110 ioctl(fd, TIOCCONS, &on);
108 ioctl(0, VT_RELDISP, 1);
111 reboot(RB_HALT);
112 }
113 else
114 exit(1);
115}
116
117/* Run some general command */
118int

--- 243 unchanged lines hidden ---
109 reboot(RB_HALT);
110 }
111 else
112 exit(1);
113}
114
115/* Run some general command */
116int

--- 243 unchanged lines hidden ---