1 2 3 4 5
#!/bin/sh mount -o remount,rw / cat /sys/kernel/debug/tracing/trace >/var/log/shutdown.log mount -o remount,ro /