summaryrefslogtreecommitdiff
path: root/templates/service
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-08-06 11:10:11 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-08-06 11:10:11 +0000
commitd86fe348aa578c5f83bd7c24c0ed2875a343220d (patch)
treef1dd8c2b8ebb6ab21bdaf53ad422c1a18eefb9f7 /templates/service
parent9537105aa503bef1a6de1807657ea8223f5ce7c6 (diff)
downloadvyatta-cfg-system-d86fe348aa578c5f83bd7c24c0ed2875a343220d.tar.gz
vyatta-cfg-system-d86fe348aa578c5f83bd7c24c0ed2875a343220d.zip
this better detects the interfaces in /proc/net/dev
Diffstat (limited to 'templates/service')
-rw-r--r--templates/service/dns/forward/ignore-interface/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/service/dns/forward/ignore-interface/node.def b/templates/service/dns/forward/ignore-interface/node.def
index 5355eecf..f3c80832 100644
--- a/templates/service/dns/forward/ignore-interface/node.def
+++ b/templates/service/dns/forward/ignore-interface/node.def
@@ -15,5 +15,5 @@ syntax:expression: exec "
exit 1 "
allowed: local -a array ;
- array=($(awk '$1 ~ /:$/ { print $1 }' /proc/net/dev));
- echo -n ${array[@]%:}
+ array=($(awk '$1 ~ /:/ { print $1 }' /proc/net/dev));
+ echo -n ${array[@]%:*}