Sophie

Sophie

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

saned-1.0.31-3.mga8.i586.rpm

PREIN

/bin/sh
# Add saned to group scanner, cdwriter and usb for scanner access.
/usr/sbin/useradd -r -M -s /bin/false -d /etc/sane.d -c "system user for saned" saned -G cdwriter,usb,scanner || :

PREUN

/bin/sh

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

POSTIN

/bin/sh

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

POSTUN

/bin/sh

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