From: Arne Fitzenreiter Date: Wed, 14 Jul 2021 08:20:23 +0000 (+0200) Subject: core159: add makegraphs and hddshutdown cronjob X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=faec72df5d9f18703bdcd5d655171558b671a4bc;p=people%2Fstevee%2Fipfire-2.x.git core159: add makegraphs and hddshutdown cronjob Signed-off-by: Arne Fitzenreiter --- 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