#!/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#