Revision: | 933 |
Committed: | 2007-07-03T20:11:53-07:00 (17 years, 11 months ago) by douglas |
File size: | 333 byte(s) |
Log Message: | Woo! This should hopefully work... |
# | Content |
---|---|
1 | #!/bin/sh |
2 | # DHCP Client Exit Hooks |
3 | # |
4 | # Douglas Thrift |
5 | # |
6 | # $Id$ |
7 | |
8 | %%key%% |
9 | %%secret%% |
10 | %%hostname%% |
11 | |
12 | 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 |
Name | Value |
---|---|
svn:executable | * |
svn:keywords | Id |