openwrtv4/package/base-files/files
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
..
bin base-files: fix wan6 interface config generation for pppoe 2017-09-18 09:57:34 +02:00
etc base-files: add interval option to netdev LED trigger configuration 2017-11-03 20:04:52 +01:00
lib functions.sh: fix default_postinst function 2017-11-08 23:18:22 +01:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: automatically handle paths and symlinks for RAMFS_COPY_BIN 2017-07-11 17:26:32 +02:00
usr base-files: suppress uci not found output in login.sh 2017-08-04 23:11:19 +02:00