From 64f7148d79f18cbe85fa21607fde26023ddc3f63 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 27 Nov 2017 13:48:00 +0100 Subject: sdfgijdasfigdasofig --- core/modules/busybox/rtcwake-mode-no.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/modules/busybox') diff --git a/core/modules/busybox/rtcwake-mode-no.patch b/core/modules/busybox/rtcwake-mode-no.patch index ae47a990..49c61f89 100644 --- a/core/modules/busybox/rtcwake-mode-no.patch +++ b/core/modules/busybox/rtcwake-mode-no.patch @@ -3,14 +3,14 @@ index 8aee0cf..0082e29 100644 --- a/util-linux/rtcwake.c +++ b/util-linux/rtcwake.c @@ -211,6 +211,11 @@ int rtcwake_main(int argc UNUSED_PARAM, char **argv) - fflush_all(); - usleep(10 * 1000); + fflush_all(); + usleep(10 * 1000); + if (strcmp(suspend, "no") == 0) { + printf("just setting alarm, no powersaving mode requested\n"); + return EXIT_SUCCESS; + } + - if (strcmp(suspend, "on") != 0) - xopen_xwrite_close(SYS_POWER_PATH, suspend); - else { + if (strcmp(suspend, "on") != 0) + xopen_xwrite_close(SYS_POWER_PATH, suspend); + else { -- cgit v1.2.3-55-g7522