Browse Source

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 <[email protected]>

SVN-Revision: 26503
Vasilis Tsiligiannis 14 năm trước cách đây
mục cha
commit
5f6a87f6c4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      package/block-mount/files/fsck.sh

+ 1 - 1
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