From: Manuel Munz Date: Sun, 28 Aug 2011 14:11:43 +0000 (+0000) Subject: contrib/meshwizard: Set community homepage in /etc/config/freifunk X-Git-Tag: 0.11.0~1867 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7619f3051ef3f2b374886ddaf8e5e1b5fd6587e3;p=oweals%2Fluci.git contrib/meshwizard: Set community homepage in /etc/config/freifunk --- 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