Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/nvmi-cli/nvme-cli.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nvmi-cli/nvme-cli.install')
-rw-r--r--extra/nvmi-cli/nvme-cli.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/extra/nvmi-cli/nvme-cli.install b/extra/nvmi-cli/nvme-cli.install
new file mode 100644
index 00000000..6babfeb6
--- /dev/null
+++ b/extra/nvmi-cli/nvme-cli.install
@@ -0,0 +1,8 @@
+post_install(){
+ if [ ! -f /etc/nvme/hostnqn ]; then
+ nvme gen-hostnqn > /etc/nvme/hostnqn
+ fi
+ if [ ! -f /etc/nvme/hostid ]; then
+ uuidgen > /etc/nvme/hostid
+ fi
+}