blob: 11574ac17cd8b6a29afb67fb9420690c99144155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ "$1" = configure ]; then
if ! test -d /var/run/screen; then
install -g utmp -m 0775 -d /var/run/screen
fi
perms="`stat -c%a /usr/bin/screen`"
override=/etc/tmpfiles.d/screen-cleanup.conf
if [ $perms -eq 4755 ]; then
chmod 0755 /var/run/screen
[ -f $override ] || echo 'd /var/run/screen 0755 root utmp' > $override
elif [ $perms -eq 755 ]; then
chmod 1777 /var/run/screen
[ -f $override ] || echo 'd /var/run/screen 1777 root utmp' > $override
fi
add-shell /usr/bin/screen || true
fi
#DEBHELPER#
|