openwrt/package/base-files/files
Marko Ratkaj a0ef1c478a functions.sh: fix default_postinst function
When we run "opkg install" on a package that installs an uci-defaults
script, functions.sh will fail to evaluate that script in its
default_postinst function.

This happens because there is no "./" present and it searches for the
file in paths specified by the PATH variable. This would work on bash,
but it will not work on ash and some other shells like sh, zsh. This
applys to the ". filename" directive used in this case.

This patch will make the path relative to the /etc/uci-defaults
directory.

Fixes: FS#1021

Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
2017-11-08 23:26:20 +01:00
..
bin base-files: fix wan6 interface config generation for pppoe 2017-09-18 13:22:58 +02:00
etc base-files: add /etc/iproute2/rt_protos 2017-02-01 15:53:20 +01:00
lib functions.sh: fix default_postinst function 2017-11-08 23:26:20 +01:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: Added a deprecation notice on wifi detect 2017-03-01 20:37:36 +01:00
usr base-files: add ARCH_PACKAGES to openwrt_release and os-release 2017-01-16 13:29:47 +01:00