git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
+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
+++ b/
bin/shutdown-detect
@@ -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