]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Export IF_METRIC to resolvconf. We should change to the -m option when openresolv...
authorRoy Marples <roy@marples.name>
Wed, 10 Sep 2008 12:34:25 +0000 (12:34 +0000)
committerRoy Marples <roy@marples.name>
Wed, 10 Sep 2008 12:34:25 +0000 (12:34 +0000)
dhcpcd-hooks/20-resolv.conf

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