3 # Switch to a different runlevel with the telinit command
5 require './init-lib.pl';
7 $access{'bootup'} == 1 || &error($text{'change_ecannot'});
9 &ui_print_header(undef, $text{'change_title'}, "");
11 $cmd = "telinit '$in{'level'}'";
12 print "<p>",&text('change_cmd', $in{'level'}, "<tt>$cmd</tt>"),"<p>\n";
13 &system_logged("$cmd </dev/null >/dev/null 2>&1 &");
14 &webmin_log("telinit", $in{'level'});
16 &ui_print_footer("", $text{'index_return'});