wok diff pam/receipt @ rev 11446

pam, busybox-pam: trigger the proper reinstallation of busybox before removing them
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Dec 16 23:50:33 2011 +0100 (2011-12-16)
parents ab5bfe22ed1d
children f45ab88b5080
line diff
     1.1 --- a/pam/receipt	Sat Dec 10 04:42:49 2011 +0100
     1.2 +++ b/pam/receipt	Fri Dec 16 23:50:33 2011 +0100
     1.3 @@ -37,3 +37,13 @@
     1.4  	rm -f $fs/lib/security/*.la
     1.5  	cp -a $stuff/* $fs	
     1.6  }
     1.7 +
     1.8 +pre_remove()
     1.9 +{
    1.10 +	# If busybox-pam is installed, trigger its removal right now. Once pam shared
    1.11 +	# library will be removed, it will be too late. Don't worry about this, while
    1.12 +	# removing busybox-pam will replace itself by a non-pam busybox.
    1.13 +	if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then
    1.14 +		tazpkg remove busybox-pam --auto
    1.15 +	fi
    1.16 +}