diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-29 06:29:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-29 06:29:57 +0000 |
commit | 85daa5f631dd11abfd689d4ddc9064190272a52e (patch) | |
tree | 6b3021567d8216d2590dd2b4c87dcbfcf0d5c95a /debian/kinet-container.postrm | |
parent | Adding upstream version 20230327. (diff) | |
download | kinet-metapackages-debian/20230327-1.tar.xz kinet-metapackages-debian/20230327-1.zip |
Adding debian version 20230327-1.debian/20230327-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/kinet-container.postrm')
-rwxr-xr-x | debian/kinet-container.postrm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/kinet-container.postrm b/debian/kinet-container.postrm new file mode 100755 index 0000000..ea6f799 --- /dev/null +++ b/debian/kinet-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 kinet-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 kinet-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 |