diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-08-28 14:11:43 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-08-28 14:11:43 +0000 |
commit | 7619f3051ef3f2b374886ddaf8e5e1b5fd6587e3 (patch) | |
tree | 92569a270fc2bed51149f1e40fa435eaf13d0e99 /contrib/package/meshwizard | |
parent | 53fa83c31385749b3a10a92e10e64a7866e3c387 (diff) |
contrib/meshwizard: Set community homepage in /etc/config/freifunk
Diffstat (limited to 'contrib/package/meshwizard')
-rwxr-xr-x | contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_freifunk.sh | 14 | ||||
-rwxr-xr-x | contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh | 5 |
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 |