~siretart/cryptsetup/debian

« back to all changes in this revision

Viewing changes to debian/checks/vol_id

  • Committer: Reinhard Tartler
  • Date: 2008-06-13 19:34:53 UTC
  • Revision ID: siretart@tauware.de-20080613193453-ywl35m67ce8pzvp3
import cryptsetup_1.0.6-1.dsc

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
vol_id=`/lib/udev/vol_id -t $dev 2>&1`
23
23
 
24
 
if test "$vol_id" = "$dev: unknown volume type" -a -z "$fs"; then
 
24
if [ "$vol_id" = "$dev: unknown volume type" ] && [ -z "$fs" ]; then
25
25
  echo " - The device $dev does not contain a known filesystem."
26
26
  exit 1
27
 
elif test "$vol_id" != "$dev: unknown volume type" -a "$vol_id" != "minix" -a "$fs" = "none"; then
 
27
elif [ "$vol_id" != "$dev: unknown volume type" ] && [ "$vol_id" != "minix" ] && [ "$fs" = "none" ]; then
28
28
  echo " - The device $dev contains a valid filesystem type $vol_id."
29
29
  exit 1
30
 
elif test -n "$fs" -a "$vol_id" != "$fs"; then
 
30
elif [ -n "$fs" ] && [ "$vol_id" != "$fs" ]; then
31
31
  echo " - The device $dev does not contain a filesystem type $fs."
32
32
  exit 1
33
33
fi