]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use $ifmetric instead of $metric.
authorRoy Marples <roy@marples.name>
Mon, 7 Feb 2011 17:40:15 +0000 (17:40 +0000)
committerRoy Marples <roy@marples.name>
Mon, 7 Feb 2011 17:40:15 +0000 (17:40 +0000)
dhcpcd-hooks/20-resolv.conf

index 628636dc72fd3620df81518e21910756b6979457..ccc5f21ecb3f49d59d5ce2ab25522f70f540d516 100644 (file)
@@ -94,7 +94,7 @@ add_resolv_conf()
                conf="${conf}nameserver $x\n"
        done
        if type resolvconf >/dev/null 2>&1; then
-               [ -n "$metric" ] && export IF_METRIC="$metric"
+               [ -n "$ifmetric" ] && export IF_METRIC="$ifmetric"
                printf "$conf" | resolvconf -a "$interface"
                return $?
        fi