ddclient/sample-etc_dhcpc_dhcpcd-eth0.exe
wimpunk 60fe051b7a Cleanup: removing Id tags from the files
Preparing a complete move to git.  The Id tag isn't useful so removing from
the files seemed to be the best solotion

git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@186 3873ddee-7413-0410-b6c4-c2c57c1ab35a
2015-09-28 19:13:03 +00:00

18 lines
523 B
Bash

#!/bin/sh
######################################################################
PATH=/usr/sbin:${PATH}
## update the DNS server unless the IP address is a private address
## that may be used as an internal LAN address. This may be true if
## other interfaces are assigned private addresses from internal
## DHCP server.
case "$1" in
10.*) ;;
172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*) ;;
192.168.*) ;;
*)
logger -t dhcpcd IP address changed to $1
ddclient -daemon=0 -syslog -use=ip -ip=$1 >/dev/null 2>&1
;;
esac