diff options
Diffstat (limited to 'init/init.c')
-rw-r--r-- | init/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 033eb51..e8a5f74 100644 --- a/init/init.c +++ b/init/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 |