PKGBUILDs/aur/open-iscsi/open-iscsi.install
2012-05-30 16:52:47 -04:00

19 lines
453 B
Text

## arg 1: the new package version
post_install() {
if [ -z $(</etc/iscsi/initiatorname.iscsi) ]; then
name=$(iscsi-iname)
echo
echo ">>> Setting Initiatorname '$name'"
echo "InitiatorName=$name" > /etc/iscsi/initiatorname.iscsi
fi
echo
echo "Configure /etc/conf.d/open-iscsi to enable:"
echo " - portal discovery"
echo " - automatic login to available targets"
echo " - automount of targets"
echo
}
post_upgrade() {
post_install
}