From 5c029b3a7829134ff8ca5f74bf2a17aa73828118 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 28 Aug 2008 13:21:41 +0000 Subject: [PATCH] does not start service when invoked through the bootstrapfs build --- iptables.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.47.0