summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
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:19:20 +0000
commitfa12bce81eda1ce0e23bb5672a71707b75ebf5fa (patch)
treeea251a11b855c9f8eb53ca1941f36ee7f5891799 /meta/recipes-core
parentea11f86ce936eac2c32928b04c00487b4d91eae8 (diff)
downloadpoky-fa12bce81eda1ce0e23bb5672a71707b75ebf5fa.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 (From OE-Core rev: b1799bd40dfa3b244ddf2b7fba1fb4dc1f9a7394) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-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 @@
8::sysinit:/bin/mkdir -p /dev/pts 8::sysinit:/bin/mkdir -p /dev/pts
9::sysinit:/bin/mount -t devpts devpts /dev/pts 9::sysinit:/bin/mount -t devpts devpts /dev/pts
10::sysinit:/bin/mount -a 10::sysinit:/bin/mount -a
11 11::sysinit:/sbin/swapon -a
12null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
13null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
14null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
15null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
16# set hostname
17null::sysinit:/bin/busybox hostname -F /etc/hostname
12::sysinit:/etc/init.d/rcS 18::sysinit:/etc/init.d/rcS
13 19
14# Stuff to do before rebooting 20# Stuff to do before rebooting
15::ctrlaltdel:/sbin/reboot 21#::ctrlaltdel:/sbin/reboot
16::shutdown:/etc/init.d/rcK 22::shutdown:/etc/init.d/rcK
17::shutdown:/sbin/swapoff -a 23::shutdown:/sbin/swapoff -a
18::shutdown:/bin/umount -a -r 24::shutdown:/bin/umount -a -r
@@ -20,5 +26,3 @@
20# Stuff to do when restarting the init process 26# Stuff to do when restarting the init process
21::restart:/sbin/init 27::restart:/sbin/init
22 28
23# set hostname
24null::sysinit:/bin/busybox hostname -F /etc/hostname