This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/srcpkgs/runit-void/INSTALL

27 lines
696 B
Plaintext
Raw Normal View History

2023-08-05 21:19:04 +01:00
case "${ACTION}" in
post)
# Enable default services:
# - agetty-tty[1-4] (default)
# - udevd (default)
# - sulogin (single)
mkdir -p etc/runit/runsvdir/single
ln -sf /etc/sv/sulogin etc/runit/runsvdir/single
mkdir -p etc/runit/runsvdir/default
if [ ! -e etc/runit/runsvdir/current ]; then
ln -sf default etc/runit/runsvdir/current
fi
for f in 1 2 3 4 5 6; do
[ -e /etc/sv/agetty-tty${f}/down ] || ln -sf /etc/sv/agetty-tty$f etc/runit/runsvdir/default
done
[ -e etc/sv/udevd/run ] && ln -sf /etc/sv/udevd etc/runit/runsvdir/default
if [ -d usr/sbin -a ! -L usr/sbin ]; then
for f in init shutdown halt reboot poweroff; do
ln -sr ../bin/$f usr/sbin/$f
done
fi
;;
esac