summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCarl Byington <carl@five-ten-sg.com>2015-01-15 08:32:01 -0800
committerDaniil Baturin <daniil@baturin.org>2015-05-03 19:16:23 +0200
commit6eaf62fe98a1799ec490c335e0d2f4806e677a3a (patch)
tree076d983440397320ddaa328eae98b75eb63ea2bd /scripts
parent9655fecdaaafe5887617d6f3d97a76a24e00e413 (diff)
downloadvyatta-cfg-quagga-6eaf62fe98a1799ec490c335e0d2f4806e677a3a.tar.gz
vyatta-cfg-quagga-6eaf62fe98a1799ec490c335e0d2f4806e677a3a.zip
allow dhcp-interface for the next-hop on static routes
Signed-off-by: Daniil Baturin <daniil@baturin.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-update-static-route.pl1
1 files changed, 1 insertions, 0 deletions
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') {