PHP 8.5.2
Preview: ext2 Size: 386 B
/lib/cryptsetup/checks/ext2

#!/bin/sh

echo "WARNING: The check script $0 is deprecated. Please use check script blkid instead." >&2

not_fs=""
for fs in ext2 ext3 ext4 ext4dev; do
	/lib/cryptsetup/checks/blkid "$1" "$fs" >/dev/null || not_fs="$not_fs $fs"
done
if [ "$not_fs" = " ext2 ext3 ext4 ext4dev" ]; then
	echo " - The device $1 does not contain a valid ext2, ext3, ext4 or ext4dev filesystem."
	exit 1
fi

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
1.16 KB lrwxr-xr-x 2024-06-05 13:46:49
Edit Download
386 B lrwxr-xr-x 2024-06-05 13:46:49
Edit Download
147 B lrwxr-xr-x 2024-06-05 13:46:49
Edit Download
944 B lrwxr-xr-x 2024-06-05 13:46:49
Edit Download
146 B lrwxr-xr-x 2024-06-05 13:46:49
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).