Bug system entry #1 says that when busybox doesn't have swapoff,
init shouldn't call swapoff.
This commit is contained in:
parent
9a643149de
commit
7a8f6792f3
@ -975,10 +975,8 @@ static void parse_inittab(void)
|
|||||||
new_init_action(CTRLALTDEL, "/sbin/reboot", "");
|
new_init_action(CTRLALTDEL, "/sbin/reboot", "");
|
||||||
/* Umount all filesystems on halt/reboot */
|
/* Umount all filesystems on halt/reboot */
|
||||||
new_init_action(SHUTDOWN, "/bin/umount -a -r", "");
|
new_init_action(SHUTDOWN, "/bin/umount -a -r", "");
|
||||||
#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
|
|
||||||
/* Swapoff on halt/reboot */
|
/* Swapoff on halt/reboot */
|
||||||
new_init_action(SHUTDOWN, "/sbin/swapoff -a", "");
|
if(ENABLE_SWAPONOFF) new_init_action(SHUTDOWN, "/sbin/swapoff -a", "");
|
||||||
#endif
|
|
||||||
/* Prepare to restart init when a HUP is received */
|
/* Prepare to restart init when a HUP is received */
|
||||||
new_init_action(RESTART, "/sbin/init", "");
|
new_init_action(RESTART, "/sbin/init", "");
|
||||||
/* Askfirst shell on tty1-4 */
|
/* Askfirst shell on tty1-4 */
|
||||||
|
Loading…
Reference in New Issue
Block a user