2015-01-27 09:49:00 +01:00
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
|
|
|
# Enable default services:
|
|
|
|
# - agetty-tty[1-4] (default)
|
2015-02-14 09:23:19 +01:00
|
|
|
# - udevd (default)
|
2015-01-27 09:49:00 +01: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-04-08 18:26:44 +02:00
|
|
|
if [ ! -e etc/runit/runsvdir/current ]; then
|
|
|
|
ln -sf default etc/runit/runsvdir/current
|
|
|
|
fi
|
2015-01-27 10:35:36 +01:00
|
|
|
for f in 1 2 3 4 5 6; do
|
2015-01-27 20:18:05 +01:00
|
|
|
[ -e /etc/sv/agetty-tty${f}/down ] || ln -sf /etc/sv/agetty-tty$f etc/runit/runsvdir/default
|
2015-01-27 09:49:00 +01:00
|
|
|
done
|
2015-02-14 09:23:19 +01:00
|
|
|
[ -e etc/sv/udevd/run ] && ln -sf /etc/sv/udevd etc/runit/runsvdir/default
|
2015-01-27 09:49:00 +01:00
|
|
|
;;
|
|
|
|
esac
|