X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbacklight%2Fbacklight.c;h=bf767038ee9f63f46b5b5ddb172b503441a3ca39;hb=d1107170f9e0fa2cb6e8d18586a003f0d96abfc3;hp=e8cdad61edad67b2b34aab8d82d10f4f11879f94;hpb=be3f52f4ed02a9256b1577719677b32a17b525ac;p=elogind.git diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index e8cdad61e..bf767038e 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -290,7 +290,7 @@ int main(int argc, char *argv[]) { * device probing should be complete), so that the validity * check at boot time doesn't have to be reliable. */ - if (streq(argv[1], "load")) { + if (streq(argv[1], "load") && shall_restore_state()) { _cleanup_free_ char *value = NULL; if (!validate_device(udev, device))