11 lines
223 B
Text
11 lines
223 B
Text
|
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
|
||
|
|