#!/bin/sh

start() {
  if [ -x /usr/sbin/dnsmasq ] ; then
    dnsmasq
  fi
}

stop() {
  killall dnsmasq
}

case "$1" in
start)
  start
  ;;
stop)
  stop
  ;;
restart)
  stop
  sleep 1
  start
  ;;
*)
  echo $"Usage: $0 {start|stop|restart}"
  exit 1
  ;;
esac
exit 0
