2 # These functions read the settings we need for configuration of the router
5 # read default values from the 3 relevant config files and export them
6 # into the environment. Later loaded configs overwrite earlier ones. The
7 # The ordering here is from most generic to most specific:
8 # freifunk (most generic defaults)
9 # profile_* (community defaults)
10 # nodes custom config from meshwizard config file
17 local allowed_section_types="widget"
18 local allowed_section_names="
26 olsr_interfacedefaults
42 if [ "$type" = "widget" ]; then
43 widgets=$(add_to_list "$widgets" "$name")
46 if ([ -n "$name" ] && is_in_list "$allowed_section_names" $name) \
47 || is_in_list "$allowed_section_types" $type ; then
51 export "${CONFIG_SECTION}_${option}"="$value"
54 option_cb() { return; }
58 config_load profile_${community}
59 config_load meshwizard
60 export widgets="$widgets"