PKGBUILDs/aur/open-iscsi/open-iscsi.install
Kevin Mihelich 9b36fe8016 aur updates
2013-08-13 01:17:55 +00:00

13 lines
281 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
}
post_upgrade() {
post_install
}