Remove vim comments and fix formatting a little.
[openresolv] / dnsmasq.in
index ee4a6d682044ef011a281ece70bb38e2eb1d01aa..2de1f3b7af983ba711c2b510ec032494e644a934 100755 (executable)
@@ -72,8 +72,8 @@ if [ -s "${dbuspid}" -a -s /var/run/dnsmasq.pid ]; then
                grep -q "^Compile time options.*[[:space:]]DBus[[:space:]]" \
                ; then
                # Sanity - check that dnsmasq and dbus are running
                grep -q "^Compile time options.*[[:space:]]DBus[[:space:]]" \
                ; then
                # Sanity - check that dnsmasq and dbus are running
-               if kill -0 $(cat "${dbuspid}") \
-                       && kill -0 $(cat /var/run/dnsmasq.pid); then
+               if kill -0 $(cat "${dbuspid}") 2>/dev/null \
+                       && kill -0 $(cat /var/run/dnsmasq.pid) 2>/dev/null; then
                        DBUS=yes
                        NEWCONF="${NEWCONF}\n# Domain specific servers will be sent over dbus\nenable-dbus\n"
                fi
                        DBUS=yes
                        NEWCONF="${NEWCONF}\n# Domain specific servers will be sent over dbus\nenable-dbus\n"
                fi
@@ -160,5 +160,3 @@ if [ "${DBUS}" = "yes" ]; then
                /uk/org/thekelleys/dnsmasq uk.org.thekelleys.SetServers \
                ${DBUSDEST}
 fi
                /uk/org/thekelleys/dnsmasq uk.org.thekelleys.SetServers \
                ${DBUSDEST}
 fi
-
-# vim: ts=4 :