summaryrefslogtreecommitdiffstats
path: root/debian/nvme-cli.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:41:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:41:05 +0000
commit3f3d5c3dfaaae089ff38e368212f330d442f68ea (patch)
treea4f23c9aa9dce0ca7868e1bbf760f4e47999a0e3 /debian/nvme-cli.postrm
parentAdding upstream version 2.4+really2.3. (diff)
downloadnvme-cli-debian.tar.xz
nvme-cli-debian.zip
Adding debian version 2.4+really2.3-3.debian/2.4+really2.3-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/nvme-cli.postrm24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/nvme-cli.postrm b/debian/nvme-cli.postrm
new file mode 100755
index 0000000..79c2438
--- /dev/null
+++ b/debian/nvme-cli.postrm
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ purge)
+ rm -f /etc/nvme/hostnqn
+ rm -f /etc/nvme/hostid
+ rmdir /etc/nvme > /dev/null 2>&1 || true
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0