summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-25 17:15:11 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-25 17:15:11 -0800
commit088ac59c3810c77f8965d279f2b631ccafcfcd0e (patch)
treed18b52639471e860724ebeb57f55644e7f1dc60f /functions
parent50e59f12cdc9ef09a3815be0f41d60fafc8465f0 (diff)
downloadvyatta-op-088ac59c3810c77f8965d279f2b631ccafcfcd0e.tar.gz
vyatta-op-088ac59c3810c77f8965d279f2b631ccafcfcd0e.zip
Revert "remove usage of sudo in tech-support script"
This reverts commit 61ed2bab2adb0b26627bbfc4fe45c23d5032c6c7.
Diffstat (limited to 'functions')
-rw-r--r--functions/tech-support22
1 files changed, 7 insertions, 15 deletions
diff --git a/functions/tech-support b/functions/tech-support
index 4d276e0..61422d9 100644
--- a/functions/tech-support
+++ b/functions/tech-support
@@ -78,13 +78,7 @@ header PCI Info
lspci
header System Info
-find -L /sys/class/dmi/id -type f 2>/dev/null | \
- while read f; do
- if [ -r $f ]; then
- echo -n " $(basename $f): "
- cat $f
- fi
- done
+sudo ${vyatta_bindir}/sudo-users/dmidecode
header Interfaces
show interfaces
@@ -134,10 +128,8 @@ cat /etc/apt/sources.list
header /etc/ipsec.conf
cat /etc/ipsec.conf
-if [ -r /etc/ipsec.secrets ]; then
- header /etc/ipsec.secrets
- cat /etc/ipsec.secrets
-fi
+header /etc/ipsec.secrets
+sudo cat /etc/ipsec.secrets
header \''ls -l /etc/rc?.d'\'
ls -l /etc/rc?.d
@@ -146,16 +138,16 @@ header /etc/rc.local
cat /etc/rc.local
header \''iptables -L -vn'\'
-/sbin/iptables -L -vn
+sudo ${vyatta_bindir}/sudo-users/iptables -L -vn
header \''iptables -t nat -L -vn'\'
-/sbin/iptables -t nat -L -vn
+sudo ${vyatta_bindir}/sudo-users/iptables -t nat -L -vn
header \''iptables -t mangle -L -vn'\'
-/sbin/iptables -t mangle -L -vn
+sudo ${vyatta_bindir}/sudo-users/iptables -t mangle -L -vn
header \''iptables -t raw -L -vn'\'
-/sbin/iptables -t raw -L -vn
+sudo ${vyatta_bindir}/sudo-users/iptables -t raw -L -vn
header \''show ip route'\'
show ip route