From 715f63c43372d8d613688564da4f1726bb283edb Mon Sep 17 00:00:00 2001 From: Tommy <4850853+wx00@users.noreply.github.com> Date: Fri, 30 Aug 2019 08:49:35 +0800 Subject: [PATCH] install: add restart with OpenRC --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 9ecec75e9e..0b7b6afe30 100755 --- a/install.sh +++ b/install.sh @@ -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