diff options
Diffstat (limited to 'contrib')
-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 |