Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 2745e49cf553a827de1caf769596c02d > scriptlet

ksmtuned-0.1.0-3.mga7.armv7hl.rpm

PREUN

/bin/sh

if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        systemctl --no-reload disable --now ksm.service >/dev/null 2>&1 || : 
fi 


if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        systemctl --no-reload disable --now ksmtuned.service >/dev/null 2>&1 || : 
fi

POSTIN

/bin/sh

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        systemctl --no-reload preset ksm.service >/dev/null 2>&1 || : 
fi 


if [ $1 -eq 1 ] ; then 
        # Initial installation 
        systemctl --no-reload preset ksmtuned.service >/dev/null 2>&1 || : 
fi

POSTUN

/bin/sh

if [ $1 -ge 1 ] ; then 
        # Package upgrade, not uninstall 
        systemctl try-restart ksm.service >/dev/null 2>&1 || : 
fi 


if [ $1 -ge 1 ] ; then 
        # Package upgrade, not uninstall 
        systemctl try-restart ksmtuned.service >/dev/null 2>&1 || : 
fi