summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-29 12:06:35 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-29 12:06:35 -0800
commit4f853fd987692eee16faf344e293d4aa1f6bfb18 (patch)
treee370116d5c0681fbd9be4134cf5371e1b9a18988 /functions
parent0addbd328daaa27829fe088540eb9b12a4c8928d (diff)
downloadvyatta-op-4f853fd987692eee16faf344e293d4aa1f6bfb18.tar.gz
vyatta-op-4f853fd987692eee16faf344e293d4aa1f6bfb18.zip
remove root requirement
By using vyatta-show-dmi and the operator/sudoers this script can now be run without being root.
Diffstat (limited to 'functions')
-rw-r--r--functions/tech-support16
1 files changed, 9 insertions, 7 deletions
diff --git a/functions/tech-support b/functions/tech-support
index 61422d9..fb6a91f 100644
--- a/functions/tech-support
+++ b/functions/tech-support
@@ -78,7 +78,7 @@ header PCI Info
lspci
header System Info
-sudo ${vyatta_bindir}/sudo-users/dmidecode
+${vyatta_bindir}/vyatta-show-dmi
header Interfaces
show interfaces
@@ -128,8 +128,10 @@ cat /etc/apt/sources.list
header /etc/ipsec.conf
cat /etc/ipsec.conf
-header /etc/ipsec.secrets
-sudo cat /etc/ipsec.secrets
+if [ -r /etc/ipsec.secrets ]; then
+ header /etc/ipsec.secrets
+ cat /etc/ipsec.secrets
+fi
header \''ls -l /etc/rc?.d'\'
ls -l /etc/rc?.d
@@ -138,16 +140,16 @@ header /etc/rc.local
cat /etc/rc.local
header \''iptables -L -vn'\'
-sudo ${vyatta_bindir}/sudo-users/iptables -L -vn
+sudo /sbin/iptables -L -vn
header \''iptables -t nat -L -vn'\'
-sudo ${vyatta_bindir}/sudo-users/iptables -t nat -L -vn
+sudo /sbin/iptables -t nat -L -vn
header \''iptables -t mangle -L -vn'\'
-sudo ${vyatta_bindir}/sudo-users/iptables -t mangle -L -vn
+sudo /sbin/iptables -t mangle -L -vn
header \''iptables -t raw -L -vn'\'
-sudo ${vyatta_bindir}/sudo-users/iptables -t raw -L -vn
+sudo /sbin/iptables -t raw -L -vn
header \''show ip route'\'
show ip route