void-packages/srcpkgs/nvme-cli/INSTALL

12 lines
233 B
Text

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