~siretart/cryptsetup/debian

« back to all changes in this revision

Viewing changes to debian/checks/un_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:
20
20
 
21
21
vol_id=`/lib/udev/vol_id -t $dev 2>&1`
22
22
 
23
 
if test "$vol_id" != "$dev: unknown volume type" -a "$vol_id" != "minix" -a -z "$fs"; then
 
23
if [ "$vol_id" != "$dev: unknown volume type" ] && [ "$vol_id" != "minix" ] && [ -z "$fs" ]; then
24
24
  echo " - The device $dev contains a valid filesystem type $vol_id."
25
25
  exit 1
26
 
elif test -n "$fs" -a "$vol_id" = "$fs"; then
 
26
elif [ -n "$fs" ] && [ "$vol_id" = "$fs" ]; then
27
27
  echo " - The device $dev contains a filesystem type $fs."
28
28
  exit 1
29
29
fi