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