diff --git a/bsp/default/root_file_system/etc/nodewatcher.sh b/bsp/default/root_file_system/etc/nodewatcher.sh index 0e6644a..9c3e4f7 100755 --- a/bsp/default/root_file_system/etc/nodewatcher.sh +++ b/bsp/default/root_file_system/etc/nodewatcher.sh @@ -186,8 +186,8 @@ crawl() { last_seen=`echo $row | awk '{print $2}'` last_seen="${last_seen//s/}" link_quality=`echo $row | awk '{print $3}'` - outgoing_interface=`echo $row | awk '{print $6}'` - outgoing_interface="${outgoing_interface//]:/}" + outgoing_interface=`echo $row | cut -d] -f1 | cut -d[ -f2` + outgoing_interface="${outgoing_interface// /}" nexthop=`echo $row | awk '{print $4}'` batman_adv_originators=$batman_adv_originators"$originator$link_quality$nexthop$last_seen$outgoing_interface"