blob: 6b6211897122484a82d8c11911fa212b1f2ddb79 [file] [log] [blame]
Simon Kelley3d8df262005-08-29 12:19:27 +01001#!/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"