ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/DNS/dhclient-exit-hooks.in
Revision: 933
Committed: 2007-07-03T20:11:53-07:00 (18 years ago) by douglas
File size: 333 byte(s)
Log Message:
Woo! This should hopefully work...

File Contents

# User Rev Content
1 douglas 933 #!/bin/sh
2     # DHCP Client Exit Hooks
3 douglas 847 #
4     # Douglas Thrift
5     #
6     # $Id$
7    
8 douglas 933 %%key%%
9     %%secret%%
10     %%hostname%%
11 douglas 847
12 douglas 933 case $reason in
13     BOUND|RENEW|REBIND|REBOOT)
14     if [ "$old_ip_address" != "$new_ip_address" ]; then
15     nsupdate -d <<-EOF
16     key $key $secret
17     update delete $hostname A
18     update add $hostname 3600 A $new_ip_address
19     send
20     EOF
21     fi
22     ;;
23     esac

Properties

Name Value
svn:executable *
svn:keywords Id