summarylogtreecommitdiffstats
path: root/diagnose.shutdown
diff options
context:
space:
mode:
authorJiachen Yang2016-04-24 13:08:04 +0900
committerJiachen Yang2016-04-24 13:08:04 +0900
commit54f54b4234a6f61a1468b2a6bd6b5814a871cdfe (patch)
treee7ae8c6206ce1fe33b4f365330e164fc44dc1c8e /diagnose.shutdown
downloadaur-54f54b4234a6f61a1468b2a6bd6b5814a871cdfe.tar.gz
push to aur
Diffstat (limited to 'diagnose.shutdown')
-rwxr-xr-xdiagnose.shutdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/diagnose.shutdown b/diagnose.shutdown
new file mode 100755
index 000000000000..0ff72cdc9655
--- /dev/null
+++ b/diagnose.shutdown
@@ -0,0 +1,5 @@
+#!/bin/sh
+mount -o remount,rw /
+cat /sys/kernel/debug/tracing/trace >/shutdown.log
+mount -o remount,ro /
+