Bug system entry #1 says that when busybox doesn't have swapoff,
authorRob Landley <rob@landley.net>
Tue, 30 Aug 2005 18:17:05 +0000 (18:17 -0000)
committerRob Landley <rob@landley.net>
Tue, 30 Aug 2005 18:17:05 +0000 (18:17 -0000)
init shouldn't call swapoff.

init/init.c

index 0f49a45d8542fc157ef646d76191595e3ac2f312..7656bf3345102a8d82a5418f11a912d7ee49c07f 100644 (file)
@@ -975,10 +975,8 @@ static void parse_inittab(void)
                new_init_action(CTRLALTDEL, "/sbin/reboot", "");
                /* Umount all filesystems on halt/reboot */
                new_init_action(SHUTDOWN, "/bin/umount -a -r", "");
-#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
                /* Swapoff on halt/reboot */
-               new_init_action(SHUTDOWN, "/sbin/swapoff -a", "");
-#endif
+               if(ENABLE_SWAPONOFF) new_init_action(SHUTDOWN, "/sbin/swapoff -a", "");
                /* Prepare to restart init when a HUP is received */
                new_init_action(RESTART, "/sbin/init", "");
                /* Askfirst shell on tty1-4 */