From 6eaf62fe98a1799ec490c335e0d2f4806e677a3a Mon Sep 17 00:00:00 2001 From: Carl Byington Date: Thu, 15 Jan 2015 08:32:01 -0800 Subject: allow dhcp-interface for the next-hop on static routes Signed-off-by: Daniil Baturin --- scripts/vyatta-update-static-route.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/vyatta-update-static-route.pl b/scripts/vyatta-update-static-route.pl index 557b2011..d50d25c6 100755 --- a/scripts/vyatta-update-static-route.pl +++ b/scripts/vyatta-update-static-route.pl @@ -12,6 +12,7 @@ GetOptions("interface=s" => \$iface, "option=s" => \$option ); my $hash = `echo $iface $route $table | md5sum | cut -c1-10`; +chomp $hash; my $FILE_DHCP_HOOK = "/etc/dhcp3/dhclient-exit-hooks.d/static-route-$hash"; my $dhcp_hook = ''; if ($option eq 'create') { -- cgit v1.2.3