#!/bin/bash -efu
# SPDX-License-Identifier: GPL-3.0-or-later

. sh-functions

for m in $MOUNTPOINTS; do
	fstype="$(sys_findmnt -n -o FSTYPE --target "$m")"
	type -P "fsck.$fstype" ||:

	case "$fstype" in
		ext2|ext3|ext4*)
			conf="$SYSCONFDIR/e2fsck.conf"
			[ ! -f "$conf" ] || printf '%s\n' "$conf"
			;;
	esac
done
type -P fsck ||:
