summaryrefslogtreecommitdiffstats
path: root/debian/libpam-modules.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:38:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:38:36 +0000
commitf03a6cee3de793ea6afa30b147e947b215d00011 (patch)
treec207fc88f43b0a66b17464d447cae7c98d9d41af /debian/libpam-modules.preinst
parentAdding upstream version 1.3.1. (diff)
downloadpam-f03a6cee3de793ea6afa30b147e947b215d00011.tar.xz
pam-f03a6cee3de793ea6afa30b147e947b215d00011.zip
Adding debian version 1.3.1-5.debian/1.3.1-5debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/libpam-modules.preinst')
-rw-r--r--debian/libpam-modules.preinst16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/libpam-modules.preinst b/debian/libpam-modules.preinst
new file mode 100644
index 0000000..034dfaa
--- /dev/null
+++ b/debian/libpam-modules.preinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+if dpkg --compare-versions "$2" lt-nl 1.3.1-2; then
+ db_version 2.0
+
+ if pidof xscreensaver xlockmore >/dev/null; then
+ db_input critical libpam-modules/disable-screensaver || true
+ db_go || true
+ fi
+fi
+
+#DEBHELPER#