blob: bfd147e8a0d7f5229c032a889e43f7bfd9cd9bf0 [file] [log] [blame]
#!/bin/sh
# A wrapper for the reboot command that actually logs who called it.
# We can recover that information later from the persistent log.
echo "called by: $(psback)" 2>&1 | logos reboot
# don't put the following inside the logos pipe, or we might reboot
# before it has processed all its input.
toolbox reboot