void-packages/srcpkgs/nvme-cli/INSTALL

13 lines
233 B
Plaintext

if [ "$UPDATE" != "yes" ]; then
case "${ACTION}" in
post)
if [ ! -s etc/nvme/hostnqn ]; then
echo $(nvme gen-hostnqn) > etc/nvme/hostnqn
fi
if [ ! -s etc/nvme/hostid ]; then
uuidgen > etc/nvme/hostid
fi
;;
esac
fi