summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/udev/udev/init5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index bfbac0d95d..6a4464c639 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -30,9 +30,10 @@ echo "Starting udev"
30# mount the tmpfs on /dev, if not already done 30# mount the tmpfs on /dev, if not already done
31LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /proc/mounts && { 31LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /proc/mounts && {
32 mount -n -o mode=0755 -t tmpfs none "/dev" 32 mount -n -o mode=0755 -t tmpfs none "/dev"
33 mkdir -m 0755 /dev/pts
34 mkdir -m 1777 /dev/shm
35} 33}
34[ -e /dev/pts ] || mkdir -m 0755 /dev/pts
35[ -e /dev/shm ] || mkdir -m 1777 /dev/shm
36
36 37
37if [ -e /etc/dev.tar ]; then 38if [ -e /etc/dev.tar ]; then
38 (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp' || true) 39 (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp' || true)