Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 861ac4c94261cb49c2add82203494692 > scriptlet

iptables-1.4.12-2.fc16.i686.rpm

PREUN

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

POSTIN

/bin/sh
/sbin/ldconfig
if [ $1 -eq 1 ] ; then # Initial installation
   /bin/systemctl daemon-reload >/dev/null 2>&1 || :
   /bin/systemctl enable iptables.service >/dev/null 2>&1 || :
   /bin/systemctl enable ip6tables.service >/dev/null 2>&1 || :
fi

POSTUN

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

Triggers

iptables < 1.4.11.1-3

/bin/sh
# To apply saved runlevel, use systemd-sysv-convert --apply iptables
/usr/bin/systemd-sysv-convert --save iptables >/dev/null 2>&1 ||:

# Autostart
/bin/systemctl --no-reload enable iptables.service >/dev/null 2>&1 ||:

# Delete from sysv management, try to restart service
/sbin/chkconfig --del iptables >/dev/null 2>&1 || :
/bin/systemctl try-restart iptables.service >/dev/null 2>&1 || :

iptables-ipv6 < 1.4.11.1-3

/bin/sh
# To apply saved runlevel, use systemd-sysv-convert --apply iptables
/usr/bin/systemd-sysv-convert --save ip6tables >/dev/null 2>&1 ||:

# Autostart
/bin/systemctl --no-reload enable ip6tables.service >/dev/null 2>&1 ||:

# Delete from sysv management, try to restart service
/sbin/chkconfig --del ip6tables >/dev/null 2>&1 || :
/bin/systemctl try-restart ip6tables.service >/dev/null 2>&1 || :