summaryrefslogtreecommitdiff
path: root/recipes/shr/initscripts-shr
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-03-01 14:49:04 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2010-03-01 16:54:16 +0100
commit517816ac3c3d43cb53569955ad6705f468da6cf4 (patch)
tree1441d4ea6930add2238dbb5bd727489d1311b3fb /recipes/shr/initscripts-shr
parent175f25a8e3032c515ee6f951115c349596b15cc0 (diff)
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@gmail.com>
Diffstat (limited to 'recipes/shr/initscripts-shr')
-rw-r--r--recipes/shr/initscripts-shr/mountdevsubfs.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/recipes/shr/initscripts-shr/mountdevsubfs.sh b/recipes/shr/initscripts-shr/mountdevsubfs.sh
index c6cfb05af2..4308dab44e 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