SOURCES: iptables.init - exit early if not configured
glen
glen at pld-linux.org
Thu Dec 7 22:28:33 CET 2006
Author: glen Date: Thu Dec 7 21:28:33 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- exit early if not configured
---- Files affected:
SOURCES:
iptables.init (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SOURCES/iptables.init
diff -u SOURCES/iptables.init:1.6 SOURCES/iptables.init:1.7
--- SOURCES/iptables.init:1.6 Sun Oct 1 23:48:31 2006
+++ SOURCES/iptables.init Thu Dec 7 22:28:28 2006
@@ -14,10 +14,17 @@
#
# config: /etc/sysconfig/iptables
+IPTABLES_CONFIG=/etc/sysconfig/iptables
+if [ ! -f $IPTABLES_CONFIG ]; then
+ case "$1" in
+ start|restart|force-reload)
+ exit 0
+ ;;
+ esac
+fi
+
# Source 'em up
. /etc/rc.d/init.d/functions
-
-IPTABLES_CONFIG=/etc/sysconfig/iptables
if [ "$(kernelver)" -lt "002003000" ]; then
exit 0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/iptables.init?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list