Roy's Projects
/
openresolv
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kill 2>/dev/null as we just interested in if we can signal it or not.
[openresolv]
/
dnsmasq.in
diff --git
a/dnsmasq.in
b/dnsmasq.in
index a8740b330b37bcc685e3949635f2f740fa36df65..fbe5bedba51bfc421fe163a46adf944968bf3b5e 100755
(executable)
--- a/
dnsmasq.in
+++ b/
dnsmasq.in
@@
-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
@@
-122,9
+122,9
@@
for DN in $(uniqify ${NEWDOMAIN}); do
set -- ${IP}
NUM="0x$(printf "%02x" $1 $2 $3 $4)"
if [ "${SIFS}" = "y" ]; then
set -- ${IP}
NUM="0x$(printf "%02x" $1 $2 $3 $4)"
if [ "${SIFS}" = "y" ]; then
- IFS=$OIFS
- else
unset IFS
unset IFS
+ else
+ IFS=$OIFS
fi
DBUSDEST="${DBUSDEST} uint32:$(printf "%d" ${NUM}) string:${DN%,*}"
else
fi
DBUSDEST="${DBUSDEST} uint32:$(printf "%d" ${NUM}) string:${DN%,*}"
else