aboutsummaryrefslogtreecommitdiffstats
path: root/pdnsd.in
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2019-11-20 22:23:50 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2019-11-20 22:23:50 +0000
commita1f03c7e4d33421baac0a5f3dc5947c7b379ea0c (patch)
tree6e4636d2ec61ee051caac3627fcd09b0561b6d9c /pdnsd.in
parentd7fde65d0ed7c3a3d6b23959d8a7de22feb83032 (diff)
downloadsrc-vendor/openresolv.tar.gz
src-vendor/openresolv.zip
Notes
Notes: svn path=/vendor/openresolv/dist/; revision=354919 svn path=/vendor/openresolv/3.9.2/; revision=354920; tag=vendor/openresolv/3.9.2
Diffstat (limited to 'pdnsd.in')
-rw-r--r--pdnsd.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/pdnsd.in b/pdnsd.in
index 59a4755aff16..971d90d26a1a 100644
--- a/pdnsd.in
+++ b/pdnsd.in
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (c) 2010-2013 Roy Marples
+# Copyright (c) 2010-2018 Roy Marples
# All rights reserved
# pdnsd subscriber for resolvconf
@@ -28,7 +28,7 @@
[ -f "@SYSCONFDIR@"/resolvconf.conf ] || exit 0
. "@SYSCONFDIR@/resolvconf.conf" || exit 1
-[ -z "$pdnsd_conf" -a -z "$pdnsd_resolv" ] && exit 0
+[ -z "${pdnsd_conf}${pdnsd_resolv}" ] && exit 0
[ -z "$RESOLVCONF" ] && eval "$(@SBINDIR@/resolvconf -v)"
NL="
"
@@ -41,14 +41,16 @@ signature_end="# End of resolvconf"
# but sed may not always be available at the time.
remove_markers()
{
- local m1="$1" m2="$2" x= line= in_marker=0
+ m1="$1"
+ m2="$2"
+ in_marker=0
shift; shift
if type sed >/dev/null 2>&1; then
sed "/^$m1/,/^$m2/d" $@
else
- for x; do
- while read -r line; do
+ for x do
+ while read line; do
case "$line" in
"$m1"*) in_marker=1;;
"$m2"*) in_marker=0;;