source: freewrt/package/dnsmasq/files/dnsmasq.init@ e80a2f9

freewrt_1_0 freewrt_2_0
Last change on this file since e80a2f9 was e80a2f9, checked in by Lothar Gesslein <ulmen@…>, 19 years ago

Fix for Ticket #166

dnsmasq uses /var/lib/misc for its leases file, so we have to create it somewhere.

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1385 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 320 bytes
Line 
1#!/bin/sh
2
3. /etc/rc.conf
4
5case $1 in
6autostart)
7 test x"${dns_dhcp:-NO}" = x"NO" && exit 0
8 exec $0 start
9 ;;
10start)
11 [ -f /etc/dnsmasq.conf ] || exit
12 mkdir -p /var/lib/misc
13 /usr/sbin/dnsmasq
14 ;;
15stop)
16 killall dnsmasq
17 ;;
18restart)
19 $0 stop
20 $0 start
21 ;;
22*)
23 echo "Usage: $0 {start | stop | restart}"
24 ;;
25esac
26exit 0
Note: See TracBrowser for help on using the repository browser.