aboutsummaryrefslogtreecommitdiffstats
path: root/package/block-mount
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-04-06 20:50:06 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-04-06 20:50:06 +0000
commit620f280b13a2b58d1250f55060c9b699d5cb79f6 (patch)
treee905765fc796a2792ae71a1b8f254bcbcb65fc1d /package/block-mount
parent81120132960507edcaa2106206f215f2ea9c3d64 (diff)
downloadmaster-187ad058-620f280b13a2b58d1250f55060c9b699d5cb79f6.tar.gz
master-187ad058-620f280b13a2b58d1250f55060c9b699d5cb79f6.tar.bz2
master-187ad058-620f280b13a2b58d1250f55060c9b699d5cb79f6.zip
[package] 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26503 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/block-mount')
-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 3011160a44..9cba01dafb 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