+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.
# along with userv-utils; if not, write to the Free Software
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-# $Id: udptunnel-reconf.pl,v 1.4 2001/09/26 00:18:56 ian Exp $
+# $Id: udptunnel-reconf.pl,v 1.5 2002/02/11 21:46:58 ian Exp $
use Socket;
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