runit-void: only create the current runlevel symlink if it does not exist.

This commit is contained in:
Juan RP 2015-04-08 18:26:44 +02:00
parent 255307f962
commit 74c1c3418f
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,9 @@ post)
ln -sf /etc/sv/sulogin etc/runit/runsvdir/single ln -sf /etc/sv/sulogin etc/runit/runsvdir/single
mkdir -p etc/runit/runsvdir/default mkdir -p etc/runit/runsvdir/default
ln -sf default etc/runit/runsvdir/current if [ ! -e etc/runit/runsvdir/current ]; then
ln -sf default etc/runit/runsvdir/current
fi
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

View File

@ -1,7 +1,7 @@
# Template file for 'runit-void' # Template file for 'runit-void'
pkgname=runit-void pkgname=runit-void
version=20150407 version=20150407
revision=2 revision=3
wrksrc="void-runit-${version}" wrksrc="void-runit-${version}"
build_pie=yes build_pie=yes
build_style=gnu-makefile build_style=gnu-makefile