diff options
author | pks <pks@pks.rocks> | 2021-02-23 15:06:47 +0100 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-02-23 15:06:47 +0100 |
commit | 130b0f0f925ad436d1ae0c45b92ef74694cae29e (patch) | |
tree | 8680fad2a1b3a4e3444d3928ce4d8a598d2d90c0 | |
parent | 107407a41d5a4dd4f3b2b03c36e6de2a02ec6ca1 (diff) |
rsnapshot-wrapper: automated fan control
-rwxr-xr-x | rsnapshot-wrapper | 4 |
1 files changed, 1 insertions, 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 |