aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/shr/initscripts-shr/mountdevsubfs.sh
blob: 4308dab44ea517d4ff6f7332eb487518fe688c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

. /etc/default/devpts

test -c /dev/ptmx || mknod -m 666 /dev/ptmx c 5 2

if [ ! -d /dev/pts ]; then
        mkdir /dev/pts
fi
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