2015-01-27 08:49:00 +00:00
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
|
|
|
# Enable default services:
|
|
|
|
# - agetty-tty[1-4] (default)
|
2015-02-14 08:23:19 +00:00
|
|
|
# - udevd (default)
|
2015-01-27 08:49:00 +00:00
|
|
|
# - sulogin (single)
|
|
|
|
mkdir -p etc/runit/runsvdir/single
|
|
|
|
ln -sf /etc/sv/sulogin etc/runit/runsvdir/single
|
|
|
|
|
|
|
|
mkdir -p etc/runit/runsvdir/default
|
2015-01-27 09:35:36 +00:00
|
|
|
for f in 1 2 3 4 5 6; do
|
2015-01-27 19:18:05 +00:00
|
|
|
[ -e /etc/sv/agetty-tty${f}/down ] || ln -sf /etc/sv/agetty-tty$f etc/runit/runsvdir/default
|
2015-01-27 08:49:00 +00:00
|
|
|
done
|
2015-02-14 08:23:19 +00:00
|
|
|
[ -e etc/sv/udevd/run ] && ln -sf /etc/sv/udevd etc/runit/runsvdir/default
|
2015-01-27 08:49:00 +00:00
|
|
|
;;
|
|
|
|
esac
|