2014-01-27 17:13:41 +01:00
|
|
|
case "$ACTION" in
|
|
|
|
post)
|
|
|
|
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
2014-07-28 22:20:08 +02:00
|
|
|
if [ -x /usr/bin/systemctl ]; then
|
|
|
|
systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service
|
|
|
|
elif [ -x /usr/bin/runit-init ]; then
|
|
|
|
ln -s /etc/sv/sshd /var/service/
|
|
|
|
ln -s /etc/sv/ntpd /var/service/
|
|
|
|
ln -s /etc/sv/dhcpcd /var/service/
|
|
|
|
fi
|
2014-01-27 17:13:41 +01:00
|
|
|
;;
|
|
|
|
esac
|