Subversion Repositories configs

Rev

Rev 97 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 97 Rev 117
Line 268... Line 268...
268
        if [ -n "$SRCADDR" ]; then
268
        if [ -n "$SRCADDR" ]; then
269
               sysctl -w "net.ipv4.conf.${SYSCTLDEVICE}.arp_filter=1" >/dev/null 2>&1
269
               sysctl -w "net.ipv4.conf.${SYSCTLDEVICE}.arp_filter=1" >/dev/null 2>&1
270
        fi
270
        fi
271
 
271
 
272
        # update ARP cache of neighboring computers
272
        # update ARP cache of neighboring computers
273
        if [ "${REALDEVICE}" != "lo" ]; then
273
        if ! is_false "${arpupdate[$idx]}" && [ "${REALDEVICE}" != "lo" ]; then
274
          /sbin/arping -q -A -c 1 -I ${REALDEVICE} ${ipaddr[$idx]}
274
          /sbin/arping -q -A -c 1 -I ${REALDEVICE} ${ipaddr[$idx]}
275
          ( sleep 2;
275
          ( sleep 2;
276
            /sbin/arping -q -U -c 1 -I ${REALDEVICE} ${ipaddr[$idx]} ) > /dev/null 2>&1 < /dev/null &
276
            /sbin/arping -q -U -c 1 -I ${REALDEVICE} ${ipaddr[$idx]} ) > /dev/null 2>&1 < /dev/null &
277
        fi
277
        fi
278
    done
278
    done