summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/files
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-10 09:29:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-11 09:17:20 +0000
commitb1799bd40dfa3b244ddf2b7fba1fb4dc1f9a7394 (patch)
tree333f640dedf3f81e984a0db953088c8a8cd61c44 /meta/recipes-core/busybox/files
parent7e0f6c9ea4f824f29dc30c6631fd8039ebe83a0b (diff)
downloadopenembedded-core-contrib-b1799bd40dfa3b244ddf2b7fba1fb4dc1f9a7394.tar.gz
busybox: Update inittab
Add stdin/stdout/stderr symlinks in case when not using hotplug Disable ctrl+alt+del, not used much Mount swap if defined Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox/files')
-rw-r--r--meta/recipes-core/busybox/files/inittab12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/recipes-core/busybox/files/inittab b/meta/recipes-core/busybox/files/inittab
index 2bc831c7c6..e8ec2ab68e 100644
--- a/meta/recipes-core/busybox/files/inittab
+++ b/meta/recipes-core/busybox/files/inittab
@@ -8,11 +8,17 @@
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mount -t devpts devpts /dev/pts
::sysinit:/bin/mount -a
-
+::sysinit:/sbin/swapon -a
+null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
+null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
+null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
+null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
+# set hostname
+null::sysinit:/bin/busybox hostname -F /etc/hostname
::sysinit:/etc/init.d/rcS
# Stuff to do before rebooting
-::ctrlaltdel:/sbin/reboot
+#::ctrlaltdel:/sbin/reboot
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
@@ -20,5 +26,3 @@
# Stuff to do when restarting the init process
::restart:/sbin/init
-# set hostname
-null::sysinit:/bin/busybox hostname -F /etc/hostname