fshalt, scram, reboot – halt any local file systems and optionally shut down or reboot the system
syncs and halts all local
will then reboot the machine.
Else it will invoke
to shut down the machine.
The halting and rebooting is done by copying all necessary
commands into a
file system and changing directory there before attempting to halt
so this will work even on standalone machines with their roots on
local file systems.
restarts the machine it is invoked on. If an optional
is specified then the machine will load and start that
kernel directly instead of returning to the system rom. (see
shuts down the machine it is invoked on.
On standalone machines, it will be impossible to do anything if scram fails
after invoking bare
is limited to the PC and requires APM or ACPI.
first appeared in 9front (May, 2011).