From e13db37ad07d68f0fb5a25a53e69bb4a7cacdcdb Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 30 Mar 2009 13:45:33 -0700 Subject: Fix interface name on rip authentication node When generating templates, don't append .. onto interface name when going through node.tag directory. --- gen-interface-templates.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl index d31b53ed..5e17fa0c 100755 --- a/gen-interface-templates.pl +++ b/gen-interface-templates.pl @@ -64,9 +64,10 @@ sub gen_template { my $in = "$inpath/$name"; my $out = "$outpath/$name"; + # recurse into subdirectory if ( -d $in ) { my $subif = $ifname; - $subif =~ s#@\)#../@)#g; + $subif =~ s#@\)#../@)#g if ($name ne 'node.tag'); ( -d $out ) or mkdir($out) -- cgit v1.2.3