[oe-commits] Martin Jansa : initscripts-shr: create /dev/pts, /dev/shm if they doesn' t exist (devtmpfs doesn' t create them for us and ssh login fails later due to missing PTYs)

git version control git at git.openembedded.org
Mon Mar 1 16:01:49 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 517816ac3c3d43cb53569955ad6705f468da6cf4
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=517816ac3c3d43cb53569955ad6705f468da6cf4

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Mon Mar  1 14:49:04 2010 +0100

initscripts-shr: create /dev/pts, /dev/shm if they doesn't exist (devtmpfs doesn't create them for us and ssh login fails later due to missing PTYs)

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 recipes/shr/initscripts-shr/mountdevsubfs.sh |   13 +++++++------
 recipes/shr/initscripts-shr_0.0.1.bb         |    2 +-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/recipes/shr/initscripts-shr/mountdevsubfs.sh b/recipes/shr/initscripts-shr/mountdevsubfs.sh
index c6cfb05..4308dab 100644
--- a/recipes/shr/initscripts-shr/mountdevsubfs.sh
+++ b/recipes/shr/initscripts-shr/mountdevsubfs.sh
@@ -4,11 +4,12 @@
 
 test -c /dev/ptmx || mknod -m 666 /dev/ptmx c 5 2
 
-if [ -d /dev/pts ]; then
-	mount -n -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE}
+if [ ! -d /dev/pts ]; then
+        mkdir /dev/pts
 fi
-
-
-if [ -d /dev/shm ]; then
-	mount -n -t tmpfs shmfs /dev/shm -omode=0777
+if [ ! -d /dev/shm ]; then
+        mkdir /dev/shm
 fi
+
+mount -n -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE}
+mount -n -t tmpfs shmfs /dev/shm -omode=0777
diff --git a/recipes/shr/initscripts-shr_0.0.1.bb b/recipes/shr/initscripts-shr_0.0.1.bb
index 89df6ce..ac7d83f 100644
--- a/recipes/shr/initscripts-shr_0.0.1.bb
+++ b/recipes/shr/initscripts-shr_0.0.1.bb
@@ -5,7 +5,7 @@ DEPENDS = ""
 RDEPENDS = ""
 LICENSE = "GPL"
 PV = "0.0.1"
-PR = "r14"
+PR = "r15"
 
 RPROVIDES_${PN} = "initscripts"
 RCONFLICTS_${PN} = "initscripts"





More information about the Openembedded-commits mailing list