#!/usr/local/bin/perl
# start.cgi
# Start the ssh daemon

require './sshd-lib.pl';
&ReadParse();
&error_setup($text{'start_err'});
if ($config{'start_cmd'}) {
	$out = &backquote_logged("$config{'start_cmd'} 2>&1 </dev/null");
	if ($?) { &error($out); }
	}
else {
	$out = &backquote_logged("$config{'sshd_path'} 2>&1 </dev/null");
	if ($?) { &error($out); }
	}
&webmin_log("start");
&redirect("");

