runit-void: create default runlevel symlink at post-install time.

This commit is contained in:
Juan RP 2015-04-08 18:24:59 +02:00
parent 18a143e12c
commit 255307f962
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ post)
ln -sf /etc/sv/sulogin etc/runit/runsvdir/single
mkdir -p etc/runit/runsvdir/default
ln -sf default etc/runit/runsvdir/current
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

View File

@ -1,7 +1,7 @@
# Template file for 'runit-void'
pkgname=runit-void
version=20150407
revision=1
revision=2
wrksrc="void-runit-${version}"
build_pie=yes
build_style=gnu-makefile
@ -32,6 +32,7 @@ post_install() {
vconf ${XBPS_SRCPKGDIR}/systemd/files/os-release
vconf ${XBPS_SRCPKGDIR}/systemd/files/locale.conf
# Enable services at post-install time instead.
rm -f ${DESTDIR}/etc/runit/runsvdir/current
rm -rf ${DESTDIR}/etc/runit/runsvdir/default
rm -rf ${DESTDIR}/etc/runit/runsvdir/single
}