summaryrefslogtreecommitdiff
path: root/scripts/vyatta-interfaces.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-22 13:51:37 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-22 13:51:37 -0800
commit0481d5fd53b8c372c42c467179e48db543f128e5 (patch)
treefd8e8d44018d2d1fab3d4b0931e7fa83da1eb746 /scripts/vyatta-interfaces.pl
parent19cc5669e552a1d1b21850a3ba8cb3b19e60a563 (diff)
downloadvyatta-cfg-system-0481d5fd53b8c372c42c467179e48db543f128e5.tar.gz
vyatta-cfg-system-0481d5fd53b8c372c42c467179e48db543f128e5.zip
Fix return of dhcp start client.
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-xscripts/vyatta-interfaces.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index caba8b6f..d5b0f7d1 100755
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -219,7 +219,7 @@ sub run_dhclient {
= generate_dhclient_intf_files($intf);
dhcp_update_config($intf_config_file, $intf);
- return is_intf_disabled($intf);
+ return if is_intf_disabled($intf);
my $cmd = "$dhcp_daemon -pf $intf_process_id_file -x $intf 2> /dev/null; rm -f $intf_process_id_file 2> /dev/null;";
$cmd .= "$dhcp_daemon -q -nw -cf $intf_config_file -pf $intf_process_id_file -lf $intf_leases_file $intf 2> /dev/null &";