mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 02:08:24 +00:00
23 lines
294 B
Bash
Executable File
23 lines
294 B
Bash
Executable File
#!/bin/sh
|
|
. /etc/rc.common
|
|
|
|
StartService() {
|
|
if [ "${DNSMASQ:=-NO-}" = "-YES-" ] ; then
|
|
/usr/local/sbin/dnsmasq -q -n
|
|
fi
|
|
}
|
|
|
|
StopService() {
|
|
pid=`GetPID dnsmasq`
|
|
if [ $? -eq 0 ]; then
|
|
kill $pid
|
|
fi
|
|
}
|
|
|
|
RestartService() {
|
|
StopService "$@"
|
|
StartService "$@"
|
|
}
|
|
|
|
RunService "$1"
|