contrib/meshwizard: setup mapservers from profile
authorManuel Munz <freifunk@somakoma.de>
Thu, 28 Feb 2013 19:53:34 +0000 (19:53 +0000)
committerManuel Munz <freifunk@somakoma.de>
Thu, 28 Feb 2013 19:53:34 +0000 (19:53 +0000)
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh

index a465935fcdba734f70da93c7fa38b7fa5d2fced2..c1e55224eba7909a6e3bc181f2de2f0ba7707c72 100755 (executable)
@@ -19,7 +19,16 @@ if [ -n "$(uci -q get meshwizard.community)" ]; then
        set_defaults "community_" freifunk.community
        uci -q delete meshwizard.community
 fi
+
 [ -n "$profile_homepage" ] && uci set freifunk.community.homepage="$profile_homepage"
+
+[ -n "$profile_mapserver" ] && {
+       uci -q delete freifunk.community.mapserver
+       for m in $profile_mapserver; do
+               uci add_list freifunk.community.mapserver="$m"
+       done
+}
+
 uci_commitverbose "Setup community" freifunk
 
 if [ -n "$(uci -q get meshwizard.contact)" ]; then