core/src/etc/rc.halt
Franco Fichtner 428bc2f4a2 system: propagate error in rc.syshook scripts #6594
We could stop on first problem but that woul likely break a number
of setups that use boot early/start hooks with sloppy coding.

Instead make the full run as an error and report it at the end.
2023-06-05 13:52:56 +02:00

9 lines
129 B
Bash
Executable File

#!/bin/sh
# shutdown syshook / plugin scripts
/usr/local/etc/rc.syshook stop
/sbin/shutdown -op now
while :; do sleep 1; done