diff options
| author | Simon Rettberg | 2016-01-12 15:20:30 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2016-01-12 15:20:30 +0100 |
| commit | 16f9e3d9965fad6970b8a7327b66a591a07dc4c5 (patch) | |
| tree | a92191bc99ff2f004564cf814e2c7d4f4978d8fa /remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script | |
| parent | Touch /etc/cron.d after adding/modifying files, so cron will rescan the dir (diff) | |
| download | tm-scripts-16f9e3d9965fad6970b8a7327b66a591a07dc4c5.tar.gz tm-scripts-16f9e3d9965fad6970b8a7327b66a591a07dc4c5.tar.xz tm-scripts-16f9e3d9965fad6970b8a7327b66a591a07dc4c5.zip | |
[idleaction] Use proper shutdown and reboot
This has been working reliably for a while now
Diffstat (limited to 'remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script')
| -rwxr-xr-x | remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script index 100bce82..b0e67e4f 100755 --- a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script +++ b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script @@ -95,7 +95,7 @@ if [ -n "${SLX_SHUTDOWN_TIMEOUT}" ] && [ "${SLX_SHUTDOWN_TIMEOUT}" -gt 0 ] && [ [ "$IDLE" -gt "$NOW" ] && IDLE="$NOW" IDLE=$(( $NOW - $IDLE )) if [ "$IDLE" -gt "$SLX_SHUTDOWN_TIMEOUT" ]; then - poweroff -nf # TODO: Do proper shutdown once it works reliably + poweroff fi fi |
