From faec72df5d9f18703bdcd5d655171558b671a4bc Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 14 Jul 2021 10:20:23 +0200 Subject: [PATCH] core159: add makegraphs and hddshutdown cronjob Signed-off-by: Arne Fitzenreiter --- config/rootfiles/core/159/filelists/files | 1 + config/rootfiles/core/159/update.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/config/rootfiles/core/159/filelists/files b/config/rootfiles/core/159/filelists/files index 0fa6cd7fbf..a788f2c3b4 100644 --- a/config/rootfiles/core/159/filelists/files +++ b/config/rootfiles/core/159/filelists/files @@ -2,3 +2,4 @@ etc/rc.d/init.d/firewall etc/rc.d/init.d/leds etc/rc.d/init.d/networking/functions.network etc/rc.d/init.d/sysctl +usr/local/bin/makegraphs diff --git a/config/rootfiles/core/159/update.sh b/config/rootfiles/core/159/update.sh index a6e93a6068..9582c3ecee 100644 --- a/config/rootfiles/core/159/update.sh +++ b/config/rootfiles/core/159/update.sh @@ -127,6 +127,11 @@ fi /usr/local/bin/openvpnctrl -s /usr/local/bin/openvpnctrl -sn2n +# Update hddshutdown cronjob +sed -e "s|^.*/usr/local/bin/hddshutdown.*$|2,32 * * * * \t/usr/local/bin/hddshutdown >/dev/null|g" \ + -i /var/spool/cron/root.orig +fcrontab -z + # remove lm_sensor config after collectd was started # to reserch sensors at next boot with updated kernel rm -f /etc/sysconfig/lm_sensors -- 2.39.5