Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > f462395ce1622537d6e2f62f635a229c > scriptlet

pcsc-lite-1.9.0-1.mga8.i586.rpm

PREUN

/bin/sh

 
if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then 
        # Package removal, not upgrade 
        /usr/bin/systemctl --no-reload disable --now pcscd.socket pcscd.service || : 
fi

POSTIN

/bin/sh
	

 
if [ $1 -eq 1 ] && [ -x /usr/bin/systemctl ]; then 
        # Initial installation 
        /usr/bin/systemctl --no-reload preset pcscd.socket pcscd.service || : 
fi 

# If install, test if pcscd socket is enabled.
# If enabled, then attempt to start it. This will silently fail
# in chroots or other environments where services aren't expected
# to be started.

if [ $1 -eq 1 ] ; then
	if systemctl -q is-enabled pcscd.socket > /dev/null 2>&1 ; then
		systemctl start pcscd.socket > /dev/null 2>&1 || :
	fi
fi

POSTUN

/bin/sh

 
if [ $1 -ge 1 ] && [ -x /usr/bin/systemctl ]; then 
        # Package upgrade, not uninstall 
        /usr/bin/systemctl try-restart pcscd.socket pcscd.service || : 
fi