Fix dnsmasq finding the right pidfile.
[openresolv] / dnsmasq.in
index 8fdd999c662c4b8a35bcab43f1902b830506d930..09120d1d824a12f674981aa59de8aa1154a3564a 100644 (file)
@@ -43,8 +43,8 @@ newresolv="$newconf"
 # Check for DBus support in the binary
 dbus=false
 : ${dbus_pid:=/var/run/dbus/dbus.pid}
-[ -s "$dbus_pid" ] || dbuspid=/var/run/dbus.pid
-[ -s "$dbus_pid" ] || dbuspid=/var/run/dbus/pid
+[ -s "$dbus_pid" ] || dbus_pid=/var/run/dbus.pid
+[ -s "$dbus_pid" ] || dbus_pid=/var/run/dbus/pid
 if [ -s "$dbus_pid" -a -s "$dnsmasq_pid" ]; then
        if dnsmasq --version 2>/dev/null | \
                grep -q "^Compile time options.*[[:space:]]DBus[[:space:]]"