diff options
-rw-r--r-- | init/init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c index 0f49a45d8..7656bf334 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -975,10 +975,8 @@ static void parse_inittab(void) | |||
975 | new_init_action(CTRLALTDEL, "/sbin/reboot", ""); | 975 | new_init_action(CTRLALTDEL, "/sbin/reboot", ""); |
976 | /* Umount all filesystems on halt/reboot */ | 976 | /* Umount all filesystems on halt/reboot */ |
977 | new_init_action(SHUTDOWN, "/bin/umount -a -r", ""); | 977 | new_init_action(SHUTDOWN, "/bin/umount -a -r", ""); |
978 | #if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__) | ||
979 | /* Swapoff on halt/reboot */ | 978 | /* Swapoff on halt/reboot */ |
980 | new_init_action(SHUTDOWN, "/sbin/swapoff -a", ""); | 979 | if(ENABLE_SWAPONOFF) new_init_action(SHUTDOWN, "/sbin/swapoff -a", ""); |
981 | #endif | ||
982 | /* Prepare to restart init when a HUP is received */ | 980 | /* Prepare to restart init when a HUP is received */ |
983 | new_init_action(RESTART, "/sbin/init", ""); | 981 | new_init_action(RESTART, "/sbin/init", ""); |
984 | /* Askfirst shell on tty1-4 */ | 982 | /* Askfirst shell on tty1-4 */ |