SOURCES: p0f.init - is networked service

glen glen at pld-linux.org
Wed Feb 15 10:22:21 CET 2006


Author: glen                         Date: Wed Feb 15 09:22:21 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- is networked service

---- Files affected:
SOURCES:
   p0f.init (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SOURCES/p0f.init
diff -u SOURCES/p0f.init:1.13 SOURCES/p0f.init:1.14
--- SOURCES/p0f.init:1.13	Sun Jan 15 23:28:53 2006
+++ SOURCES/p0f.init	Wed Feb 15 10:22:16 2006
@@ -17,8 +17,21 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
+# Get network config
+. /etc/sysconfig/network
+
 # Get service config
 [ -f /etc/sysconfig/p0f ] && . /etc/sysconfig/p0f
+
+# Check that networking is up.
+if is_yes "${NETWORKING}"; then
+	if [ ! -f /var/lock/subsys/network ]; then
+		msg_network_down p0f
+		exit 1
+	fi
+else
+	exit 0
+fi
 
 RETVAL=0
 # See how we were called.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/p0f.init?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list