diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-21 04:54:10 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-06-21 04:54:10 +0000 |
commit | 54b6ae5b4fe5717743e2ec7c0b9f622b8c0b45f4 (patch) | |
tree | 6ccad5a537da3edac13744e8e345d85306a2088f /scripts | |
parent | 2c51694d9a1791078e6ceef843f0259bc98ae180 (diff) | |
download | vyatta-cfg-54b6ae5b4fe5717743e2ec7c0b9f622b8c0b45f4.tar.gz vyatta-cfg-54b6ae5b4fe5717743e2ec7c0b9f622b8c0b45f4.zip |
better handling of allowed values for 'release/renew dhcp interface <>'
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyatta-interfaces.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index f1c6bbe..1511c12 100644 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -298,7 +298,7 @@ sub delete_eth_addrs { if ($addr eq "dhcp") { stop_dhclient($intf); - system("rm -f /var/lib/dhcp3/dhclient_$intf\_lease; rm -f /var/lib/dhcp3/$intf\; rm -f /var/lib/dhcp3/$intf\_release;"); + system("rm -f /var/lib/dhcp3/dhclient_$intf\_lease; rm -f /var/lib/dhcp3/$intf\; rm -f /var/lib/dhcp3/release_$intf\;"); exit 0; } my $version = is_ip_v4_or_v6($addr); @@ -443,7 +443,7 @@ sub op_dhcp_command { exit 1; } - my $release_file = $dhclient_dir . $intf . '_release'; + my $release_file = $dhclient_dir . 'release_' . $intf; if ($op_command eq "dhcp-release") { if (-e $release_file) { print "IP address for $intf has already been released.\n"; |