summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-02-23 15:06:47 +0100
committerpks <pks@pks.rocks>2021-02-23 15:06:47 +0100
commit130b0f0f925ad436d1ae0c45b92ef74694cae29e (patch)
tree8680fad2a1b3a4e3444d3928ce4d8a598d2d90c0
parent107407a41d5a4dd4f3b2b03c36e6de2a02ec6ca1 (diff)
rsnapshot-wrapper: automated fan control
-rwxr-xr-xrsnapshot-wrapper4
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