aboutsummaryrefslogtreecommitdiff
path: root/package/sysvinit
diff options
context:
space:
mode:
authorGravatar Carlos Santos <casantos@datacom.com.br>2018-06-11 03:00:13 -0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-06-12 11:22:34 +0200
commitdc267db6ab4d54ed3ddb582774fb51ef64332649 (patch)
treea13226bebca8948765a84fcfaa78da475f5cf242 /package/sysvinit
parent9a5c3d5bb40f31676cd9949e4e63d7f3d4f2f812 (diff)
downloadbuildroot-dc267db6ab4d54ed3ddb582774fb51ef64332649.tar.gz
buildroot-dc267db6ab4d54ed3ddb582774fb51ef64332649.tar.bz2
sysvinit: reduce number of mkdir calls in inittab
The default sysvinit inittab does two separate mkdir calls to create /dev/pts and /dev/shm. Reduce this to call mkdir only once for both directories. This removes id "si3" but keeps ids "si4".."si9" intact rather than renumbering them. This would just increase the turmoil without any practical effect. Based on commit e9db8122fb, by Florian La Roche <F.LaRoche@pilz.de>. Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/sysvinit')
-rw-r--r--package/sysvinit/inittab3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/sysvinit/inittab b/package/sysvinit/inittab
index 7eaef59d9e..2ca253ad6c 100644
--- a/package/sysvinit/inittab
+++ b/package/sysvinit/inittab
@@ -6,8 +6,7 @@ id:3:initdefault:
si0::sysinit:/bin/mount -t proc proc /proc
si1::sysinit:/bin/mount -o remount,rw /
-si2::sysinit:/bin/mkdir -p /dev/pts
-si3::sysinit:/bin/mkdir -p /dev/shm
+si2::sysinit:/bin/mkdir -p /dev/pts /dev/shm
si4::sysinit:/bin/mount -a
si5::sysinit:/bin/ln -sf /proc/self/fd /dev/fd 2>/dev/null
si6::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin 2>/dev/null