diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-27 21:12:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-06 11:27:27 +0000 |
commit | 88da06039541e6aee390fbf42f87d7e2650e4479 (patch) | |
tree | a976ebc9201fb3bf8d6ea494e8b6c50a68e7589f /meta/recipes-core/udev | |
parent | fdb3d74458cd36a0fe53ee097394acc37d658ce9 (diff) | |
download | openembedded-core-88da06039541e6aee390fbf42f87d7e2650e4479.tar.gz openembedded-core-88da06039541e6aee390fbf42f87d7e2650e4479.tar.bz2 openembedded-core-88da06039541e6aee390fbf42f87d7e2650e4479.zip |
udev: ensure /dev/pts and /dev/shm does exists
Diffstat (limited to 'meta/recipes-core/udev')
-rw-r--r-- | meta/recipes-core/udev/udev/init | 5 |
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" # mount the tmpfs on /dev, if not already done LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /proc/mounts && { mount -n -o mode=0755 -t tmpfs none "/dev" - mkdir -m 0755 /dev/pts - mkdir -m 1777 /dev/shm } +[ -e /dev/pts ] || mkdir -m 0755 /dev/pts +[ -e /dev/shm ] || mkdir -m 1777 /dev/shm + if [ -e /etc/dev.tar ]; then (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp' || true) |