From 0addbd328daaa27829fe088540eb9b12a4c8928d Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 29 Feb 2008 11:48:56 -0800 Subject: revert sudo removal for "identify" command since the kernel change allowing this has been reverted. --- Makefile.am | 4 +++- templates/show/interfaces/ethernet/node.tag/identify/node.def | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 314a24d..2333bb9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,6 +3,7 @@ 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 @@ -20,7 +21,8 @@ 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_SCRIPTS += scripts/vyatta-identify-interface.pl + +bin_sudo_users_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 3bbd413..d94172f 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: ${vyatta_bindir}/vyatta-identify-interface.pl "$4" +run: sudo ${vyatta_bindir}/sudo-users/vyatta-identify-interface.pl "$4" -- cgit v1.2.3