block-mount: fsck.sh should only call pi_include() if dir /lib/functions/fsck exists.
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Wed, 6 Apr 2011 20:50:06 +0000 (20:50 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Wed, 6 Apr 2011 20:50:06 +0000 (20:50 +0000)
/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

package/block-mount/files/fsck.sh

index 3011160a44568305d2e4f69e5e705f716bc2d0ae..9cba01dafb0856abbb48c0f0cd1acdee600b7a4e 100644 (file)
@@ -30,5 +30,5 @@ libmount_fsck() {
 
 libmount_known_fsck=""
 
-pi_include /lib/functions/fsck
+[ -d /lib/functions/fsck ] && pi_include /lib/functions/fsck