diff options
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 }')" |