+bin/shutdown-detect*
[nethome.git] / bin / shutdown-detect
diff --git a/bin/shutdown-detect b/bin/shutdown-detect
new file mode 100755 (executable)
index 0000000..53bc406
--- /dev/null
@@ -0,0 +1,4 @@
+#! /bin/bash
+echo "$(date --iso=seconds) shutdown $* boot=$(uptime -s) $(uptime -p)" >>/var/log/shutdown-detect.log
+touch /var/log/shutdown-detect.ok
+sync