v0.8.0
- Config dir /etc/dnsupdate - Default config /etc/dnsupdate/dnsupdate.cfg - Per interface config eg /etc/dnsupdate/ppp0.iface
This commit is contained in:
26
dnsupdate
26
dnsupdate
@@ -384,15 +384,29 @@ function update_iface() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ -f /etc/sysconfig/network ]; then
|
||||
. /etc/sysconfig/network
|
||||
fi
|
||||
|
||||
# Load global config if exists
|
||||
[ -f /etc/dnsupdate/dnsupdate.cfg ] && . /etc/dnsupdate/dnsupdate.cfg
|
||||
|
||||
# Load distro global config if exists
|
||||
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
|
||||
|
||||
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
|
||||
if [ -f /etc/sysconfig/network-scripts/network-functions ]; then
|
||||
. /etc/sysconfig/network-scripts/network-functions
|
||||
# Load interface config
|
||||
CONFIG="${1}"
|
||||
need_config ${CONFIG}
|
||||
source_config >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
# Load interface config
|
||||
cd /etc/sysconfig/network-scripts
|
||||
CONFIG="${1}"
|
||||
need_config ${CONFIG}
|
||||
source_config >/dev/null 2>&1
|
||||
# Load dnsupdate interface specific config if exists
|
||||
if [ -f /etc/dnsupdate/${1}.iface ]; then
|
||||
[ "x${DDNS_DEBUG}x" != "xnox" ] && echo "Using config /etc/dnsupdate/${1}.iface"
|
||||
. /etc/dnsupdate/${1}.iface
|
||||
fi
|
||||
|
||||
if [ "x${DDNS}x" == "xnox" ] ; then
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user