summaryrefslogtreecommitdiffstats
path: root/debian/bfh-container.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-16 16:32:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-16 16:32:54 +0000
commit0c3a6cc734f7c6eef1d3d8ab8329cc39b7d79046 (patch)
tree7839c3063f26cc21bbbade27c2cd6216a5ca15f1 /debian/bfh-container.postrm
parentAdding upstream version 20211009. (diff)
downloadbfh-metapackages-0c3a6cc734f7c6eef1d3d8ab8329cc39b7d79046.tar.xz
bfh-metapackages-0c3a6cc734f7c6eef1d3d8ab8329cc39b7d79046.zip
Adding debian version 20211009-21.debian/20211009-21
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/bfh-container.postrm')
-rwxr-xr-xdebian/bfh-container.postrm30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/bfh-container.postrm b/debian/bfh-container.postrm
new file mode 100755
index 0000000..ec69346
--- /dev/null
+++ b/debian/bfh-container.postrm
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ remove)
+ for FILE in halt poweroff reboot shutdown coldreboot
+ do
+ dpkg-divert --package bfh-container --quiet --remove --rename --divert /lib/container/divert/${FILE}.orig /sbin/${FILE}
+ done
+
+ for FILE in pm-hibernate pm-suspend pm-suspend-hybrid
+ do
+ dpkg-divert --package bfh-container --quiet --remove --rename --divert /lib/container/divert/${FILE}.orig /usr/sbin/${FILE}
+ done
+ ;;
+
+ purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0