summaryrefslogtreecommitdiff
path: root/recipes/shr/initscripts-shr/mountdevsubfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/shr/initscripts-shr/mountdevsubfs.sh')
-rw-r--r--recipes/shr/initscripts-shr/mountdevsubfs.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/shr/initscripts-shr/mountdevsubfs.sh b/recipes/shr/initscripts-shr/mountdevsubfs.sh
new file mode 100644
index 0000000000..c6cfb05af2
--- /dev/null
+++ b/recipes/shr/initscripts-shr/mountdevsubfs.sh
@@ -0,0 +1,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