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

14 lines
281 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
}
post_upgrade() {
post_install
2011-01-07 19:52:36 +00:00
}