2015-01-17 14:31:06 +00:00
|
|
|
case "$ACTION" in
|
|
|
|
post)
|
|
|
|
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
|
|
|
if [ -x /usr/bin/systemctl ]; then
|
|
|
|
systemctl sshd.service ntpdate.service ntpd.service dhcpcd.service
|
2015-03-24 09:51:05 +00:00
|
|
|
else
|
|
|
|
mkdir -p etc/runit/runsvdir/default/
|
2015-01-17 14:31:06 +00:00
|
|
|
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/
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|