Support dbus on dnsmasq on Debian.
authorRoy Marples <roy@marples.name>
Thu, 10 Jun 2010 15:43:24 +0000 (15:43 +0000)
committerRoy Marples <roy@marples.name>
Thu, 10 Jun 2010 15:43:24 +0000 (15:43 +0000)
dnsmasq.in

index e9d1f5183fd166970a2d00d27b115ad41beeee8d..203debbc9aeb6d46675adc441be4d801eb35caca 100644 (file)
@@ -32,6 +32,7 @@
 [ -z "$RESOLVCONF" ] && eval "$(@PREFIX@/sbin/resolvconf -v)"
 
 : ${dnsmasq_pid:=/var/run/dnsmasq.pid}
+[ -s "$dnsmasq_pid" ] || dnsmasq_pid=/var/run/dnsmasq/dnsmasq.pid
 : ${dnsmasq_restart:=@RESTARTCMD dnsmasq@}
 newconf="# Generated by resolvconf\n"
 newresolv="$newconf"