If the runlevel couldn't be detected any other way, assume 3 http://virtualmin.com/node/37100

This commit is contained in:
Jamie Cameron
2015-05-22 13:52:34 -07:00
parent deed37b482
commit ea7d904d90

View File

@@ -395,8 +395,13 @@ elsif (&has_command("who")) {
}
}
# Last ditch fallback - assume runlevel 3
if (!@rv && !$config{'inittab_extra'}) {
push(@rv, 3);
}
# Add statically configured runlevels
if ($config{"inittab_rl_$rv[0]"}) {
if (@rv && $config{"inittab_rl_$rv[0]"}) {
@rv = split(/,/, $config{"inittab_rl_$rv[0]"});
}
push(@rv, $config{'inittab_extra'});