From 9c1009f00a9f4be7a55cf315c7daddd7260fa035 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 25 Feb 2008 09:11:41 -0800 Subject: running brctl doesn't need root privledges Don't need sudo for running info commands. --- templates/show/bridge/node.def | 2 +- templates/show/bridge/node.tag/macs/node.def | 2 +- templates/show/bridge/node.tag/node.def | 2 +- templates/show/bridge/node.tag/spanning-tree/node.def | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/show/bridge/node.def b/templates/show/bridge/node.def index 45761f1..efc319e 100644 --- a/templates/show/bridge/node.def +++ b/templates/show/bridge/node.def @@ -1,2 +1,2 @@ help: "Show bridging information" -run: sudo brctl show +run: /usr/sbin/brctl show diff --git a/templates/show/bridge/node.tag/macs/node.def b/templates/show/bridge/node.tag/macs/node.def index c16fcb5..7ca18d0 100644 --- a/templates/show/bridge/node.tag/macs/node.def +++ b/templates/show/bridge/node.tag/macs/node.def @@ -1,2 +1,2 @@ help: Show bridge MAC table -run: sudo brctl showmacs $3 +run: /usr/sbin/brctl showmacs $3 diff --git a/templates/show/bridge/node.tag/node.def b/templates/show/bridge/node.tag/node.def index d439a03..daf82b0 100644 --- a/templates/show/bridge/node.tag/node.def +++ b/templates/show/bridge/node.tag/node.def @@ -2,4 +2,4 @@ help: Show bridge information for a given bridge allowed: local -a array ; array=( /sys/class/net/br* ) ; echo -n ${array[@]##*/} -run: sudo brctl show $3 +run: /usr/sbin/brctl show $3 diff --git a/templates/show/bridge/node.tag/spanning-tree/node.def b/templates/show/bridge/node.tag/spanning-tree/node.def index 8840ee6..a84eb2a 100644 --- a/templates/show/bridge/node.tag/spanning-tree/node.def +++ b/templates/show/bridge/node.tag/spanning-tree/node.def @@ -1,2 +1,2 @@ help: Show bridge spanning tree information -run: sudo brctl showstp $3 +run: /usr/sbin/brctl showstp $3 -- cgit v1.2.3