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.
This commit is contained in:
parent
9721f1574d
commit
cb8e43fb59
2 changed files with 18 additions and 1 deletions
14
srcpkgs/runit-void/INSTALL
Normal file
14
srcpkgs/runit-void/INSTALL
Normal file
|
@ -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
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue