13 lines
388 B
Plaintext
13 lines
388 B
Plaintext
|
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
|
||
|
elif [ -d etc/runit/runsvdir/default ]; then
|
||
|
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
|