mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
systemctl is-enabled can return 'linked' even if service is enabled.
This commit is contained in:
@@ -1045,7 +1045,7 @@ fn check_systemd_unit_enabled(name: &str) -> bool {
|
||||
.output()
|
||||
{
|
||||
let buf = String::from_utf8_lossy(&out.stdout);
|
||||
return buf.contains("enabled");
|
||||
return buf.contains("enabled") || buf.contains("linked");
|
||||
}
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user