You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jo-Philipp Wich 7f69458296 base-files: rework postinstall uci-defaults handling
Some package postinstall operations, e.g. those emitted by the LuCI build
system, source and delete the uci-defaults themselves upon package insteall,
causing the generic defaults apply code to trigger shell errors like:

    .../luci-app-ddns.postinst: .: line 130: can't open './40_luci-ddns'

Rework the generic apply code to check the existence of the uci-defaults
script before trying to source it, use sed to prefilter the list of entries
from the control file and perform the directory change in a subshell,
avoiding the need for cd $OLDPWD.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
..
functions base-files: add function ucidef_set_interface_raw to enable default configuration on interfaces other than lan and wan. 8 years ago
preinit base-files: fix some failsafe issues 8 years ago
upgrade x86: generalize partition discovery for sysupgrade 8 years ago
functions.sh base-files: rework postinstall uci-defaults handling 8 years ago