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