[Lunar-commits] <moonbase> iptables: a more complete BUILD file.

Florin Braescu florin at lunar-linux.org
Mon Oct 5 07:40:41 CEST 2009


commit d71bdccb6193cf8387c2615202b327345593adf9
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Mon Oct 5 08:40:41 2009 +0300

    iptables: a more complete BUILD file.
---
 security/iptables/BUILD |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/security/iptables/BUILD b/security/iptables/BUILD
index 3ecbb17..cb3e568 100644
--- a/security/iptables/BUILD
+++ b/security/iptables/BUILD
@@ -2,7 +2,9 @@
 
   if module_installed iptables; then iptables-save -c > /etc/config.d/iptables.sav; fi
   default_build  &&
-  cat /etc/config.d/iptables.sav | iptables-restore -c  &&
-  rm /etc/config.d/iptables.sav
+  if [ -f /etc/config.d/iptables.sav ]; then
+    cat /etc/config.d/iptables.sav | iptables-restore -c  &&
+    rm /etc/config.d/iptables.sav
+  fi
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list