From 43d3000d71cbd653411373ed87df80ca6c9f228f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:28:28 +0200 Subject: Adding debian version 4.9.0-4. Signed-off-by: Daniel Baumann --- debian/screen.postinst | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 debian/screen.postinst (limited to 'debian/screen.postinst') diff --git a/debian/screen.postinst b/debian/screen.postinst new file mode 100644 index 0000000..3c2d74f --- /dev/null +++ b/debian/screen.postinst @@ -0,0 +1,35 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +if [ "$1" = configure ]; then + if ! test -d /run/screen; then + install -g utmp -m 0775 -d /run/screen + fi + perms="`stat -c%a /usr/bin/screen`" + override=/etc/tmpfiles.d/screen-cleanup.conf + if [ $perms -eq 4755 ]; then + chmod 0755 /run/screen + if [ ! -f $override ]; then + echo "# This file is generated by $0 upon package configuration" > $override + echo 'd /run/screen 0755 root utmp' >> $override + fi + elif [ $perms -eq 755 ]; then + chmod 1777 /run/screen + if [ ! -f $override ]; then + echo "# This file is generated by $0 upon package configuration" > $override + echo 'd /run/screen 1777 root utmp' >> $override + fi + fi + + # LP #1462692 + servicedir=/lib/systemd/system + servicefile=$servicedir/screen-cleanup.service + mkdir -p $servicedir + if [ ! -e $servicefile ]; then + ln -s /dev/null $servicefile + fi +fi + +#DEBHELPER# -- cgit v1.2.3