do not activate hybrid-sleep during config switches

This commit is contained in:
Mathijs Kwik 2013-08-29 09:08:31 +02:00
parent e45e62e078
commit 388f1d48fb

@ -136,7 +136,7 @@ while (my ($unit, $state) = each %{$activePrev}) {
# swap devices). FIXME: the suspend target is sometimes
# active after the system has resumed, which probably
# should not be the case. Just ignore it.
if ($unit ne "suspend.target" && $unit ne "hibernate.target") {
if ($unit ne "suspend.target" && $unit ne "hibernate.target" && $unit ne "hybrid-sleep.target") {
unless (boolIsTrue($unitInfo->{'RefuseManualStart'} // "no")) {
write_file($startListFile, { append => 1 }, "$unit\n");
}