diff options
author | Marko Ratkaj <marko.ratkaj@sartura.hr> | 2017-11-07 06:48:09 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-11-08 23:26:20 +0100 |
commit | a0ef1c478ae56ce8cff1ce925caab527c5992d3c (patch) | |
tree | cc7415b72537c9bd66db9a4f18bc228d437462e9 /toolchain/binutils | |
parent | 6b6578feec74dfe1f5767c573d75ba08cc57c885 (diff) | |
download | mtk-20170518-a0ef1c478ae56ce8cff1ce925caab527c5992d3c.zip mtk-20170518-a0ef1c478ae56ce8cff1ce925caab527c5992d3c.tar.gz mtk-20170518-a0ef1c478ae56ce8cff1ce925caab527c5992d3c.tar.bz2 |
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>
Diffstat (limited to 'toolchain/binutils')
0 files changed, 0 insertions, 0 deletions