From 147fc08625ce3245c32367a4dac227b71f05b562 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 19 Nov 2008 18:17:24 -0800 Subject: Fix Bug 3917 dhcp brings interface up for lease acquire/renew even though interface has been disabled in CLI --- scripts/netplug/linkup/dhclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/netplug/linkup') diff --git a/scripts/netplug/linkup/dhclient b/scripts/netplug/linkup/dhclient index 8a2d39a0..574b994f 100755 --- a/scripts/netplug/linkup/dhclient +++ b/scripts/netplug/linkup/dhclient @@ -41,7 +41,7 @@ sub run_dhclient { my $intf = shift; my $dhcp_daemon = '/sbin/dhclient'; my ($intf_config_file, $intf_process_id_file, $intf_leases_file) = VyattaMisc::generate_dhclient_intf_files($intf); - my $cmd = "$dhcp_daemon -q -nw -cf $intf_config_file -pf $intf_process_id_file -lf $intf_leases_file $intf 2> /dev/null &"; + my $cmd = "sudo $dhcp_daemon -q -nw -cf $intf_config_file -pf $intf_process_id_file -lf $intf_leases_file $intf 2> /dev/null &"; system ($cmd); } -- cgit v1.2.3