runit-void: enable udevd in the default runlevel if its service exists.

This commit is contained in:
Juan RP 2015-02-14 09:23:19 +01:00
parent 607d741815
commit 2441c96f58
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ case "${ACTION}" in
post) post)
# Enable default services: # Enable default services:
# - agetty-tty[1-4] (default) # - agetty-tty[1-4] (default)
# - udevd (default)
# - sulogin (single) # - sulogin (single)
mkdir -p etc/runit/runsvdir/single mkdir -p etc/runit/runsvdir/single
ln -sf /etc/sv/sulogin etc/runit/runsvdir/single ln -sf /etc/sv/sulogin etc/runit/runsvdir/single
@ -10,5 +11,6 @@ post)
for f in 1 2 3 4 5 6; do 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 [ -e /etc/sv/agetty-tty${f}/down ] || ln -sf /etc/sv/agetty-tty$f etc/runit/runsvdir/default
done done
[ -e etc/sv/udevd/run ] && ln -sf /etc/sv/udevd etc/runit/runsvdir/default
;; ;;
esac esac

View File

@ -1,6 +1,6 @@
# Template file for 'runit-void' # Template file for 'runit-void'
pkgname=runit-void pkgname=runit-void
version=20150202 version=20150214
revision=1 revision=1
build_style=gnu-makefile build_style=gnu-makefile
homepage="http://www.voidlinux.eu" homepage="http://www.voidlinux.eu"