diff options
| author | Scott Barker <scott@mostlylinux.ca> | 2018-11-13 15:02:44 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2018-11-13 15:02:44 +0000 |
| commit | 901c2bf7910802ccbe79d7c9670c41137436aa98 (patch) | |
| tree | e1bc3d410bf3a376c57c9d3bfd910b3c6b9b8534 | |
| parent | 75679ee66fb6187405120f7bf47ec030c4f27c0b (diff) | |
| download | openresolv-901c2bf7910802ccbe79d7c9670c41137436aa98.tar.xz | |
Interfaces have an implicit metric of 0.
| -rw-r--r-- | resolvconf.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/resolvconf.in b/resolvconf.in index dd8797e..3ee75a9 100644 --- a/resolvconf.in +++ b/resolvconf.in @@ -461,13 +461,18 @@ 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 + list="$list $i" + fi + done if [ -d "$METRICDIR" ]; then cd "$METRICDIR" for i in *; do [ -f "$i" ] && list="$list ${i#* }" done fi - list="$list *" fi cd "$IFACEDIR" |
