summaryrefslogtreecommitdiffstats
path: root/meta/packages/initscripts
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2008-06-25 15:09:05 +0000
committerRoss Burton <ross@openedhand.com>2008-06-25 15:09:05 +0000
commit6cd426013e1701845a03a42bfd45a45cc3f13c91 (patch)
treed3fb0ff45476a28c2c870b0d74ded876a100d234 /meta/packages/initscripts
parent5da8c4a3d8a08d400fdbad7a0adbd530230bb213 (diff)
downloadpoky-6cd426013e1701845a03a42bfd45a45cc3f13c91.tar.gz
initscripts: don't create subshells for simple tests
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4726 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/initscripts')
-rwxr-xr-xmeta/packages/initscripts/initscripts-1.0/devpts.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/devpts.sh b/meta/packages/initscripts/initscripts-1.0/devpts.sh
index 334cf63801..18202adcc7 100755
--- a/meta/packages/initscripts/initscripts-1.0/devpts.sh
+++ b/meta/packages/initscripts/initscripts-1.0/devpts.sh
@@ -1,14 +1,16 @@
1#! /bin/sh 1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: devpts
4# Required-Start: udev
5# Required-Stop:
6# Default-Start: S
7# Default-Stop:
8# Short-Description: Mount /dev/pts file systems.
9### END INIT INFO
2 10
3. /etc/default/devpts 11. /etc/default/devpts
4 12
5test "`uname -s`" = "Linux" || exit 0 13if grep -q devpts /proc/filesystems
6
7#
8# First find out if devpts is available. Also check if devfs
9# is already mounted - in that case we don't want to use devpts.
10#
11if test ! -e /dev/.devfsd && ( grep -q devpts /proc/filesystems )
12then 14then
13 # 15 #
14 # Create multiplexor device. 16 # Create multiplexor device.
@@ -18,11 +20,9 @@ then
18 # 20 #
19 # Mount /dev/pts if needed. 21 # Mount /dev/pts if needed.
20 # 22 #
21 if ( ! grep -q devpts /proc/mounts ) 23 if ! grep -q devpts /proc/mounts
22 then 24 then
23 mkdir -p /dev/pts 25 mkdir -p /dev/pts
24 mount -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE} 26 mount -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE}
25 fi 27 fi
26fi 28fi
27
28exit 0