wok-stable rev 9427

open-iscsi: improve receipt
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Mar 31 00:28:17 2011 +0200 (2011-03-31)
parents c1fda2da8fb1
children 7af699bb133c
files open-iscsi/receipt
line diff
     1.1 --- a/open-iscsi/receipt	Wed Mar 30 16:18:14 2011 +0000
     1.2 +++ b/open-iscsi/receipt	Thu Mar 31 00:28:17 2011 +0200
     1.3 @@ -29,3 +29,10 @@
     1.4  	cp -a $_pkg/sbin $fs
     1.5  }
     1.6  
     1.7 +post_install()
     1.8 +{
     1.9 +	echo "Processing post-install commands..."
    1.10 +	if  [ ! -f $1/etc/iscsi/initiatorname.iscsi ]; then
    1.11 +			echo "InitiatorName=$($1/sbin/iscsi-iname)" > $1/etc/iscsi/initiatorname.iscsi
    1.12 +	fi
    1.13 +}