From 9fcb1fce33967e00fc10550eff03c67313911dbc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20M=C3=BChlinghaus?= <jazzman@alphabreed.com>
Date: Tue, 27 Jan 2015 20:18:05 +0100
Subject: [PATCH] runit-void: Install only active services by default

---
 srcpkgs/runit-void/INSTALL  | 2 +-
 srcpkgs/runit-void/template | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/runit-void/INSTALL b/srcpkgs/runit-void/INSTALL
index 02c2d166440..30fdf67e509 100644
--- a/srcpkgs/runit-void/INSTALL
+++ b/srcpkgs/runit-void/INSTALL
@@ -8,7 +8,7 @@ post)
 
 	mkdir -p etc/runit/runsvdir/default
 	for f in 1 2 3 4 5 6; do
-		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
 	;;
 esac
diff --git a/srcpkgs/runit-void/template b/srcpkgs/runit-void/template
index b8a4b541a2a..3911ff84f55 100644
--- a/srcpkgs/runit-void/template
+++ b/srcpkgs/runit-void/template
@@ -1,7 +1,7 @@
 # Template file for 'runit-void'
 pkgname=runit-void
 version=20150127
-revision=2
+revision=3
 build_style=gnu-makefile
 homepage="http://www.voidlinux.eu"
 short_desc="Void Linux runit scripts"