runit-void: enable udevd in the default runlevel if its service exists.
This commit is contained in:
parent
607d741815
commit
2441c96f58
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue