diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -471,8 +471,10 @@ static void check_memory() | |||
471 | return; | 471 | return; |
472 | 472 | ||
473 | if (stat("/etc/fstab", &statBuf) == 0) { | 473 | if (stat("/etc/fstab", &statBuf) == 0) { |
474 | /* swapon -a requires /proc typically */ | ||
475 | waitfor("mount proc /proc -t proc", console, FALSE); | ||
474 | /* Try to turn on swap */ | 476 | /* Try to turn on swap */ |
475 | system("/sbin/swapon -a"); | 477 | waitfor("swapon -a", console, FALSE); |
476 | if (check_free_memory() < 1000) | 478 | if (check_free_memory() < 1000) |
477 | goto goodnight; | 479 | goto goodnight; |
478 | } else | 480 | } else |