diff options
author | Florian La Roche <F.LaRoche@pilz.de> | 2018-06-05 15:47:09 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-06-05 18:50:22 +0200 |
commit | 13dbe73782c3555b382ea8ebd9cda34ac9ef5744 (patch) | |
tree | b931acc8b204ea4165f7f142368d952c31f12f63 | |
parent | c7963858ed64bfc1b0b257c41e0058b684810632 (diff) | |
download | buildroot-13dbe73782c3555b382ea8ebd9cda34ac9ef5744.tar.gz buildroot-13dbe73782c3555b382ea8ebd9cda34ac9ef5744.zip |
busybox: reduce number of mkdir calls in inittab
The default busybox inittab does two separate mkdir calls
to create /dev/pts and /dev/shm. Reduce this to call mkdir
only once for both directories.
Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r-- | package/busybox/inittab | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/busybox/inittab b/package/busybox/inittab index ef58c32f0d..7cd203de0b 100644 --- a/package/busybox/inittab +++ b/package/busybox/inittab @@ -16,8 +16,7 @@ # Startup the system ::sysinit:/bin/mount -t proc proc /proc ::sysinit:/bin/mount -o remount,rw / -::sysinit:/bin/mkdir -p /dev/pts -::sysinit:/bin/mkdir -p /dev/shm +::sysinit:/bin/mkdir -p /dev/pts /dev/shm ::sysinit:/bin/mount -a null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin |