2014-12-05 10:41:37 +01:00
|
|
|
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
|
|
|
|
elif [ -d etc/runit/runsvdir/default ]; then
|
2014-12-05 12:19:38 +01:00
|
|
|
ln -s /etc/sv/acpid etc/runit/runsvdir/default/
|
2014-12-05 10:41:37 +01: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
|