diff options
Diffstat (limited to 'templates/service/dns-forwarding/ignore-interface/node.def')
-rw-r--r-- | templates/service/dns-forwarding/ignore-interface/node.def | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/templates/service/dns-forwarding/ignore-interface/node.def b/templates/service/dns-forwarding/ignore-interface/node.def deleted file mode 100644 index 5355eecf..00000000 --- a/templates/service/dns-forwarding/ignore-interface/node.def +++ /dev/null @@ -1,19 +0,0 @@ -multi: -type: txt -help: Set interface to ignore DNS queries on -syntax:expression: exec " - intf_array=($(awk '$1 ~ /:$/ { print $1 }' /proc/net/dev)) - intf_array_len=${#intf_array[*]} - i=0 - while [ $i -lt $intf_array_len ]; do - if [ \"${intf_array[$i]}\" == \"$VAR(@):\" ] ; then - exit 0 - fi - let i++ - done - echo Invalid ethernet interface [$VAR(@)] - exit 1 " - -allowed: local -a array ; - array=($(awk '$1 ~ /:$/ { print $1 }' /proc/net/dev)); - echo -n ${array[@]%:} |