add rpi watchdog
This commit is contained in:
parent
13270b8203
commit
0ba0cb4b26
9
install
9
install
@ -13,7 +13,7 @@
|
||||
# https://github.com/armbian/config/blob/master/debian-software
|
||||
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
||||
#
|
||||
# version: 1.1.2
|
||||
# version: 1.1.3
|
||||
#
|
||||
|
||||
if [[ $(id -u) -ne 0 ]]; then
|
||||
@ -287,8 +287,11 @@ xmlstarlet ed -L -u "/config/system/network/dns/hostname" -v "${hostname}" ${OMV
|
||||
/usr/sbin/omv-rpc -u admin "perfstats" "set" '{"enable":false}'
|
||||
/usr/sbin/omv-rpc -u admin "config" "applyChanges" '{ "modules": ["monit","rrdcached","collectd"],"force": true }'
|
||||
|
||||
# set min and max frequency for RPi boards
|
||||
# set min/max frequency and watchdog for RPi boards
|
||||
if [[ "${distributor}" == "Raspbian" ]]; then
|
||||
omv_set_default "OMV_WATCHDOG_DEFAULT_MODULE" "bcm2835_wdt"
|
||||
omv_set_default "OMV_WATCHDOG_CONF_WATCHDOG_TIMEOUT" "14"
|
||||
|
||||
MIN_SPEED="$(</sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq)"
|
||||
MAX_SPEED="$(</sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq)"
|
||||
# Determine if RPi4 (for future use)
|
||||
@ -330,7 +333,7 @@ if [ ${version} -gt 4 ]; then
|
||||
fi
|
||||
|
||||
# update config files
|
||||
for service in nginx ${phpfpm} samba flashmemory ssh ${ntp} timezone monit rrdcached collectd cpufrequtils apt; do
|
||||
for service in nginx ${phpfpm} samba flashmemory ssh ${ntp} timezone monit rrdcached collectd cpufrequtils apt watchdog; do
|
||||
${confCmd} ${service}
|
||||
done
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user