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