summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-25 09:11:41 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-25 09:11:41 -0800
commit9c1009f00a9f4be7a55cf315c7daddd7260fa035 (patch)
tree12a1f4b532d782cfd38130dacf2544d2da566a81
parent2924ef0aeb27f3996cd61bb41098408c1bed7a0e (diff)
downloadvyatta-op-9c1009f00a9f4be7a55cf315c7daddd7260fa035.tar.gz
vyatta-op-9c1009f00a9f4be7a55cf315c7daddd7260fa035.zip
running brctl doesn't need root privledges
Don't need sudo for running info commands.
-rw-r--r--templates/show/bridge/node.def2
-rw-r--r--templates/show/bridge/node.tag/macs/node.def2
-rw-r--r--templates/show/bridge/node.tag/node.def2
-rw-r--r--templates/show/bridge/node.tag/spanning-tree/node.def2
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