• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/dnsmasq/contrib/dnsmasq_MacOSX-pre10.4/
1#!/bin/sh
2. /etc/rc.common
3
4StartService() {
5  if [ "${DNSMASQ:=-NO-}" = "-YES-" ] ; then
6    /usr/local/sbin/dnsmasq -q -n
7  fi
8}
9
10StopService() {
11  pid=`GetPID dnsmasq`
12  if [ $? -eq 0 ]; then
13    kill $pid
14  fi
15}
16
17RestartService() {
18  StopService "$@"
19  StartService "$@"
20}
21
22RunService "$1"
23