SOURCES: ip6tables.init - exit early if not configured
glen
glen at pld-linux.org
Thu Dec 7 22:26:16 CET 2006
Author: glen Date: Thu Dec 7 21:26:16 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- exit early if not configured
---- Files affected:
SOURCES:
ip6tables.init (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SOURCES/ip6tables.init
diff -u SOURCES/ip6tables.init:1.7 SOURCES/ip6tables.init:1.8
--- SOURCES/ip6tables.init:1.7 Sun Oct 1 23:48:31 2006
+++ SOURCES/ip6tables.init Thu Dec 7 22:26:11 2006
@@ -14,10 +14,18 @@
#
# config: /etc/sysconfig/ip6tables
+IPTABLES_CONFIG=/etc/sysconfig/ip6tables
+
+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/ip6tables
if [ "$(kernelver)" -lt "002003000" ]; then
exit 0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/ip6tables.init?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list