Applied ip-up_run-parts.diff from ubuntu
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@128 3873ddee-7413-0410-b6c4-c2c57c1ab35a
This commit is contained in:
parent
fa6d1714c4
commit
326c026b1d
1 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,10 @@ IP=${IP:-$PPP_LOCAL}
|
|||
IP=${IP:-$IPLOCAL}
|
||||
IP=${IP:-$4}
|
||||
|
||||
IFACE=
|
||||
IFACE=${IFACE:-$PPP_IFACE}
|
||||
IFACE=${IFACE:-$1}
|
||||
|
||||
## update the DNS server unless the IP address is a private address
|
||||
## that may be used as an internal LAN address (or PPtP tunnel).
|
||||
|
||||
|
@ -34,7 +38,7 @@ case "$IP" in
|
|||
;;
|
||||
*) (
|
||||
sleep 5
|
||||
ddclient -daemon=0 -syslog -use=if -if=$1 >/dev/null 2>&1
|
||||
ddclient -daemon=0 -syslog -use=if -if=$IFACE >/dev/null 2>&1
|
||||
) &
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue