diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-06 11:10:11 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-06 11:10:11 +0000 |
commit | d86fe348aa578c5f83bd7c24c0ed2875a343220d (patch) | |
tree | f1dd8c2b8ebb6ab21bdaf53ad422c1a18eefb9f7 /templates/service | |
parent | 9537105aa503bef1a6de1807657ea8223f5ce7c6 (diff) | |
download | vyatta-cfg-quagga-d86fe348aa578c5f83bd7c24c0ed2875a343220d.tar.gz vyatta-cfg-quagga-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.def | 4 |
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[@]%:*} |