PKGBUILDs/aur/open-iscsi/open-iscsi.install

20 lines
453 B
Plaintext
Raw Normal View History

2011-01-07 19:52:36 +00:00
## arg 1: the new package version
post_install() {
2012-05-30 20:52:47 +00:00
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
2011-01-07 19:52:36 +00:00
}