install: add restart with OpenRC

This commit is contained in:
Tommy 2019-08-30 08:49:35 +08:00 committed by Felix Yan
parent 603d32d94c
commit 715f63c433
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ if hash systemctl 2>/dev/null; then
systemctl restart dnsmasq
elif hash service 2>/dev/null; then
service dnsmasq restart
elif hash rc-service 2>/dev/null; then
rc-service dnsmasq restart
else
echo "Now please restart dnsmasq since I don't know how to do it."
fi