summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2002-01-06 01:08:28 +0000
committerEric Andersen2002-01-06 01:08:28 +0000
commitc94e89d81f9a5cbbbb9c1cbdcb52e3379173a5a7 (patch)
tree20f0058db2966bc902b7fa45e64c8db1a05e0776
parentdb2b9f37d4cf2c4f266b52b938f9ce05e4799259 (diff)
downloadbusybox-c94e89d81f9a5cbbbb9c1cbdcb52e3379173a5a7.zip
busybox-c94e89d81f9a5cbbbb9c1cbdcb52e3379173a5a7.tar.gz
Do not depend on PATH or getopt arg reordering
-rw-r--r--init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index 3bb5de0..857fa38 100644
--- a/init/init.c
+++ b/init/init.c
@@ -615,9 +615,9 @@ static void check_memory(void)
#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
if (stat("/etc/fstab", &statBuf) == 0) {
/* swapon -a requires /proc typically */
- waitfor("mount proc /proc -t proc", console, FALSE);
+ waitfor("/bin/mount -t proc /proc", console, FALSE);
/* Try to turn on swap */
- waitfor("swapon -a", console, FALSE);
+ waitfor("/sbin/swapon -a", console, FALSE);
if (check_free_memory() < 1000)
goto goodnight;
} else