projects
/
grml-hwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fea1a1
)
ip: also store table specific route information
author
Michael Prokop
<mika@grml.org>
Wed, 21 Oct 2015 20:42:10 +0000
(22:42 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 21 Oct 2015 21:04:43 +0000
(23:04 +0200)
grml-hwinfo
patch
|
blob
|
history
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
ed48463
..
37f007c
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-223,6
+223,11
@@
cd "${OUTDIR}" || exit 1
exectest ip && ip netns list > ip_netns
exectest ip && ip ntable show > ip_ntable
exectest ip && ip route show > ip_route
exectest ip && ip netns list > ip_netns
exectest ip && ip ntable show > ip_ntable
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 name ; do
+ ip route show table "${table}" > "ip_route_table_${table}"
+ done
+ fi
exectest ip && ip rule show > ip_rule
exectest ip && ip tunnel show > ip_tunnel
exectest ip && ip tuntap show > ip_tuntap
exectest ip && ip rule show > ip_rule
exectest ip && ip tunnel show > ip_tunnel
exectest ip && ip tuntap show > ip_tuntap