Skip to content
Snippets Groups Projects
Commit 4bec54a0 authored by MrMM's avatar MrMM
Browse files

Nicer way to detect offline status

parent 2fd4eaa9
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ else
fi
#Is there an active Gateway?
GATEWAY_TQ=`batctl gwl | grep "^=>"| cut -d"(" -f2 | cut -d")" -f1 | tr -d " "`
GATEWAY_TQ=`batctl gwl | grep "^=>" | awk -F'[()]' '{print $2}'| tr -d " "`
if [ $GATEWAY_TQ -gt 50 ];
then
echo "Gateway TQ is $GATEWAY_TQ node is online"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment