/etc/functions.sh:pi_include() checks if the argument exists and prints a warning if not. To prevent this warning if package block-mount is installed but not package e2fsprogs, the script should check if this directory exists before calling pi_include()
A wrong patch to suppress this warning was previously posted with subject: [PATCH] Fix typo in name of to be included file Signed-off-by: Mark Vels <mark.v...@team-embedded.nl> --- package/block-mount/files/fsck.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/package/block-mount/files/fsck.sh b/package/block-mount/files/fsck.sh index 3011160..9cba01d 100644 --- a/package/block-mount/files/fsck.sh +++ b/package/block-mount/files/fsck.sh @@ -30,5 +30,5 @@ libmount_fsck() { libmount_known_fsck="" -pi_include /lib/functions/fsck +[ -d /lib/functions/fsck ] && pi_include /lib/functions/fsck -- 1.7.0.4 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel