projects
/
grml-hwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Log 'ip route show table' errors to corresponding error file
[grml-hwinfo.git]
/
grml-hwinfo
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
bb20182
..
ab2b295
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-214,7
+214,16
@@
cd "${OUTDIR}" || exit 1
mdstat meminfo modules mtrr pci uptime version ; do
[ -r /proc/$i ] && cat /proc/$i > proc_$i
done
mdstat meminfo modules mtrr pci uptime version ; do
[ -r /proc/$i ] && cat /proc/$i > proc_$i
done
+
+ if ! $_opt_quiet ; then
+ echo "Starting sysdump..."
+ echo " NOTE: if it seems to be hanging at this stage file a bug report with output of:"
+ echo " lsof -p \$(pgrep -f "\$\(which sysdump\)")"
+ fi
exectest sysdump && sysdump > ./sysdump 2>./sysdump.error
exectest sysdump && sysdump > ./sysdump 2>./sysdump.error
+ if ! $_opt_quiet ; then
+ echo "Execution of sysdump finished."
+ fi
exectest cpuid && cpuid > ./cpuid 2>./cpuid.error
exectest cpuid && cpuid > ./cpuid 2>./cpuid.error
@@
-252,7
+261,7
@@
cd "${OUTDIR}" || exit 1
exectest ip && ip route show > ip_route
exectest ip && if [ -r /etc/iproute2/rt_tables ] ; then
grep -v '^#' /etc/iproute2/rt_tables | while read table _ ; do
exectest ip && ip route show > ip_route
exectest ip && if [ -r /etc/iproute2/rt_tables ] ; then
grep -v '^#' /etc/iproute2/rt_tables | while read table _ ; do
- ip route show table "${table}" > "ip_route_table_${table}"
+ ip route show table "${table}" > "ip_route_table_${table}"
2> "ip_route_table_${table}".error
done
fi
exectest ip && ip rule show > ip_rule
done
fi
exectest ip && ip rule show > ip_rule