mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
13 lines
281 B
Text
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
|
|
}
|