2012-02-17 02:09:21 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DEST=$1
|
|
|
|
|
2012-02-17 03:50:48 +01:00
|
|
|
GWS=`/usr/sbin/batctl gwl -n | tail -n +2 | sed 's/=>//' | awk '{ print $1 }'|while read a;do echo -n "-g $a ";done`
|
2012-02-17 02:09:21 +01:00
|
|
|
|
|
|
|
mkdir $DEST
|
|
|
|
|
|
|
|
cp html/* $DEST/
|
|
|
|
|
2012-02-17 03:10:46 +01:00
|
|
|
ssh 188.138.99.158 batctl vd json|python ./bat2nodes.py -a aliases.json $GWS - > $DEST/nodes.json
|