From 7619f3051ef3f2b374886ddaf8e5e1b5fd6587e3 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 28 Aug 2011 14:11:43 +0000 Subject: [PATCH] contrib/meshwizard: Set community homepage in /etc/config/freifunk --- .../usr/bin/meshwizard/helpers/setup_freifunk.sh | 14 ++++++++++++++ .../meshwizard/files/usr/bin/meshwizard/wizard.sh | 5 +++++ 2 files changed, 19 insertions(+) create mode 100755 contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_freifunk.sh 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 -- 2.25.1