]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/dnsmasq
29a59d3eabab4210661b78b919e3fec306e58ecc
2 ########################################################################
3 # Begin $rc_base/init.d/dnsmasq
5 # Description : dnsmasq init script
7 # Authors : Michael Tremer - mitch@ipfire.org
13 ########################################################################
20 boot_mesg
"Starting Domain Name Service Proxy..."
22 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/ethernet
/settings
)
24 [ "$DOMAIN_NAME_GREEN" == "" ] && ARGS
="-s $DOMAIN_NAME_GREEN "
25 [ -e "/var/ipfire/red/active" ] && ARGS
+="-r /var/ipfire/red/resolv.conf"
27 loadproc
/usr
/sbin
/dnsmasq
-l /var
/state
/dhcp
/dhcpd.leases
$ARGS
31 boot_mesg
"Stopping Domain Name Service Proxy..."
32 killproc
/usr
/sbin
/dnsmasq
42 statusproc
/usr
/sbin
/dnsmasq
46 echo "Usage: ${0} {start|stop|restart|status}"
51 # End $rc_base/init.d/dnsmasq