summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/meshwizard/files/usr/bin
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2013-02-28 19:53:34 +0000
committerManuel Munz <freifunk@somakoma.de>2013-02-28 19:53:34 +0000
commit2a8c5dbf2f584567d867f5c558087a12bfc57c20 (patch)
tree9c9c5bc2f0e149805b671f849b1be86b41a824fe /contrib/package/meshwizard/files/usr/bin
parentd5fc0a0cef09ab5efc170933eeefb83097b93e36 (diff)
contrib/meshwizard: setup mapservers from profile
Diffstat (limited to 'contrib/package/meshwizard/files/usr/bin')
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh
index a465935fcd..c1e55224eb 100755
--- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh
+++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh
@@ -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