diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:41:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:41:05 +0000 |
commit | 3f3d5c3dfaaae089ff38e368212f330d442f68ea (patch) | |
tree | a4f23c9aa9dce0ca7868e1bbf760f4e47999a0e3 /debian/nvme-cli.postinst | |
parent | Adding upstream version 2.4+really2.3. (diff) | |
download | nvme-cli-3f3d5c3dfaaae089ff38e368212f330d442f68ea.tar.xz nvme-cli-3f3d5c3dfaaae089ff38e368212f330d442f68ea.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 'debian/nvme-cli.postinst')
-rwxr-xr-x | debian/nvme-cli.postinst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/nvme-cli.postinst b/debian/nvme-cli.postinst new file mode 100755 index 0000000..f984cc9 --- /dev/null +++ b/debian/nvme-cli.postinst @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + if [ ! -s /etc/nvme/hostnqn ] + then + nvme gen-hostnqn > /etc/nvme/hostnqn + fi + + if [ ! -s /etc/nvme/hostid ] + then + uuidgen > /etc/nvme/hostid + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |