diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2007-11-27 10:37:15 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2007-11-27 10:37:15 -0800 |
commit | fae7c4099efc2f247ed9eb4a52f3839bcedf987a (patch) | |
tree | 07c0a7c5a20c5d86c0cfbdfa2801a261c2741194 /debian/vyatta-cfg.postinst.in | |
parent | 65b95aa0fd0210501bd828299f561925269b6321 (diff) | |
download | vyatta-cfg-fae7c4099efc2f247ed9eb4a52f3839bcedf987a.tar.gz vyatta-cfg-fae7c4099efc2f247ed9eb4a52f3839bcedf987a.zip |
Fix 2497: check for duplicate ip address.
Also while we're add it, allow user to set an ipv6 address or get address from dhcp.
Diffstat (limited to 'debian/vyatta-cfg.postinst.in')
-rw-r--r-- | debian/vyatta-cfg.postinst.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/vyatta-cfg.postinst.in b/debian/vyatta-cfg.postinst.in index 05daf3b..4690c18 100644 --- a/debian/vyatta-cfg.postinst.in +++ b/debian/vyatta-cfg.postinst.in @@ -6,3 +6,11 @@ sysconfdir=@sysconfdir@ update-rc.d vyatta-ofr defaults 90 >/dev/null # do we want to start vyatta-ofr here in postinst? +if [ "$sysconfdir" != "/etc" ]; then + # remove the config files and replace with blank ones + for conf in dhcp3/dhclient.conf + do + [ -f /etc/$conf ] && mv -f /etc/$conf /etc/$conf.vyatta-save + touch /etc/$conf + done +fi |