summaryrefslogtreecommitdiffstats
path: root/debian/nvme-cli.postinst
blob: d2f0ca8677c1fcb4701d9699f21c07c41772fbd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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#