Don't suppress output of umount and swapoff - it is both unwise

and incompatible with lash that doesn't support >&1 yet.
This commit is contained in:
Pavel Roskin 2000-09-15 01:02:50 +00:00
parent 5f84fd7066
commit 33bee33af0
2 changed files with 4 additions and 4 deletions

4
init.c
View File

@ -818,9 +818,9 @@ void parse_inittab(void)
/* No inittab file -- set up some default behavior */ /* No inittab file -- set up some default behavior */
#endif #endif
/* Swapoff on halt/reboot */ /* Swapoff on halt/reboot */
new_initAction(CTRLALTDEL, "/sbin/swapoff -a > /dev/null 2>&1", console); new_initAction(CTRLALTDEL, "/sbin/swapoff -a", console);
/* Umount all filesystems on halt/reboot */ /* Umount all filesystems on halt/reboot */
new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); new_initAction(CTRLALTDEL, "/bin/umount -a -r", console);
/* Askfirst shell on tty1 */ /* Askfirst shell on tty1 */
new_initAction(ASKFIRST, SHELL, console); new_initAction(ASKFIRST, SHELL, console);
/* Askfirst shell on tty2 */ /* Askfirst shell on tty2 */

View File

@ -818,9 +818,9 @@ void parse_inittab(void)
/* No inittab file -- set up some default behavior */ /* No inittab file -- set up some default behavior */
#endif #endif
/* Swapoff on halt/reboot */ /* Swapoff on halt/reboot */
new_initAction(CTRLALTDEL, "/sbin/swapoff -a > /dev/null 2>&1", console); new_initAction(CTRLALTDEL, "/sbin/swapoff -a", console);
/* Umount all filesystems on halt/reboot */ /* Umount all filesystems on halt/reboot */
new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); new_initAction(CTRLALTDEL, "/bin/umount -a -r", console);
/* Askfirst shell on tty1 */ /* Askfirst shell on tty1 */
new_initAction(ASKFIRST, SHELL, console); new_initAction(ASKFIRST, SHELL, console);
/* Askfirst shell on tty2 */ /* Askfirst shell on tty2 */