/etc/init.d/rc is in openrc 0.23-1+b1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
# Wrapper of OpenRC called from inittab
set -e
# map numbered to named runlevel
case $1 in
0 )
/sbin/openrc off && /sbin/openrc shutdown && \
/etc/init.d/halt stop
;;
1 )
exec /sbin/openrc recovery
;;
6 )
/sbin/openrc off && /sbin/openrc reboot && \
/etc/init.d/reboot stop
;;
* )
exec /sbin/openrc default
;;
esac
|