diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2016-02-09 02:08:23 -0500 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2016-02-09 02:08:23 -0500 |
commit | 9d0c8946c537a1d857df67be2ffc26255c24bdbb (patch) | |
tree | 325ed1ddb0a0a26560f1056cd4b00f9001cc99d9 /scripts/vyatta-address | |
parent | 08ec1c93a80be4b4dcec5d4fa4723133225b1367 (diff) | |
download | vyatta-cfg-system-9d0c8946c537a1d857df67be2ffc26255c24bdbb.tar.gz vyatta-cfg-system-9d0c8946c537a1d857df67be2ffc26255c24bdbb.zip |
Use directory /var/lib/dhcp instead of /var/lib/dhcp3.
Use directory /etc/dhcp instead of /etc/dhcp3.
Diffstat (limited to 'scripts/vyatta-address')
-rwxr-xr-x | scripts/vyatta-address | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-address b/scripts/vyatta-address index afe60191..072f27e6 100755 --- a/scripts/vyatta-address +++ b/scripts/vyatta-address @@ -28,10 +28,10 @@ case $1 in delete) # Get current address from interface when using DHCP if [[ "$3" = "dhcp" ]]; then - lease_file=/var/lib/dhcp3/dhclient_"$2".leases; + lease_file=/var/lib/dhcp/dhclient_"$2".leases; ip_address=$(sed -n 's/^\s\sfixed-address\s\(.*\);/\1/p' $lease_file | sed -n '$p'); elif [[ "$3" = "dhcpv6" ]]; then - lease_file=/var/lib/dhcp3/dhclient_v6_"$2".leases; + lease_file=/var/lib/dhcp/dhclient_v6_"$2".leases; ip_address=$(sed -n 's/^\s\s\s\siaaddr\s\(.*\)\s{/\1/p' $lease_file | sed -n '$p'); else ip_address=$3; |