From: Ronnie Sahlberg Date: Tue, 11 Sep 2007 21:28:24 +0000 (+1000) Subject: use the public addresses variable instead of hardcoding the path X-Git-Tag: tevent-0.9.20~348^2~2407^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=536d3934529c9b3e576fc79b861e2d680af64884;p=thirdparty%2Fsamba.git use the public addresses variable instead of hardcoding the path (This used to be ctdb commit 8e23f173cda8a76bbc243863bfc49fe8c7b907f4) --- diff --git a/ctdb/config/events.d/10.interface b/ctdb/config/events.d/10.interface index 7a85b1ac02d..7b8411b36da 100755 --- a/ctdb/config/events.d/10.interface +++ b/ctdb/config/events.d/10.interface @@ -29,7 +29,7 @@ case $cmd in echo 1 > /proc/sys/ipv4/conf/all/arp_filter # move all public addresses onto loopback - cat /etc/ctdb/public_addresses| cut -d/ -f1 | while read ip; do + cat $CTDB_PUBLIC_ADDRESSES | cut -d/ -f1 | while read ip; do /sbin/ip addr add $ip/32 dev lo >/dev/null 2>/dev/null done ;;