diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-09-24 20:47:47 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-09-24 20:47:47 +0000 |
commit | dc46ee35b85bd6dbda23593ee21bd4489041880c (patch) | |
tree | f3603711bd6b65a193d4868ec3e9489ee00e480a /contrib/package/freifunk-mapupdate/files | |
parent | 3484ece05ece2e3997f763cf679f82df16609f13 (diff) |
contrib/freifunk-mapupdate: Add mygooglemapscoords.txt for compatibility with freifunk firmware
Diffstat (limited to 'contrib/package/freifunk-mapupdate/files')
-rwxr-xr-x | contrib/package/freifunk-mapupdate/files/usr/sbin/ff_mapupdate.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/package/freifunk-mapupdate/files/usr/sbin/ff_mapupdate.sh b/contrib/package/freifunk-mapupdate/files/usr/sbin/ff_mapupdate.sh index 53225497e7..40a077f154 100755 --- a/contrib/package/freifunk-mapupdate/files/usr/sbin/ff_mapupdate.sh +++ b/contrib/package/freifunk-mapupdate/files/usr/sbin/ff_mapupdate.sh @@ -34,8 +34,13 @@ FFNOTE="$(uci -q get freifunk.contact.note)" [ -n "$FFNOTE" ] && NOTE="$NOTE $FFNOTE" NOTE="<h3><a href='http://$OLSR_IP' target='_blank'>$HOSTNAME</a></h3><p>$NOTE" NOTE=`echo -e "$NOTE" | sed -e 's/\ /%20/g' -e 's/&/%26/g' -e 's/"/%22/g'` + UPDATESTRING="$(echo $SELF |awk '{ FS=",";print $2 }'), $(echo $SELF |awk '{ FS=",";print $3 }')" +# write our coordinates to mygooglemapscoords.txt to make Freifunk Firmware happy +echo "$UPDATESTRING" > /tmp/mygooglemapscoords.txt +[ ! -L /www/mygooglemapscoords.txt ] && ln -s /tmp/mygooglemapscoords.txt /www/mygooglemapscoords.txt + # get neighbor Info (lat, lon, lq) while read line; do NEIGHUPD="$(echo $line |awk '{ FS=","; print $6 }'), $(echo $line |awk '{ FS=","; print $7 }'), $(echo $line |awk '{ FS=",";print $4 }')" |