#!/usr/local/bin/perl
# vgetty_apply.cgi
# Apply the current init config

require './vgetty-lib.pl';
&error_setup($text{'vgetty_applyerr'});
$out = &backquote_logged("telinit q 2>&1 </dev/null");
&error("<tt>$out</tt>") if ($?);
&system_logged("killall vgetty");
&webmin_log("apply");
&redirect("");

