diff options
| author | Mark Hatle <mark.hatle@windriver.com> | 2017-09-08 10:44:23 -0500 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@windriver.com> | 2017-09-14 08:29:01 -0500 |
| commit | 4fefe83c3203c11fadbe43637a3058284b60427b (patch) | |
| tree | af4b33f05100c12ed16851f5dd4129f0e176da25 /recipes-core/initscripts/files/devpts.sh | |
| parent | 694b8d1f1a590083e4445d6941f24b412ec0f206 (diff) | |
| download | meta-selinux-4fefe83c3203c11fadbe43637a3058284b60427b.tar.gz | |
Refactor to conform to YP Compat requirements
Change the references to check for the distribution flag of 'selinux' being
set before taking any action within the bbappends. This prevents the
signature from being modified.
Also remove PR changes, as they are no longer allowed.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'recipes-core/initscripts/files/devpts.sh')
| -rwxr-xr-x | recipes-core/initscripts/files/devpts.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-core/initscripts/files/devpts.sh b/recipes-core/initscripts/files/devpts.sh new file mode 100755 index 0000000..a0b037f --- /dev/null +++ b/recipes-core/initscripts/files/devpts.sh | |||
| @@ -0,0 +1,29 @@ | |||
| 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 | ||
| 10 | |||
| 11 | . /etc/default/devpts | ||
| 12 | |||
| 13 | if grep -q devpts /proc/filesystems | ||
| 14 | then | ||
| 15 | # | ||
| 16 | # Create multiplexor device. | ||
| 17 | # | ||
| 18 | test -c /dev/ptmx || mknod -m 666 /dev/ptmx c 5 2 | ||
| 19 | |||
| 20 | # | ||
| 21 | # Mount /dev/pts if needed. | ||
| 22 | # | ||
| 23 | if ! grep -q devpts /proc/mounts | ||
| 24 | then | ||
| 25 | mkdir -p /dev/pts | ||
| 26 | mount -t devpts devpts /dev/pts -ogid=${TTYGRP},mode=${TTYMODE} | ||
| 27 | test ! -x /sbin/restorecon || /sbin/restorecon -F /dev/pts | ||
| 28 | fi | ||
| 29 | fi | ||
