From cb8e43fb595ac20eedcfd041c551a5cc82c7e884 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 27 Jan 2015 09:49:00 +0100 Subject: [PATCH] runit-void: enable default services at post-install time. - sulogin on the single runlevel - agetty-tty[1-4] on the default runlevel This way the user is able to customize them as appropiate. --- srcpkgs/runit-void/INSTALL | 14 ++++++++++++++ srcpkgs/runit-void/template | 5 ++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/runit-void/INSTALL diff --git a/srcpkgs/runit-void/INSTALL b/srcpkgs/runit-void/INSTALL new file mode 100644 index 00000000000..43123c016e1 --- /dev/null +++ b/srcpkgs/runit-void/INSTALL @@ -0,0 +1,14 @@ +case "${ACTION}" in +post) + # Enable default services: + # - agetty-tty[1-4] (default) + # - sulogin (single) + mkdir -p etc/runit/runsvdir/single + ln -sf /etc/sv/sulogin etc/runit/runsvdir/single + + mkdir -p etc/runit/runsvdir/default + for f in 1 2 3 4; do + ln -sf /etc/sv/agetty-tty$f etc/runit/runsvdir/default + done + ;; +esac diff --git a/srcpkgs/runit-void/template b/srcpkgs/runit-void/template index c61b0dad5ab..0b205316bf5 100644 --- a/srcpkgs/runit-void/template +++ b/srcpkgs/runit-void/template @@ -1,6 +1,6 @@ # Template file for 'runit-void' pkgname=runit-void -version=20150117 +version=20150127 revision=1 build_style=gnu-makefile homepage="http://www.voidlinux.eu" @@ -22,4 +22,7 @@ post_install() { vconf ${XBPS_SRCPKGDIR}/systemd/files/hostname vconf ${XBPS_SRCPKGDIR}/systemd/files/os-release vconf ${XBPS_SRCPKGDIR}/systemd/files/locale.conf + # Enable services at post-install time instead. + rm -rf ${DESTDIR}/etc/runit/runsvdir/default + rm -rf ${DESTDIR}/etc/runit/runsvdir/single }