rustit/mirror_runit/runit-2.1.2/etc/openbsd/1
2024-03-24 23:51:57 +00:00

17 lines
335 B
Bash
Executable file

#!/bin/sh
# system one time tasks
PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
trap : 2
trap : 3
sh /etc/rc autoboot
if test $? -ne 0; then
# /etc/rc crashed, start emergency shell.
echo '/etc/rc failed. Press <enter> for emergency shell...'
read input
sh -l
exec reboot
fi
touch /etc/runit/stopit
chmod 0 /etc/runit/stopit