From 326c026b1d4f966965c7b35e3ce7ecc1552bc187 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Mon, 11 Jul 2011 20:24:43 +0000 Subject: [PATCH] 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 --- sample-etc_ppp_ip-up.local | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sample-etc_ppp_ip-up.local b/sample-etc_ppp_ip-up.local index b7a9025..ec74f10 100644 --- a/sample-etc_ppp_ip-up.local +++ b/sample-etc_ppp_ip-up.local @@ -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