summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorErik Andersen2000-04-13 01:18:56 +0000
committerErik Andersen2000-04-13 01:18:56 +0000
commit61677feff7f549a48267c2c0c50a7420de6e2599 (patch)
tree1ea829e51641647a35c552e289f4482ab9f5db27 /init.c
parent62dc17a3b100496a5c7433cc598d674e244cb6f8 (diff)
downloadbusybox-61677feff7f549a48267c2c0c50a7420de6e2599.zip
busybox-61677feff7f549a48267c2c0c50a7420de6e2599.tar.gz
Upates to include copyright 2000 to everything
-Erik
Diffstat (limited to 'init.c')
-rw-r--r--init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.c b/init.c
index 033eb51..e8a5f74 100644
--- 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