summarylogtreecommitdiffstats
path: root/diagnose.shutdown
diff options
context:
space:
mode:
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 /
+