Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 82a1e19009572c389907e65a15a4b9cc > scriptlet

arptables_jf-0.0.8-31.fc18.i686.rpm

PREUN

/bin/sh

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

POSTIN

/bin/sh

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

POSTUN

/bin/sh

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

Triggers

arptables_jf < 0.0.8-25

/bin/sh
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply arptables
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save arptables >/dev/null 2>&1 ||:

# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del arptables >/dev/null 2>&1 || :
/bin/systemctl try-restart arptables.service >/dev/null 2>&1 || :