Some fixes for karmic
[mapsector.git] / lib / 50_map_partition.sh
index ec5fc2b..76cae0f 100644 (file)
@@ -1,6 +1,6 @@
 detect_partition()
 {
-    [ -z "`fdisk -l $device 2>&1 >/dev/null`" ]
+    file -bks $device | grep -qF partition
 }
 
 describe_partition()