void-packages/srcpkgs/runit-void/INSTALL
2015-01-27 20:18:05 +01:00

14 lines
367 B
Text

case "${ACTION}" in
post)
# Enable default services:
# - agetty-tty[1-4] (default)
# - sulogin (single)
mkdir -p etc/runit/runsvdir/single
ln -sf /etc/sv/sulogin etc/runit/runsvdir/single
mkdir -p etc/runit/runsvdir/default
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
;;
esac