1
0
Fork 0
nvme-cli/debian/nvme-cli.postinst
Daniel Baumann cfe5968bf1
Making postinst executable in source tree.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-16 11:31:14 +01:00

15 lines
241 B
Bash
Executable file

#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
if [ ! -s /etc/nvme/hostnqn ]; then
nvme gen-hostnqn > /etc/nvme/hostnqn
fi
if [ ! -s /etc/nvme/hostid ]; then
uuidgen > /etc/nvme/hostid
fi
fi
#DEBHELPER#