]> git.pld-linux.org Git - packages/awffull.git/commitdiff
- allow to use dnshistory for DNS resolving. Not tested yet.
authorPaweł Gołaszewski <blues@pld-linux.org>
Tue, 27 Jun 2006 22:39:43 +0000 (22:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    awffull.cron -> 1.2
    awffull.sysconfig -> 1.2

awffull.cron
awffull.sysconfig

index d67335aa2d3ab9d3ab9345b75a072d2aaaee0cf4..48c27b956f85aac875831a1f48f7158d913ca59f 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 AWFFULL_OPTS=""
+CONFIG_LIST=""
 [ -f /etc/sysconfig/awffull ] && . /etc/sysconfig/awffull
 umask 0022
 
@@ -16,11 +17,19 @@ if [ -n "$ENABLE" ] && [ "$ENABLE" = "yes" -o "$ENABLE" = "YES" ]; then
        fi
        
        if [ -f /etc/awffull.conf ]; then
-               awffull ${AWFFULL_OPTS} -c /etc/awffull.conf
+               CONFIG_LIST="/etc/awffull.conf"
        fi
        if [ -n "$MULTIPLE" ] && [ "$MULTIPLE" = "yes" -o "$MULTIPLE" = "YES" ]; then
-               for i in $(ls /etc/awffull/*.conf 2>/dev/null); do
-                       awffull ${AWFFULL_OPTS} -c $i;
+               for config in $(ls /etc/awffull/*.conf 2>/dev/null); do\
+                       CONFIG_LIST="${CONFIG_LIST} ${config}"
                done
        fi
+       for singleconfig in ${CONFIG_LIST}; do
+               if [ -n "${USE_DNSHISTORY}" ] && [ "${USE_DNSHISTORY}" = "yes" -o "${USE_DNSHISTORY}" = "YES" ]; then
+                       LOGFILE=`grep ^LogFile ${singleconfig} | awk '{ print $2;}'`
+                       dnshistory -T -f ${LOGFILE} | awffull ${AWFFULL_OPTS} -c ${singleconfig} - ;
+               else
+                       awffull ${AWFFULL_OPTS} -c ${singleconfig};
+               fi
+       done
 fi
index 8fd21721c0c7b06d8e7ac4bc2fce403297cc954a..802764c328be04607f3b2834fd6b9ef0f383a9d4 100644 (file)
@@ -9,8 +9,13 @@ ENABLE="no"
 # Allow multiple configs in /etc/awffull/
 MULTIPLE="yes"
 
+# Use dnshistory for resolving IP into DNS-name
+# Warning: you need to install dnshistory package to have it working!
+# USE_DNSHISTORY="yes"
+
 # Supress messages
 # QUIET="yes"
 
 # Don't display any messages
 #REALLY_QUIET="yes"
+
This page took 0.09089 seconds and 4 git commands to generate.