install: add restart with busybox-initd

This commit is contained in:
AnyMoe 2020-04-09 13:01:18 +08:00 committed by Felix Yan
parent 7701b57503
commit 6c8d4a44ea
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ elif hash service 2>/dev/null; then
service dnsmasq restart service dnsmasq restart
elif hash rc-service 2>/dev/null; then elif hash rc-service 2>/dev/null; then
rc-service dnsmasq restart rc-service dnsmasq restart
elif hash busybox 2>/dev/null && [[ -d "/etc/init.d" ]]; then
/etc/init.d/dnsmasq restart
else else
echo "Now please restart dnsmasq since I don't know how to do it." echo "Now please restart dnsmasq since I don't know how to do it."
fi fi