projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: fix occasional kernel hangs during boot on AR934x
[openwrt.git]
/
package
/
dnsmasq
/
files
/
dnsmasq.init
diff --git
a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index
3d9060d
..
80ab250
100644
(file)
--- a/
package/dnsmasq/files/dnsmasq.init
+++ b/
package/dnsmasq/files/dnsmasq.init
@@
-2,6
+2,9
@@
# Copyright (C) 2007 OpenWrt.org
START=60
# Copyright (C) 2007 OpenWrt.org
START=60
+
+SERVICE_USE_PID=1
+
DNS_SERVERS=""
DOMAIN=""
DNS_SERVERS=""
DOMAIN=""
@@
-397,7
+400,7
@@
start() {
config_foreach dhcp_add dhcp
config_foreach dhcp_cname_add cname
config_foreach dhcp_add dhcp
config_foreach dhcp_cname_add cname
- /usr/sbin/dnsmasq $args && {
+
service_start
/usr/sbin/dnsmasq $args && {
rm -f /tmp/resolv.conf
[ -n "$DOMAIN" ] && echo "search $DOMAIN" >> /tmp/resolv.conf
DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
rm -f /tmp/resolv.conf
[ -n "$DOMAIN" ] && echo "search $DOMAIN" >> /tmp/resolv.conf
DNS_SERVERS="$DNS_SERVERS 127.0.0.1"
@@
-408,10
+411,10
@@
start() {
}
stop() {
}
stop() {
- [ -f /tmp/resolv.conf ] && {
- rm -f /tmp/resolv.conf
- ln -s /tmp/resolv.conf.auto /tmp/resolv.conf
+ service_stop /usr/sbin/dnsmasq && {
+ [ -f /tmp/resolv.conf ] && {
+ rm -f /tmp/resolv.conf
+ ln -s /tmp/resolv.conf.auto /tmp/resolv.conf
+ }
}
}
- service_kill dnsmasq /var/run/dnsmasq.pid
- return 0
}
}
This page took
0.02268 seconds
and
4
git commands to generate.