Revision: | 934 |
Committed: | 2007-07-03T20:12:54-07:00 (18 years ago) by douglas |
File size: | 333 byte(s) |
Log Message: | Whoops! |
# | 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 |
Name | Value |
---|---|
svn:keywords | Id |