File: ext2

package info (click to toggle)
cryptsetup 2%3A1.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,396 kB
  • sloc: sh: 14,235; ansic: 10,811; xml: 591; makefile: 380; python: 89; perl: 70; sed: 16
file content (12 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

echo "WARNING: The check script $0 is depreciated. 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