Contents of /branches/common-nfo/package/dnsmasq/files/dnsmasq.init
Parent Directory
|
Revision Log
Revision
3427 -
(
show annotations)
(
download)
Wed Aug 8 11:08:41 2007 UTC
(6 years, 6 months ago)
by
tg
File size: 331 byte(s)
merge in trunk rev. 3426
| 1 |
#!/bin/mksh |
| 2 |
#FWINIT 50 |
| 3 |
. /etc/rc.conf |
| 4 |
|
| 5 |
case $1 in |
| 6 |
(autostop) ;; |
| 7 |
(autostart) |
| 8 |
[[ $dns_dhcp = NO ]] && exit 0 |
| 9 |
exec mksh $0 start |
| 10 |
;; |
| 11 |
start) |
| 12 |
[ -f /etc/dnsmasq.conf ] || exit |
| 13 |
/usr/sbin/dnsmasq |
| 14 |
;; |
| 15 |
(stop) |
| 16 |
killall dnsmasq |
| 17 |
;; |
| 18 |
(restart) |
| 19 |
mksh $0 stop |
| 20 |
mksh $0 start |
| 21 |
;; |
| 22 |
(*) |
| 23 |
echo "Usage: $0 {start | stop | restart}" |
| 24 |
;; |
| 25 |
esac |
| 26 |
exit $? |