summaryrefslogtreecommitdiffstats
path: root/core/modules/busybox
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-27 13:42:39 +0100
committerSimon Rettberg2017-11-27 13:42:39 +0100
commit1a691753b779b55c9e6dc0dd6f6e6450d187c6c4 (patch)
treefbd182bdff7cc3ab8b73e01202a2716d57b06b17 /core/modules/busybox
parent[idleaction] Log to slx-admin if standby is not supported (diff)
downloadmltk-1a691753b779b55c9e6dc0dd6f6e6450d187c6c4.tar.gz
mltk-1a691753b779b55c9e6dc0dd6f6e6450d187c6c4.tar.xz
mltk-1a691753b779b55c9e6dc0dd6f6e6450d187c6c4.zip
[busybox] Actually include patch..
Diffstat (limited to 'core/modules/busybox')
-rw-r--r--core/modules/busybox/rtcwake-mode-no.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/modules/busybox/rtcwake-mode-no.patch b/core/modules/busybox/rtcwake-mode-no.patch
new file mode 100644
index 00000000..85d60348
--- /dev/null
+++ b/core/modules/busybox/rtcwake-mode-no.patch
@@ -0,0 +1,16 @@
+diff --git a/util-linux/rtcwake.c b/util-linux/rtcwake.c
+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);
+
++ 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 {