rustit/mirror_runit/runit-2.1.2/etc/openbsd/1

18 lines
335 B
Text
Raw Normal View History

2024-03-25 00:51:57 +01:00
#!/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