Lines Matching +full:send +full:- +full:empty
2 # Copyright (c) 2007-2019 Roy Marples
29 [ -f "@SYSCONFDIR@"/resolvconf.conf ] || exit 0
31 [ -z "${dnsmasq_conf}${dnsmasq_resolv}" ] && exit 0
32 [ -z "$RESOLVCONF" ] && eval "$(@SBINDIR@/resolvconf -v)"
37 [ -s "$dnsmasq_pid" ] || dnsmasq_pid=/var/run/dnsmasq/dnsmasq.pid
38 [ -s "$dnsmasq_pid" ] || unset dnsmasq_pid
50 dbus_introspect=$(dbus-send --print-reply --system \
51 --dest=uk.org.thekelleys.dnsmasq \
58 grep -q '<method name="SetDomainServers">'
74 while [ -n "$ns" ]; do
79 SIFS=${IFS-y} OIFS=$IFS
81 set -- $n
97 SIFS=${IFS-y} OIFS=$IFS bytes= front= back=
98 empty=false i=0
100 set -- $n
101 while [ -n "$1" ] || [ -n "$2" ]; do
104 if [ -z "$addr" ]; then
105 empty=true
109 while [ ${#addr} -lt 4 ]; do
114 if $empty; then
157 @SBINDIR@/resolvconf -D "$dnsmasq_conf" "$dnsmasq_resolv"
161 if [ -n "$dnsmasq_conf" ]; then
162 if [ ! -f "$dnsmasq_conf" ] || \
169 if [ -n "$dnsmasq_resolv" ]; then
171 if [ -f "$dnsmasq_resolv" ]; then
182 # dnsmasq does not re-read the configuration file on SIGHUP
183 if [ -n "$dnsmasq_restart" ]; then
185 elif [ -n "$RESTARTCMD" ]; then
186 set -- ${dnsmasq_service}
189 @SBINDIR@/resolvconf -r ${dnsmasq_service}
193 if [ -s "$dnsmasq_pid" ]; then
194 $changed || kill -HUP $(cat "$dnsmasq_pid")
196 # Send even if empty so old servers are cleared
199 if [ -n "$dbusdest_ex" ]; then
206 dbus-send --system --dest=uk.org.thekelleys.dnsmasq \
209 dbus-send --system --dest=uk.org.thekelleys.dnsmasq \