2014-01-27 16:13:41 +00:00
|
|
|
case "$ACTION" in
|
|
|
|
post)
|
|
|
|
# enable sshd, ntpdate, ntpd and dhcpcd services.
|
2014-07-28 20:20:08 +00:00
|
|
|
if [ -x /usr/bin/systemctl ]; then
|
|
|
|
systemctl enable sshd.service ntpdate.service ntpd.service dhcpcd.service
|
2015-02-06 10:13:14 +00:00
|
|
|
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/
|
2014-07-28 20:20:08 +00:00
|
|
|
fi
|
2014-01-27 16:13:41 +00:00
|
|
|
;;
|
|
|
|
esac
|