X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbacklight%2Fbacklight.c;h=6c00b00d82c64e385948cf3a52139ddf69822c7f;hp=e8cdad61edad67b2b34aab8d82d10f4f11879f94;hb=295edddf5a2d884222a26935b40a4e99b924543d;hpb=efc815a13d4b4cae59045c6a120a6c6f7dac2d7b diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index e8cdad61e..6c00b00d8 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -24,6 +24,7 @@ #include "fileio.h" #include "libudev.h" #include "udev-util.h" +#include "util.h" static struct udev_device *find_pci_or_platform_parent(struct udev_device *device) { struct udev_device *parent; @@ -290,7 +291,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") && restore_state()) { _cleanup_free_ char *value = NULL; if (!validate_device(udev, device))