summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian <ian>2002-02-11 21:46:58 +0000
committerian <ian>2002-02-11 21:46:58 +0000
commit99d1b3be1fa96c22212b8940aa2e8607bad1803b (patch)
tree5a6aadd557fe74e67879d909ca900a7b7aad8746
parent012853b4b42e814fb70d210da681a8ad5f635ba6 (diff)
downloaduserv-utils-99d1b3be1fa96c22212b8940aa2e8607bad1803b.tar.gz
@@ -1,3 +1,9 @@
+userv-utils (0.2.3) unstable; urgency=low + + * udptunnel-reconf can write a known_hosts file for you. + + -- Ian Jackson <ian@davenant.greenend.org.uk> Mon, 11 Feb 2002 21:46:48 +0000 + userv-utils (0.2.2) unstable; urgency=low * udptunnel-reconf default script pauses for 10s between restarts.
-rw-r--r--changelog6
-rw-r--r--debian/changelog6
-rwxr-xr-xipif/udptunnel-reconf.pl7
3 files changed, 18 insertions, 1 deletions
diff --git a/changelog b/changelog
index efb398b..d783f0f 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+userv-utils (0.2.3) unstable; urgency=low
+
+ * udptunnel-reconf can write a known_hosts file for you.
+
+ -- Ian Jackson <ian@davenant.greenend.org.uk> Mon, 11 Feb 2002 21:46:48 +0000
+
userv-utils (0.2.2) unstable; urgency=low
* udptunnel-reconf default script pauses for 10s between restarts.
diff --git a/debian/changelog b/debian/changelog
index efb398b..d783f0f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+userv-utils (0.2.3) unstable; urgency=low
+
+ * udptunnel-reconf can write a known_hosts file for you.
+
+ -- Ian Jackson <ian@davenant.greenend.org.uk> Mon, 11 Feb 2002 21:46:48 +0000
+
userv-utils (0.2.2) unstable; urgency=low
* udptunnel-reconf default script pauses for 10s between restarts.
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