Preparing the release of v3.9.0
[ddclient.git] / sample-etc_dhcpc_dhcpcd-eth0.exe
blob23141c7d718a387179c2d2705f949adba409d093
1 #!/bin/sh
2 ######################################################################
3 PATH=/usr/sbin:${PATH}
5 ## update the DNS server unless the IP address is a private address
6 ## that may be used as an internal LAN address. This may be true if
7 ## other interfaces are assigned private addresses from internal
8 ## DHCP server.
10 case "$1" in
11 10.*)           ;;
12 172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*)     ;;
13 192.168.*)      ;;
15         logger -t dhcpcd IP address changed to $1
16         ddclient -daemon=0 -syslog -use=ip -ip=$1 >/dev/null 2>&1
17         ;;
18 esac