generic-poky/meta/recipes-core/initscripts/initscripts-1.0/devpts.sh
Martin Jansa 6b2b5d2acd initscripts: remove space from shebang, just cosmetics
* at least in initscripts it's consistent now

(From OE-Core rev: 20d5effcf192d469883b5ac899cbd2340b71bd2c)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-24 11:05:30 +00:00

29 lines
526 B
Bash
Executable file

#!/bin/sh
### BEGIN INIT INFO
# Provides: devpts
# Required-Start: udev
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Mount /dev/pts file systems.
### END INIT INFO
. /etc/default/devpts
if grep -q devpts /proc/filesystems
then
#
# Create multiplexor device.
#
test -c /dev/ptmx || mknod -m 666 /dev/ptmx c 5 2
#
# Mount /dev/pts if needed.
#
if ! grep -q devpts /proc/mounts
then
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE}
fi
fi