summaryrefslogtreecommitdiff
path: root/ipif
diff options
context:
space:
mode:
Diffstat (limited to 'ipif')
-rwxr-xr-xipif/udptunnel-reconf.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipif/udptunnel-reconf.pl b/ipif/udptunnel-reconf.pl
index ea4c86f..d802e6f 100755
--- a/ipif/udptunnel-reconf.pl
+++ b/ipif/udptunnel-reconf.pl
@@ -163,16 +163,21 @@ $ipifnetsfile= var_global(ipifnetsfile);
write_file($ipifnetsfile,'ipifnetsfile','', $ipif_file);
$active_file= '';
+$knownhosts_file= '';
$inittab= '';
$ix= 0;
foreach $site (@actives) {
$active_file.= "$site\t".var_site('activesxinfo')."\n";
$inittab.= sprintf("t%d", $ix++).':'.var_site('inittab_line')."\n";
+ $hostkey= var_site('rhostkey');
+ $knownhosts_file.= var_site('sshdest').' '.$hostkey."\n"
+ if length $hostkey;
$invoke_file= var_site('invoke_file');
write_file($invoke_file, 'invoke_file',
- var_site('invoke_head'), var_site('invoke_body'));
+ var_site('invoke_head')."\n", var_site('invoke_body'));
chmod 0777&~umask, $invoke_file or die $!;
}
+write_file(var_global('knownhostsfile'),'knownhostsfile', '',$knownhosts_file);
write_file(var_global('activesfile'),'activesfile', '',$active_file);
print