diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Xconfig/various.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm index 2f93a75..6777cf2 100644 --- a/lib/Xconfig/various.pm +++ b/lib/Xconfig/various.pm @@ -234,7 +234,8 @@ sub runlevel { symlink($t, $d); } } else { - cat_($f) =~ /^id:(\d):initdefault:\s*$/m && $1; + cat_($f) =~ /^id:(\d):initdefault:\s*$/m && return $1; + readlink("$::prefix/etc/systemd/system/default.target") =~ /runlevel(\d).target/m && return $1; } } |