void-packages/srcpkgs/rpi-base/INSTALL
Juan RP 0079d8d94f 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.
2015-02-06 11:13:14 +01:00

13 lines
397 B
Text

case "$ACTION" in
post)
# enable sshd, ntpdate, ntpd and dhcpcd services.
if [ -x /usr/bin/systemctl ]; then
systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service
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