File: ip-up_run-parts.diff

package info (click to toggle)
ddclient 3.8.0-11.3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,396 kB
  • ctags: 757
  • sloc: perl: 18,467; sh: 626; xml: 55; makefile: 44
file content (24 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: ddclient-3.7.3/sample-etc_ppp_ip-up.local
===================================================================
--- ddclient-3.7.3.orig/sample-etc_ppp_ip-up.local	2007-07-07 14:37:47.000000000 +0200
+++ ddclient-3.7.3/sample-etc_ppp_ip-up.local	2007-08-14 22:56:23.194306140 +0200
@@ -22,6 +22,10 @@
 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 @@
 		;;
 *)		(
 			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