debian/checks/ext2
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | echo "WARNING: The check script $0 is deprecated. Please use check script blkid instead." >&2 |
| 4 | |
| 5 | not_fs="" |
| 6 | for fs in ext2 ext3 ext4 ext4dev; do |
| 7 | /lib/cryptsetup/checks/blkid "$1" "$fs" >/dev/null || not_fs="$not_fs $fs" |
| 8 | done |
| 9 | if [ "$not_fs" = " ext2 ext3 ext4 ext4dev" ]; then |
| 10 | echo " - The device $1 does not contain a valid ext2, ext3, ext4 or ext4dev filesystem." |
| 11 | exit 1 |
| 12 | fi |