summaryrefslogtreecommitdiffstats
path: root/resolvconf.in
diff options
context:
space:
mode:
Diffstat (limited to 'resolvconf.in')
-rw-r--r--resolvconf.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/resolvconf.in b/resolvconf.in
index a1a89bf..e7b0ffe 100644
--- a/resolvconf.in
+++ b/resolvconf.in
@@ -448,12 +448,14 @@ list_resolv()
$force || report=true
elif ! $excl; then
cd "$IFACEDIR"
+
for i in $interface_order; do
[ -f "$i" ] && list="$list $i"
for ii in "$i":* "$i".*; do
[ -f "$ii" ] && list="$list $ii"
done
done
+
for i in $dynamic_order; do
if [ -e "$i" ] && ! [ -e "$METRICDIR/"*" $i" ]; then
list="$list $i"
@@ -465,6 +467,7 @@ list_resolv()
fi
done
done
+
# Interfaces have an implicit metric of 0 if not specified.
for i in *; do
if [ -f "$i" ] && ! [ -e "$METRICDIR/"*" $i" ]; then
@@ -942,9 +945,9 @@ d)
"$PRIVATEDIR/$i" \
"$EXCLUSIVEDIR/"*" $i" || exit $?
done
- if ! ${changed}; then
+ if ! $changed; then
# Set the return code based on the forced flag
- ${force}
+ $force
exit $?
fi
unset changed i