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

. /etc/default/devpts

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}
fi


if [ -d /dev/shm ]; then
	mount -n -t tmpfs shmfs /dev/shm -omode=0777
fi