+ wrap things in B<> to make pod2man happy
[oweals/busybox.git] / init.c
diff --git a/init.c b/init.c
index 033eb519f46e86fbfa6ff82300f35dbd7bf4482c..e8a5f74d31782e3f6660a8613801198db02c6957 100644 (file)
--- a/init.c
+++ b/init.c
@@ -471,8 +471,10 @@ static void check_memory()
                return;
 
        if (stat("/etc/fstab", &statBuf) == 0) {
+               /* swapon -a requires /proc typically */
+               waitfor("mount proc /proc -t proc", console, FALSE);
                /* Try to turn on swap */
-               system("/sbin/swapon -a");
+               waitfor("swapon -a", console, FALSE);
                if (check_free_memory() < 1000)
                        goto goodnight;
        } else