2 # This reads the settings we need to have to configure everything
3 # Argument $1: community
7 # reads variables from uci files, parameter $1 is the section
9 uci
-q show
$1 | cut
-d "." -f 2-100 |
grep "\." |
sed -e 's/^\([a-z_]*\)\./\1_/g' -e 's/=\(.*\)$/="\1"/g'
12 # read default values from /etc/config/freifunk
13 for v
in system wifi_device wifi_iface interface
alias dhcp olsr_interface olsr_interfacedefaults zone_freifunk include
; do
17 # now read all values from the selected community profile, will override some values from the defaults before
18 for v
in system wifi_device wifi_iface interface
alias dhcp olsr_interface olsr_interfacedefaults profile zone_freifunk include
; do
19 get_var profile_
$community.
$v
22 # read values from meshwizard
23 for v
in system luci_main contact community wan lan
; do