summaryrefslogtreecommitdiffstats
path: root/resources/config/1/uniontmp/etc/init.inactive/screen-cleanup.conf
diff options
context:
space:
mode:
authormichael pereira2011-03-10 17:06:50 +0100
committermichael pereira2011-03-10 17:06:50 +0100
commitd8f220602135e144ef9cde05676d5bf09226cb4b (patch)
tree976535f1c7b3cfadea863e8f3254e2798c9fd51b /resources/config/1/uniontmp/etc/init.inactive/screen-cleanup.conf
parentBootmenu auf preboot JSON (diff)
downloadpbs2-d8f220602135e144ef9cde05676d5bf09226cb4b.tar.gz
pbs2-d8f220602135e144ef9cde05676d5bf09226cb4b.tar.xz
pbs2-d8f220602135e144ef9cde05676d5bf09226cb4b.zip
Resources für Preboot
Diffstat (limited to 'resources/config/1/uniontmp/etc/init.inactive/screen-cleanup.conf')
-rwxr-xr-xresources/config/1/uniontmp/etc/init.inactive/screen-cleanup.conf29
1 files changed, 0 insertions, 29 deletions
diff --git a/resources/config/1/uniontmp/etc/init.inactive/screen-cleanup.conf b/resources/config/1/uniontmp/etc/init.inactive/screen-cleanup.conf
deleted file mode 100755
index 167be0e..0000000
--- a/resources/config/1/uniontmp/etc/init.inactive/screen-cleanup.conf
+++ /dev/null
@@ -1,29 +0,0 @@
-# screen
-
-description "GNU Screen Cleanup"
-author "Dustin Kirkland <kirkland@canonical.com>"
-
-start on filesystem
-
-task
-
-script
- SCREENDIR=/var/run/screen
- if [ -L $SCREENDIR ] || [ ! -d $SCREENDIR ]; then
- rm -f $SCREENDIR
- mkdir $SCREENDIR
- chown root:utmp $SCREENDIR
- fi
- find $SCREENDIR -type p -delete
- # If the local admin has used dpkg-statoverride to install the screen
- # binary with different set[ug]id bits, change the permissions of
- # $SCREENDIR accordingly
- BINARYPERM=`stat -c%a /usr/bin/screen`
- if [ "$BINARYPERM" -ge 4000 ]; then
- chmod 0755 $SCREENDIR
- elif [ "$BINARYPERM" -ge 2000 ]; then
- chmod 0775 $SCREENDIR
- else
- chmod 0777 $SCREENDIR
- fi
-end script