]> git.pld-linux.org Git - packages/firewall-init.git/blobdiff - firewall-init.spec
- use macros in %{pre,post}{,un}
[packages/firewall-init.git] / firewall-init.spec
index 956dd43a4370c69de0b5c3cd99b52662648ec7ad..c25b28b0a1d3c68f376eb84e96ff8cde09629285 100644 (file)
@@ -41,12 +41,10 @@ for i in input output forward; do
 done
 
 %post
-/sbin/chkconfig --add firewall
+NAME=firewall; %chkconfig_add
 
-%postun
-if [ "$1" = "0" ]; then
-       /sbin/chkconfig --del firewall
-fi
+%preun
+NAME=firewall; %chkconfig_del
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.075237 seconds and 4 git commands to generate.