diff options
-rw-r--r-- | init.c | 4 | ||||
-rw-r--r-- | init/init.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -455,7 +455,7 @@ static void check_memory() | |||
455 | 455 | ||
456 | if (stat("/etc/fstab", &statBuf) == 0) { | 456 | if (stat("/etc/fstab", &statBuf) == 0) { |
457 | /* Try to turn on swap */ | 457 | /* Try to turn on swap */ |
458 | system("/sbin/swapon swapon -a"); | 458 | system("/sbin/swapon -a"); |
459 | if (mem_total() < 3500) | 459 | if (mem_total() < 3500) |
460 | goto goodnight; | 460 | goto goodnight; |
461 | } else | 461 | } else |
@@ -705,7 +705,7 @@ void parse_inittab(void) | |||
705 | /* No inittab file -- set up some default behavior */ | 705 | /* No inittab file -- set up some default behavior */ |
706 | #endif | 706 | #endif |
707 | /* Swapoff on halt/reboot */ | 707 | /* Swapoff on halt/reboot */ |
708 | new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); | 708 | new_initAction(CTRLALTDEL, "/sbin/swapoff -a > /dev/null 2>&1", console); |
709 | /* Umount all filesystems on halt/reboot */ | 709 | /* Umount all filesystems on halt/reboot */ |
710 | new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); | 710 | new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); |
711 | /* Askfirst shell on tty1 */ | 711 | /* Askfirst shell on tty1 */ |
diff --git a/init/init.c b/init/init.c index 0157873ab..b59e9a147 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -455,7 +455,7 @@ static void check_memory() | |||
455 | 455 | ||
456 | if (stat("/etc/fstab", &statBuf) == 0) { | 456 | if (stat("/etc/fstab", &statBuf) == 0) { |
457 | /* Try to turn on swap */ | 457 | /* Try to turn on swap */ |
458 | system("/sbin/swapon swapon -a"); | 458 | system("/sbin/swapon -a"); |
459 | if (mem_total() < 3500) | 459 | if (mem_total() < 3500) |
460 | goto goodnight; | 460 | goto goodnight; |
461 | } else | 461 | } else |
@@ -705,7 +705,7 @@ void parse_inittab(void) | |||
705 | /* No inittab file -- set up some default behavior */ | 705 | /* No inittab file -- set up some default behavior */ |
706 | #endif | 706 | #endif |
707 | /* Swapoff on halt/reboot */ | 707 | /* Swapoff on halt/reboot */ |
708 | new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); | 708 | new_initAction(CTRLALTDEL, "/sbin/swapoff -a > /dev/null 2>&1", console); |
709 | /* Umount all filesystems on halt/reboot */ | 709 | /* Umount all filesystems on halt/reboot */ |
710 | new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); | 710 | new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); |
711 | /* Askfirst shell on tty1 */ | 711 | /* Askfirst shell on tty1 */ |