From dc46ee35b85bd6dbda23593ee21bd4489041880c Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sat, 24 Sep 2011 20:47:47 +0000 Subject: contrib/freifunk-mapupdate: Add mygooglemapscoords.txt for compatibility with freifunk firmware --- contrib/package/freifunk-mapupdate/files/usr/sbin/ff_mapupdate.sh | 5 +++++ 1 file changed, 5 insertions(+) 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="

$HOSTNAME

$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 }')" -- cgit v1.2.3