2012-02-17 02:09:21 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DEST=$1
|
|
|
|
|
|
|
|
|
2012-05-12 16:44:27 +02:00
|
|
|
GWS=`(/usr/sbin/batctl gwl -n | tail -n +2 | grep -v '^No' | sed 's/=>//' | awk '{ print $1 }') | while read a; do echo -n "-g $a "; done`
|
2012-02-17 02:09:21 +01:00
|
|
|
|
2012-06-05 17:43:43 +02:00
|
|
|
/usr/sbin/batctl vd json | "$(dirname "$0")"/bat2nodes.py -a "$(dirname "$0")"/aliases.json $GWS - > $DEST/nodes.json.new
|
|
|
|
/usr/sbin/batctl vd json | "$(dirname "$0")"/bat2geomap.py -a "$(dirname "$0")"/aliases.json - > $DEST/geomap.kml.new
|
2012-05-12 16:44:27 +02:00
|
|
|
|
|
|
|
mv $DEST/nodes.json.new $DEST/nodes.json
|
|
|
|
mv $DEST/geomap.kml.new $DEST/geomap.kml
|
2012-02-17 02:09:21 +01:00
|
|
|
|