[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] patch: don't try to run swapoff on halt/reboot when
From: "Milan Svoboda" <msvoboda () ra ! rockwell ! com>
Date: 2004-12-21 12:35:55
Message-ID: OFE6843BD1.F0892A15-ONC1256F71.0044B1D6 () ra ! rockwell ! com
[Download RAW message or body]
Hello,
this is patch against Busybox-1.00.
Best regards
Milan Svoboda
--- init-old.c 2004-10-08 10:21:54.000000000 +0200
+++ init.c 2004-12-21 13:11:31.136591100 +0100
@@ -960,7 +960,7 @@
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__)
+#if defined(CONFIG_SWAPONOFF) && (!defined(__UCLIBC__) ||
defined(__ARCH_HAS_MMU__))
/* Swapoff on halt/reboot */
new_init_action(SHUTDOWN, "/sbin/swapoff -a", "");
#endif
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic