diff options
author | Chia-I Wu <olv@openmoko.com> | 2008-10-28 16:49:38 +0800 |
---|---|---|
committer | John Lee <john_lee@openmoko.org> | 2009-01-12 14:29:03 +0800 |
commit | 321b7dc88878ff24a48065048e01957d440a81c5 (patch) | |
tree | bcc1f0efb06afb662e250a45b83585870413eb30 /packages/initscripts/initscripts-openmoko/mountdevsubfs.sh | |
parent | 0cd7f559c01c45f5fc287e533b7456fc2ba79cb9 (diff) |
fastboot: initscripts-openmoko: Replacement for initscripts.
Move the common files into 'files' dir and keep Openmoko specific
files under initscripts-openmoko. 'finish' was renamed to
'finish.sh', so various recipes have to be modified as well.
Diffstat (limited to 'packages/initscripts/initscripts-openmoko/mountdevsubfs.sh')
-rw-r--r-- | packages/initscripts/initscripts-openmoko/mountdevsubfs.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-openmoko/mountdevsubfs.sh b/packages/initscripts/initscripts-openmoko/mountdevsubfs.sh new file mode 100644 index 0000000000..c6cfb05af2 --- /dev/null +++ b/packages/initscripts/initscripts-openmoko/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 |