summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-12-27 21:12:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-06 12:11:33 +0000
commit8178e636490c73b1f7c88ef128a3300868ac9ca6 (patch)
treebe48bc96d33227ddbd0e6942cd34bd34ccfeb6d8 /meta
parentf51ecaf349d4347c75596db76d407a2f20a6f3f1 (diff)
downloadpoky-8178e636490c73b1f7c88ef128a3300868ac9ca6.tar.gz
udev: ensure /dev/pts and /dev/shm does exists
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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)