summaryrefslogtreecommitdiff
path: root/scripts/netplug/linkdown/dhclient
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-06-26 18:27:18 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2009-06-26 18:27:18 -0700
commitaa2e76cd76d28b4d6464d5cf03219bf8b0c63469 (patch)
treef91ab2052d185cbd34ef127492f88727801bded3 /scripts/netplug/linkdown/dhclient
parent6b20281c1638310275a17374a251e01761ad77e2 (diff)
downloadvyatta-cfg-system-aa2e76cd76d28b4d6464d5cf03219bf8b0c63469.tar.gz
vyatta-cfg-system-aa2e76cd76d28b4d6464d5cf03219bf8b0c63469.zip
make changes to work with dhcp 4.1.0
Diffstat (limited to 'scripts/netplug/linkdown/dhclient')
-rwxr-xr-xscripts/netplug/linkdown/dhclient3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/netplug/linkdown/dhclient b/scripts/netplug/linkdown/dhclient
index a69caed3..555ff913 100755
--- a/scripts/netplug/linkdown/dhclient
+++ b/scripts/netplug/linkdown/dhclient
@@ -41,7 +41,8 @@ sub stop_dhclient {
my $intf = shift;
my $dhcp_daemon = '/sbin/dhclient';
my ($intf_config_file, $intf_process_id_file, $intf_leases_file) = Vyatta::Misc::generate_dhclient_intf_files($intf);
- my $release_cmd = "sudo $dhcp_daemon -q -cf $intf_config_file -pf $intf_process_id_file -lf $intf_leases_file -r $intf 2> /dev/null";
+ my $release_cmd = "sudo $dhcp_daemon -q -cf $intf_config_file -pf $intf_process_id_file -lf $intf_leases_file -r $intf 2> /dev/null;";
+ $release_cmd .= "sudo rm -f $intf_process_id_file 2> /dev/null";
system ($release_cmd);
}