From 8eca38cb953a756c9662cb93a7c2cb933657261d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 21 Oct 2015 22:42:10 +0200 Subject: [PATCH] ip: also store table specific route information --- grml-hwinfo | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grml-hwinfo b/grml-hwinfo index ed48463..37f007c 100755 --- 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 && 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 -- 2.1.4