From 1eb2e8ad38777114d7bc48b6ec0ad0e622740733 Mon Sep 17 00:00:00 2001 From: floh1111 Date: Mon, 16 Jan 2012 00:51:41 +0000 Subject: [PATCH] Collect nexthop information in nodewatcher --- root_file_system/default/etc/nodewatcher.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root_file_system/default/etc/nodewatcher.sh b/root_file_system/default/etc/nodewatcher.sh index 75ba1e6..ce22e99 100755 --- a/root_file_system/default/etc/nodewatcher.sh +++ b/root_file_system/default/etc/nodewatcher.sh @@ -189,8 +189,9 @@ crawl() { link_quality="${link_quality//)/}" outgoing_interface=`echo $row | awk '{print $6}'` outgoing_interface="${outgoing_interface//]:/}" + nexthop=`echo $row | awk '{print $4}'` - batman_adv_originators=$batman_adv_originators"$originator$link_quality$last_seen$outgoing_interface" + batman_adv_originators=$batman_adv_originators"$originator$link_quality$nexthop$last_seen$outgoing_interface" count=`expr $count + 1` done IFS=$OLDIFS