diff options
author | Simon Rettberg | 2022-10-04 10:48:59 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-10-04 10:48:59 +0200 |
commit | 7cc1c039b16f611c71502afe33bb16eff5a074e3 (patch) | |
tree | f64eb803b9414f8cd3f4b386f204997946ce868b | |
parent | [kernel-vanilla] Update DP++ patch (diff) | |
download | mltk-7cc1c039b16f611c71502afe33bb16eff5a074e3.tar.gz mltk-7cc1c039b16f611c71502afe33bb16eff5a074e3.tar.xz mltk-7cc1c039b16f611c71502afe33bb16eff5a074e3.zip |
[idleaction] Add comments
-rwxr-xr-x | core/modules/idleaction/data/opt/openslx/scripts/systemd-idleaction_init | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/modules/idleaction/data/opt/openslx/scripts/systemd-idleaction_init b/core/modules/idleaction/data/opt/openslx/scripts/systemd-idleaction_init index 13ac691c..a89de524 100755 --- a/core/modules/idleaction/data/opt/openslx/scripts/systemd-idleaction_init +++ b/core/modules/idleaction/data/opt/openslx/scripts/systemd-idleaction_init @@ -1,5 +1,9 @@ #!/bin/ash +# Called to calculate the next wakeup of this machine. Should be called whenever +# it might make sense to update this, e.g. right after boot, when entering/leaving +# standby, and when shutting down. + if [ "$1" = "test" ]; then shift TEST=1 @@ -12,7 +16,7 @@ fi # Figure out the next rtcwake SCHEDULE="$SCHEDULE $SLX_WAKEUP_SCHEDULE" -if [ "x$1" = "xsuspend" ]; then +if [ "$1" = "suspend" ]; then # If we're about to suspend, consider reboot and shutdown too - we # need to wake up to execute these SCHEDULE="$SCHEDULE $SLX_SHUTDOWN_SCHEDULE $SLX_REBOOT_SCHEDULE" |