busybox-initramfs: only run fsck if installed

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-05-25 13:56:29 +02:00
parent 9efdc51beb
commit e57640e355

View File

@ -275,7 +275,9 @@
MOUNT_CMD="mount_common"
MOUNT_TARGET="$1"
# check filesystem
/sbin/fsck -a $1 &>/dev/null
if [ -x /sbin/fsck ]; then
/sbin/fsck -a $1 &>/dev/null
fi
;;
CIFS=*|SMB=*)
MOUNT_CMD="mount_cifs"