android_mt6572_jiabo/external/dnsmasq/contrib/dnsmasq_MacOSX/DNSmasq
2025-09-05 16:56:03 +08:00

22 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"