runit-void: only create the current runlevel symlink if it does not exist.
This commit is contained in:
parent
255307f962
commit
74c1c3418f
|
@ -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
|
||||||
|
if [ ! -e etc/runit/runsvdir/current ]; then
|
||||||
ln -sf default etc/runit/runsvdir/current
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue