From cce879ac2b1018b34f24df65146df335c527ac23 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 17 Jan 2024 15:13:02 +0100 Subject: [idleaction] Delete rm of unused flag-file --- .../idleaction/data/opt/openslx/scripts/systemd-idleaction_init | 6 ------ 1 file changed, 6 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 a89de524..2d4507c6 100755 --- a/core/modules/idleaction/data/opt/openslx/scripts/systemd-idleaction_init +++ b/core/modules/idleaction/data/opt/openslx/scripts/systemd-idleaction_init @@ -20,12 +20,6 @@ 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" - # Delete this so the idle timeout will be reset - # Otherwise a user might wake the PC up right before - # cron fires the idle action check, which could - # shut the machine down right away because the timestamp - # from the file looks quite old - rm -f -- /run/openslx/idlehint fi # suspend == true SCHEDULE=$( echo ${SCHEDULE} ) # poor man's trim -- cgit v1.2.3-55-g7522