summaryrefslogtreecommitdiff
path: root/debian/init
diff options
context:
space:
mode:
authorJan Christoph Nordholz <hesso@pool.math.tu-berlin.de>2007-09-25 03:22:39 +0200
committerAxel Beckert <abe@deuxchevaux.org>2011-09-03 14:05:32 +0200
commit1df16381394692fe55af6b3c8d928250c6bbad3f (patch)
tree892af0ea480faa09587491af2820af2961643260 /debian/init
parent0512143582b31866db6dec01586416eb8080a463 (diff)
downloadscreen-1df16381394692fe55af6b3c8d928250c6bbad3f.tar.gz
Imported Debian patch 4.0.3-7debian/4.0.3-7
Diffstat (limited to 'debian/init')
-rw-r--r--debian/init5
1 files changed, 2 insertions, 3 deletions
diff --git a/debian/init b/debian/init
index ff7de01..c1d04b2 100644
--- a/debian/init
+++ b/debian/init
@@ -15,12 +15,11 @@
set -e
-SCREENDIR=/tmp/.screen
+SCREENDIR=/var/run/screen
case "$1" in
start)
- rm -rf /var/run/screen
- if ! test -d $SCREENDIR; then
+ if test -L $SCREENDIR || ! test -d $SCREENDIR; then
rm -f $SCREENDIR
mkdir $SCREENDIR
chown root:utmp $SCREENDIR