void-packages/srcpkgs/open-iscsi/INSTALL

11 lines
223 B
Plaintext
Raw Normal View History

2015-01-01 18:46:22 +01:00
case "${ACTION}" in
post)
if [ ! -s etc/iscsi/initiatorname.iscsi ]; then
name=$(iscsi-iname)
echo "Initializing InitiatorName to $name"
echo "InitiatorName=$name" >etc/iscsi/initiatorname.iscsi
fi
;;
esac