From 130b0f0f925ad436d1ae0c45b92ef74694cae29e Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 23 Feb 2021 15:06:47 +0100 Subject: rsnapshot-wrapper: automated fan control --- rsnapshot-wrapper | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rsnapshot-wrapper b/rsnapshot-wrapper index a334ab9..bb930a3 100755 --- a/rsnapshot-wrapper +++ b/rsnapshot-wrapper @@ -5,9 +5,7 @@ set -x PRETEND="no" run_rsnapshot() { - superfans set -z periph 100 rsnapshot -c /etc/rsnapshot.conf $1 - superfans-set-normal } while true; do @@ -40,7 +38,7 @@ while true; do fi fi - if [[ $(date +"%m-d") == "01-01" ]]; then + if [[ $(date +"%m-%d") == "01-01" ]]; then echo "1st day of the year -> yearly" if [[ $PRETEND != "yes" ]]; then sleep 1800 # wait 30 minutes -- cgit v1.2.3