diff options
Diffstat (limited to 'recipes/shr/initscripts-shr/mountdevsubfs.sh')
-rw-r--r-- | recipes/shr/initscripts-shr/mountdevsubfs.sh | 13 |
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 |