Fix stupid typos -- thanks to Taketoshi Sano <kgh12351@nifty.ne.jp>
for noticing these bugs. -Erik
This commit is contained in:
parent
07f5604046
commit
fb1793f03c
4
init.c
4
init.c
@ -455,7 +455,7 @@ static void check_memory()
|
|||||||
|
|
||||||
if (stat("/etc/fstab", &statBuf) == 0) {
|
if (stat("/etc/fstab", &statBuf) == 0) {
|
||||||
/* Try to turn on swap */
|
/* Try to turn on swap */
|
||||||
system("/sbin/swapon swapon -a");
|
system("/sbin/swapon -a");
|
||||||
if (mem_total() < 3500)
|
if (mem_total() < 3500)
|
||||||
goto goodnight;
|
goto goodnight;
|
||||||
} else
|
} else
|
||||||
@ -705,7 +705,7 @@ 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, "/bin/umount -a -r > /dev/null 2>&1", console);
|
new_initAction(CTRLALTDEL, "/sbin/swapoff -a > /dev/null 2>&1", 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 > /dev/null 2>&1", console);
|
||||||
/* Askfirst shell on tty1 */
|
/* Askfirst shell on tty1 */
|
||||||
|
@ -455,7 +455,7 @@ static void check_memory()
|
|||||||
|
|
||||||
if (stat("/etc/fstab", &statBuf) == 0) {
|
if (stat("/etc/fstab", &statBuf) == 0) {
|
||||||
/* Try to turn on swap */
|
/* Try to turn on swap */
|
||||||
system("/sbin/swapon swapon -a");
|
system("/sbin/swapon -a");
|
||||||
if (mem_total() < 3500)
|
if (mem_total() < 3500)
|
||||||
goto goodnight;
|
goto goodnight;
|
||||||
} else
|
} else
|
||||||
@ -705,7 +705,7 @@ 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, "/bin/umount -a -r > /dev/null 2>&1", console);
|
new_initAction(CTRLALTDEL, "/sbin/swapoff -a > /dev/null 2>&1", 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 > /dev/null 2>&1", console);
|
||||||
/* Askfirst shell on tty1 */
|
/* Askfirst shell on tty1 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user