Get batman advanced version, not brctl version

This commit is contained in:
floh1111 2011-11-03 20:41:22 +00:00
parent 0d01fee818
commit c00bcbb4cd
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ crawl() {
loadavg=`cat /proc/loadavg | awk '{ print $1 }'`
if which batctl >/dev/null; then
batman_adv_version=`batctl -v | awk '{ print $2 }'`
batctl_adv_version=`batctl -v | awk '{ print $2 }'`
batman_adv_version=`batctl o|head -n1|awk '{ print $3 }'|sed 's/,//'`
fi
kernel_version=`uname -r`
nodewatcher_version=$SCRIPT_VERSION