[RFC] packages/fff: introduce fff-defaults for selected packages #97

Closed
adschm wants to merge 1 commits from adschm/firmware:fffdefaults into master

1 Commits

Author SHA1 Message Date
Adrian Schmutzler 526b290103 packages/fff: introduce fff-defaults for selected packages
In principle, the uci-defaults files are meant for providing standard
values for a specific package. Our firmware is effectively abusing
this concept by using uci-defaults to set defaults for _other_
packages, e.g. fff-dhcp setting defaults for dnsmasq.

While this works relatively well for the current firmware, it
completely breaks apart if the packages are used as a feed for
vanilla OpenWrt.
Thus, in preparation for making the packages available for such a
scenario (read: "use packages as packages"), this moves all custom
defaults we set for other packages to a directory "fff-defaults".
If the firmware is built with buildscript (and sets the new
FFF_VARIANT variable), this is copied back to uci-defaults as usual.
But without that script, we now have "our" config in a dedicated
directory where we can use it otherwise as well.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-01-30 21:10:26 +01:00