From 1f8a1cb18e0bc66c435170d575a922955e004eec Mon Sep 17 00:00:00 2001 From: vermaden Date: Mon, 10 Dec 2018 10:53:38 +0100 Subject: [PATCH] Add fsck.exfat and set fsck.extX instead e2fsck for extX filesystems. --- README | 4 ++++ automount | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README b/README index f421ddc..b004a0d 100644 --- a/README +++ b/README @@ -45,6 +45,10 @@ C H A N G E L O G VERSION 1.6.0 (CURRENT) Fix long boot with devd(8) because of ugen(4) devices. +Add fsck.exfat to the exFAT filesystem. +Set fsck.ext2 instead of e2fsck to the ext2 filesystem. +Set fsck.ext3 instead of e2fsck to the ext3 filesystem. +Set fsck.ext4 instead of e2fsck to the ext4 filesystem. ------------------------------------------------------------------------------- diff --git a/automount b/automount index e21a15a..26a4347 100644 --- a/automount +++ b/automount @@ -568,7 +568,7 @@ case ${1} in (EXT2) __create_mount_point ${DEV} __wait_for_device ${DEV} - e2fsck -y ${DEV} \ + fsck.ext2 -y ${DEV} \ | while read LINE do __log "${DEV}: fsck.ext2 ${LINE}" @@ -587,7 +587,7 @@ case ${1} in (EXT3) __create_mount_point ${DEV} __wait_for_device ${DEV} - e2fsck -y ${DEV} \ + fsck.ext3 -y ${DEV} \ | while read LINE do __log "${DEV}: fsck.ext3 ${LINE}" @@ -606,7 +606,7 @@ case ${1} in (EXT4) __create_mount_point ${DEV} __wait_for_device ${DEV} - e2fsck -y ${DEV} \ + fsck.ext4 -y ${DEV} \ | while read LINE do __log "${DEV}: fsck.ext4 ${LINE}" @@ -625,6 +625,12 @@ case ${1} in (EXFAT) __create_mount_point ${DEV} __wait_for_device ${DEV} + fsck.exfat ${DEV} \ + | while read LINE + do + __log "${DEV}: fsck.exfat ${LINE}" + done + __wait_for_device ${DEV} if [ "${USER}" != 0 ] then USEROPTS="-o uid=${UID} -o gid=${GID}"