summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-28 13:27:16 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-28 13:27:16 -0800
commit30d8f0c649a9ee7a6e533e71b1bcb114df4576ed (patch)
treed5e248f1c776d9b97735092dad1dbb8206a3373e
parentfb828c7cf89d964482f1812eec0acd33708b8e0c (diff)
downloadvyatta-op-30d8f0c649a9ee7a6e533e71b1bcb114df4576ed.tar.gz
vyatta-op-30d8f0c649a9ee7a6e533e71b1bcb114df4576ed.zip
show commands don't need sudo
-rw-r--r--Makefile.am4
-rw-r--r--templates/show/interfaces/ethernet/node.tag/identify/node.def2
-rw-r--r--templates/show/interfaces/ethernet/node.tag/physical/node.def2
3 files changed, 3 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 2333bb9..314a24d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,6 @@ default_DATA = etc/default/vyatta
completiondir = /etc/bash_completion.d
completion_DATA = etc/bash_completion.d/10vyatta-op
opdir = $(datadir)/vyatta-op/templates
-bin_sudo_usersdir = $(bindir)/sudo-users
funcdir = $(datadir)/vyatta-op/functions
func_DATA = functions/tech-support
@@ -21,8 +20,7 @@ bin_SCRIPTS += scripts/vyatta-show-log-file
bin_SCRIPTS += scripts/vyatta-show-dmesg
bin_SCRIPTS += scripts/vyatta-show-dmesg-all
bin_SCRIPTS += scripts/vyatta-show-dmi
-
-bin_sudo_users_SCRIPTS = scripts/vyatta-identify-interface.pl
+bin_SCRIPTS += scripts/vyatta-identify-interface.pl
cpiop = find . ! -regex '\(.*~\|.*\.bak\|.*\.swp\|.*\#.*\#\)' -print0 | \
cpio -0pd
diff --git a/templates/show/interfaces/ethernet/node.tag/identify/node.def b/templates/show/interfaces/ethernet/node.tag/identify/node.def
index d94172f..3bbd413 100644
--- a/templates/show/interfaces/ethernet/node.tag/identify/node.def
+++ b/templates/show/interfaces/ethernet/node.tag/identify/node.def
@@ -1,2 +1,2 @@
help: Visually identify the specified Ethernet interface
-run: sudo ${vyatta_bindir}/sudo-users/vyatta-identify-interface.pl "$4"
+run: ${vyatta_bindir}/vyatta-identify-interface.pl "$4"
diff --git a/templates/show/interfaces/ethernet/node.tag/physical/node.def b/templates/show/interfaces/ethernet/node.tag/physical/node.def
index 389378b..3667c13 100644
--- a/templates/show/interfaces/ethernet/node.tag/physical/node.def
+++ b/templates/show/interfaces/ethernet/node.tag/physical/node.def
@@ -1,3 +1,3 @@
help: Show physical device information of given ethernet interface
allowed: ""
-run: sudo ${vyatta_bindir}/sudo-users/ethtool "$4"; sudo ${vyatta_bindir}/sudo-users/ethtool -i "$4"
+run: /usr/sbin/ethtool "$4"; /usr/sbin/ethtool -i "$4"