From 0079d8d94f9a20170e397a037b4277e122bd4df2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 6 Feb 2015 11:13:14 +0100 Subject: [PATCH] rpi-base: really enable runit services. With the latest runit-void pkg, there's no etc/runit/runsvdir/default directory anymore, until the pkg is configured. So create the dir inconditionally to enable the services. --- srcpkgs/rpi-base/INSTALL | 9 +++++---- srcpkgs/rpi-base/template | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/srcpkgs/rpi-base/INSTALL b/srcpkgs/rpi-base/INSTALL index 0e52815ab6..98c9efbb07 100644 --- a/srcpkgs/rpi-base/INSTALL +++ b/srcpkgs/rpi-base/INSTALL @@ -3,10 +3,11 @@ post) # enable sshd, ntpdate, ntpd and dhcpcd services. if [ -x /usr/bin/systemctl ]; then systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service - elif [ -d etc/runit/runsvdir/default ]; then - ln -s /etc/sv/sshd etc/runit/runsvdir/default/ - ln -s /etc/sv/ntpd etc/runit/runsvdir/default/ - ln -s /etc/sv/dhcpcd etc/runit/runsvdir/default/ + else + mkdir -p etc/runit/runsvdir/default/ + ln -sf /etc/sv/sshd etc/runit/runsvdir/default/ + ln -sf /etc/sv/ntpd etc/runit/runsvdir/default/ + ln -sf /etc/sv/dhcpcd etc/runit/runsvdir/default/ fi ;; esac diff --git a/srcpkgs/rpi-base/template b/srcpkgs/rpi-base/template index 951db24e77..1535a386ba 100644 --- a/srcpkgs/rpi-base/template +++ b/srcpkgs/rpi-base/template @@ -1,6 +1,6 @@ # Template file for 'rpi-base' pkgname=rpi-base -version=2.0 +version=2.1 revision=1 homepage="http://www.voidlinux.eu" short_desc="Void Linux RaspberryPi base files"