bananapi-base: remove unused systemd code.
This commit is contained in:
parent
e9b93228f6
commit
2fdc1680b0
1 changed files with 4 additions and 9 deletions
|
@ -1,13 +1,8 @@
|
|||
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
|
||||
else
|
||||
mkdir -p etc/runit/runsvdir/default/
|
||||
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
|
||||
mkdir -p etc/runit/runsvdir/default/
|
||||
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/
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue