From d86fe348aa578c5f83bd7c24c0ed2875a343220d Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 6 Aug 2008 11:10:11 +0000 Subject: this better detects the interfaces in /proc/net/dev --- templates/service/dns/forward/ignore-interface/node.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') 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[@]%:*} -- cgit v1.2.3