openwrtv3/package/base-files/files
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>
2016-05-27 10:27:45 +02:00
..
bin base-files: Fix config_generate when there are no switch VLANs or ports configured in board.json. 2016-05-11 17:06:54 +02:00
etc Centralize setting of all version info to include/version.mk 2016-05-24 13:30:58 +02:00
lib base-files: rework postinstall uci-defaults handling 2016-05-27 10:27:45 +02:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin x86: preserve partition table on sysupgrade 2016-02-09 12:33:17 +00:00
usr/libexec image / basefiles: make console password configurable 2016-04-18 21:53:07 +02:00