stable #2

Merged
alientim merged 89 commits from stable into dev 2024-11-15 10:37:11 +01:00
Showing only changes of commit 651f9280c9 - Show all commits

View File

@@ -22,12 +22,12 @@ while true; do
new_monitor_md5=$(echo -n ${new_monitor^^} | sed -e 's/^[[:space:]]*//' | md5sum | awk '{print $1}')
current_md5=$(echo -n ${new_current^^} | sed -e 's/^[[:space:]]*//' | md5sum | awk '{print $1}')
if [ "$new_monitor_md5" != "$monitor_md5" ] && [ "$current_md5" != "$monitor_md5" ]; then
echo "Mismatch detected. Rebooting now."
echo "Mismatch detected. Rebooting now." >> /var/log/chromium-monitor
sudo reboot
exit 1
fi
else
echo "Either monitor or current is not available, skipping check."
echo "Either monitor or current is not available, skipping check." >> /var/log/chromium-monitor
fi
sleep 5s
done