aboutsummaryrefslogtreecommitdiff
path: root/common/scripts/sys/shutdown_watchdog
diff options
context:
space:
mode:
Diffstat (limited to 'common/scripts/sys/shutdown_watchdog')
-rwxr-xr-xcommon/scripts/sys/shutdown_watchdog11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/scripts/sys/shutdown_watchdog b/common/scripts/sys/shutdown_watchdog
new file mode 100755
index 0000000..79bc7bf
--- /dev/null
+++ b/common/scripts/sys/shutdown_watchdog
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+LOGFILE="/tmp/shutdown_watchdog.log"
+
+while true; do
+ echo "--- $(date) ---" >> "$LOGFILE"
+ uptime >> "$LOGFILE"
+ sensors >> "$LOGFILE" 2>/dev/null
+ acpi -V >> "$LOGFILE" 2>/dev/null
+ sleep 10
+done