diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-02-09 16:37:08 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-02-09 16:37:08 +0000 |
commit | fb1793f03cbc51885678ee1ce9d0e81bd0e246f7 (patch) | |
tree | 4d9c80632f4b4a5ee090ba8f486bafc409bffb98 | |
parent | 07f56040466b8d93000a42909a24172ac2069c73 (diff) | |
download | busybox-fb1793f03cbc51885678ee1ce9d0e81bd0e246f7.tar.gz |
Fix stupid typos -- thanks to Taketoshi Sano <kgh12351@nifty.ne.jp>
for noticing these bugs.
-Erik
-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() if (stat("/etc/fstab", &statBuf) == 0) { /* Try to turn on swap */ - system("/sbin/swapon swapon -a"); + system("/sbin/swapon -a"); if (mem_total() < 3500) goto goodnight; } else @@ -705,7 +705,7 @@ void parse_inittab(void) /* No inittab file -- set up some default behavior */ #endif /* 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 */ new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); /* 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() if (stat("/etc/fstab", &statBuf) == 0) { /* Try to turn on swap */ - system("/sbin/swapon swapon -a"); + system("/sbin/swapon -a"); if (mem_total() < 3500) goto goodnight; } else @@ -705,7 +705,7 @@ void parse_inittab(void) /* No inittab file -- set up some default behavior */ #endif /* 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 */ new_initAction(CTRLALTDEL, "/bin/umount -a -r > /dev/null 2>&1", console); /* Askfirst shell on tty1 */ |