From 61677feff7f549a48267c2c0c50a7420de6e2599 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Thu, 13 Apr 2000 01:18:56 +0000 Subject: Upates to include copyright 2000 to everything -Erik --- init/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index 033eb519f..e8a5f74d3 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 -- cgit v1.2.3