openwrtv4/package/base-files/files/lib
Marko Ratkaj 73c745f64f 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:18:22 +01:00
..
functions base-files: make ucidef_set_led_rssi offset and factor optional 2017-06-17 15:38:19 +02:00
preinit base-files: drop unused preinit_echo function 2017-08-09 23:23:06 +02:00
upgrade base-files: upgrade: don't loop forever trying to kill processes 2017-07-20 21:41:33 +02:00
functions.sh functions.sh: fix default_postinst function 2017-11-08 23:18:22 +01:00