Michael Schwarz edf3e32ad0 Kaputt repariert ... | 5 years ago | |
---|---|---|
.. | ||
files | 5 years ago | |
luasrc | 5 years ago | |
scripts | 5 years ago | |
Makefile | 5 years ago | |
ReadMe.md | 5 years ago |
This package generates the needed site.json
directly on the node after firmware
upgrade has been performed. This can be used, to support different sites/regions
within one firmware image. The default site.json
will be replaced by
site/extra/template.conf
which is partially replaced by values defined in
site/extra/sites.conf
and site/extra/groups.conf
.
One can generate the site.conf
before build with: GLUON_SITEDIR=$PATH ./scripts/gen-site-conf.lua
This does not belong to the site.mk
.
currentsite.current.name:
config site 'current'
option name 'ffho_abn'
Array of possible sites, containing site specific configuration different to the original site.conf and group specific config. Same configuration as in the site.conf can be done here.
site_select.group: optional
site/extra/groups.conf
the site belongs to{
{
site_name = 'Freifunk Hochstift - Altenbeken',
site_code = 'ffho_abn',
subst = {
['%%ID'] = 1,
['%%CD'] = 'abn',
},
site_select = {
group = 'ffho_ost',
},
},
...
}
Array of groups, containing group specific configuration different to the original site.conf. Same configuration as in the site.conf can be done here.
{
ffho_ost = {
subst = {
['%%V4'] = '10.132.xxx.0/21',
['%%V6'] = '2a03:2260:2342:2303::/64',
...
},
},
...
}
An array, containing the default configuration, to create site.conf out of template.conf before build.
subst = {
['%%SN'] = 'Bitte wählen',
['%%SC'] = 'ffho',
['%%SS'] = 'paderborn.freifunk.net',
...
}