Author: blues Date: Tue Mar 8 15:14:57 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- allow to specify which options to use
---- Files affected:
SOURCES:
scdp.sysconfig (NONE -> 1.1) (NEW), scdp.cron.sh (NONE -> 1.1) (NEW),
scdp.cron (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/scdp.sysconfig
diff -u /dev/null SOURCES/scdp.sysconfig:1.1
--- /dev/null Tue Mar 8 16:14:57 2005
+++ SOURCES/scdp.sysconfig Tue Mar 8 16:14:52 2005
@@ -0,0 +1,7 @@
+# Customized setings for scdp
+
+# Use CDP for which interfaces - space separated:
+# INTERFACES="eth0 eth1"
+
+# Be quiet and don't print any runtime error messages
+# QUIET="YES"
================================================================
Index: SOURCES/scdp.cron.sh
diff -u /dev/null SOURCES/scdp.cron.sh:1.1
--- /dev/null Tue Mar 8 16:14:57 2005
+++ SOURCES/scdp.cron.sh Tue Mar 8 16:14:52 2005
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+SCDP_OPTS=""
+
+if [ -f /etc/sysconfig/scdp ]; then
+ . /etc/sysconfig/scdp
+fi
+
+if [ -n "$QUIET" ] && [ "$QUIET" = "YES" ]; then
+ SCDP_OPTS="-q"
+fi
+
+if [ "${INTERFACES}" ]; then
+ for int in ${INTERFACES}; do
+ scdp ${SCDP_OPTS} -i ${int}
+ done
+else
+ scdp ${SCDP_OPTS}
+fi
================================================================
Index: SOURCES/scdp.cron
diff -u SOURCES/scdp.cron:1.1 SOURCES/scdp.cron:1.2
--- SOURCES/scdp.cron:1.1 Tue Jun 8 12:41:29 2004
+++ SOURCES/scdp.cron Tue Mar 8 16:14:52 2005
@@ -1,4 +1,4 @@
#
# cron job for the scdp package
#
-* * * * * root /usr/bin/scdp
+* * * * * root /usr/bin/scdp.cron
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/scdp.cron?r1=1.1&r2=1.2&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit