summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-08-28 14:11:43 +0000
committerManuel Munz <freifunk@somakoma.de>2011-08-28 14:11:43 +0000
commit7619f3051ef3f2b374886ddaf8e5e1b5fd6587e3 (patch)
tree92569a270fc2bed51149f1e40fa435eaf13d0e99
parent53fa83c31385749b3a10a92e10e64a7866e3c387 (diff)
contrib/meshwizard: Set community homepage in /etc/config/freifunk
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_freifunk.sh14
-rwxr-xr-xcontrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh5
2 files changed, 19 insertions, 0 deletions
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_freifunk.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_freifunk.sh
new file mode 100755
index 000000000..7c66e638b
--- /dev/null
+++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_freifunk.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Sets values in /etc/config/freifunk
+
+. /etc/functions.sh
+. $dir/functions.sh
+
+# Set community homepage
+hp=$(uci -q get profile_$community.profile.homepage)
+
+if [ -n "$hp" ]; then
+ uci set freifunk.community.homepage="$hp"
+fi
+
+
diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh
index d6d7fb7cc..a5f9a2fb9 100755
--- a/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh
+++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh
@@ -50,8 +50,13 @@ done < /tmp/meshwizard.tmp
$dir/helpers/setup_dnsmasq.sh
# system
+ echo "++++ system config"
$dir/helpers/setup_system.sh
+# freifunk
+ echo "++++ /etc/config/freifunk config"
+ $dir/helpers/setup_freifunk.sh
+
# Configure found networks
for net in $networks; do