diff options
Diffstat (limited to 'templates/clear')
4 files changed, 9 insertions, 0 deletions
diff --git a/templates/clear/interfaces/wireless/counters/node.def b/templates/clear/interfaces/wireless/counters/node.def new file mode 100644 index 0000000..b9fcd6c --- /dev/null +++ b/templates/clear/interfaces/wireless/counters/node.def @@ -0,0 +1,2 @@ +help: Clear all wireless interface counters +run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-interfaces.pl --action=clear --intf-type="$3" diff --git a/templates/clear/interfaces/wireless/node.def b/templates/clear/interfaces/wireless/node.def new file mode 100644 index 0000000..496f016 --- /dev/null +++ b/templates/clear/interfaces/wireless/node.def @@ -0,0 +1 @@ +help: Clear wireless interface information diff --git a/templates/clear/interfaces/wireless/node.tag/counters/node.def b/templates/clear/interfaces/wireless/node.tag/counters/node.def new file mode 100644 index 0000000..52e088d --- /dev/null +++ b/templates/clear/interfaces/wireless/node.tag/counters/node.def @@ -0,0 +1,2 @@ +help: Clear interface counters for a given wireless interface +run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-interfaces.pl --action=clear --intf="$4" diff --git a/templates/clear/interfaces/wireless/node.tag/node.def b/templates/clear/interfaces/wireless/node.tag/node.def new file mode 100644 index 0000000..8955769 --- /dev/null +++ b/templates/clear/interfaces/wireless/node.tag/node.def @@ -0,0 +1,4 @@ +help: Clear interface information for a given wireless interface +allowed: local -a array ; + array=( /sys/class/net/wlan* ) ; + echo -n ${array[@]##*/} |