source:
freewrt/package/dnsmasq/files/dnsmasq.init@
22cf0a4
| Last change on this file since 22cf0a4 was 8139583, checked in by , 19 years ago | |
|---|---|
|
|
| File size: 296 bytes | |
| Rev | Line | |
|---|---|---|
| [475ad56] | 1 | #!/bin/sh |
| 2 | ||
| [141418f] | 3 | . /etc/rc.conf |
| 4 | ||
| [1435d00] | 5 | case $1 in |
| [cf0d868] | 6 | autostart) |
| [5d9f1ed] | 7 | test x"${dns_dhcp:-NO}" = x"NO" && exit 0 |
| [cf0d868] | 8 | exec $0 start |
| 9 | ;; | |
| 10 | start) | |
| 11 | [ -f /etc/dnsmasq.conf ] || exit | |
| 12 | /usr/sbin/dnsmasq | |
| 13 | ;; | |
| 14 | stop) | |
| 15 | killall dnsmasq | |
| 16 | ;; | |
| 17 | restart) | |
| 18 | $0 stop | |
| 19 | $0 start | |
| 20 | ;; | |
| 21 | *) | |
| 22 | echo "Usage: $0 {start | stop | restart}" | |
| 23 | ;; | |
| [1435d00] | 24 | esac |
| 25 | exit 0 |
Note:
See TracBrowser
for help on using the repository browser.
