summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-04-06 20:50:06 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-04-06 20:50:06 +0000
commit5f6a87f6c410622487a0a3ba9197e2a3418c4a75 (patch)
treed12d2350f9450a57e674b3a14b126df3f775c3fc
parent2238b949f130f5b2089986ced62cce2e8dff4d75 (diff)
downloadmtk-20170518-5f6a87f6c410622487a0a3ba9197e2a3418c4a75.zip
mtk-20170518-5f6a87f6c410622487a0a3ba9197e2a3418c4a75.tar.gz
mtk-20170518-5f6a87f6c410622487a0a3ba9197e2a3418c4a75.tar.bz2
block-mount: fsck.sh should only call pi_include() if dir /lib/functions/fsck exists.
/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.vels@team-embedded.nl> SVN-Revision: 26503
-rw-r--r--package/block-mount/files/fsck.sh2
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