This commit is contained in:
Eric Andersen 2002-01-06 01:10:25 +00:00
parent c94e89d81f
commit 038cbc7442

View File

@ -615,7 +615,7 @@ static void check_memory(void)
#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) #if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__)
if (stat("/etc/fstab", &statBuf) == 0) { if (stat("/etc/fstab", &statBuf) == 0) {
/* swapon -a requires /proc typically */ /* swapon -a requires /proc typically */
waitfor("/bin/mount -t proc /proc", console, FALSE); waitfor("/bin/mount -t proc proc /proc", console, FALSE);
/* Try to turn on swap */ /* Try to turn on swap */
waitfor("/sbin/swapon -a", console, FALSE); waitfor("/sbin/swapon -a", console, FALSE);
if (check_free_memory() < 1000) if (check_free_memory() < 1000)