mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
If the runlevel couldn't be detected any other way, assume 3 http://virtualmin.com/node/37100
This commit is contained in:
@@ -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'});
|
||||
|
||||
Reference in New Issue
Block a user