From: Thierry Parmentelat Date: Thu, 28 Aug 2008 13:21:41 +0000 (+0000) Subject: does not start service when invoked through the bootstrapfs build X-Git-Tag: iptables-1.3.8-8~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5c029b3a7829134ff8ca5f74bf2a17aa73828118;p=iptables.git does not start service when invoked through the bootstrapfs build --- diff --git a/iptables.spec b/iptables.spec index 11e7aa9..1b301ac 100644 --- a/iptables.spec +++ b/iptables.spec @@ -115,20 +115,24 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add iptables -/sbin/service iptables restart +if [ "$PL_BOOTCD" != "1" ] ; then + /sbin/service iptables restart +fi %preun if [ "$1" = 0 ]; then - /sbin/chkconfig --del iptables + /sbin/chkconfig --del iptables fi %post ipv6 /sbin/chkconfig --add ip6tables -/sbin/service ip6tables restart +if [ "$PL_BOOTCD" != "1" ] ; then + /sbin/service ip6tables restart +fi %preun ipv6 if [ "$1" = 0 ]; then - /sbin/chkconfig --del ip6tables + /sbin/chkconfig --del ip6tables fi %files