#!/bin/sh
|
if [ ! -f /etc/iscsi/initiatorname.iscsi ]; then
|
INITIATORNAME=$(iscsi-iname)
|
cat >/etc/iscsi/initiatorname.iscsi <<EOF
|
## DO NOT EDIT OR REMOVE THIS FILE!
|
## If you remove this file, the iSCSI daemon will not start.
|
## If you change the InitiatorName, existing access control lists
|
## may reject this initiator. The InitiatorName must be unique
|
## for each iSCSI initiator. Do NOT duplicate iSCSI InitiatorNames.
|
InitiatorName=$INITIATORNAME
|
EOF
|
fi
|