1 |
commit: 483db945e11ef662e49cba3907b0be09c5b07fb3 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 23 14:17:33 2011 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 23 14:17:33 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=483db945 |
7 |
|
8 |
Fix typo |
9 |
|
10 |
--- |
11 |
net/system.sh | 7 ++++--- |
12 |
1 files changed, 4 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/net/system.sh b/net/system.sh |
15 |
index 65557fc..98017d5 100644 |
16 |
--- a/net/system.sh |
17 |
+++ b/net/system.sh |
18 |
@@ -13,7 +13,7 @@ system_depend() |
19 |
|
20 |
_system_dns() |
21 |
{ |
22 |
- local servers= domain= search= sortlist= options= x= |
23 |
+ local servers= domain= search= sortlist= options= x= imetric= |
24 |
|
25 |
eval servers=\$dns_servers_${IFVAR} |
26 |
[ -z "${servers}" ] && servers=${dns_servers} |
27 |
@@ -47,8 +47,9 @@ _system_dns() |
28 |
# Support resolvconf if we have it. |
29 |
if [ -x /sbin/resolvconf ]; then |
30 |
x="-a ${IFACE}" |
31 |
- if [ -n "${metric_${IFVAR}}" ]; then |
32 |
- x="${x} -m ${metric_${IFVAR}}" |
33 |
+ eval imetric=\${metric_${IFVAR}} |
34 |
+ if [ -n "${imetric}" ]; then |
35 |
+ x="${x} -m ${imetric}" |
36 |
fi |
37 |
printf "${buffer}" | resolvconf ${x} |
38 |
else |