does not start service when invoked through the bootstrapfs build
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 28 Aug 2008 13:21:41 +0000 (13:21 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 28 Aug 2008 13:21:41 +0000 (13:21 +0000)
iptables.spec

index 11e7aa9..1b301ac 100644 (file)
@@ -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