ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect

sparky cvs at pld-linux.org
Tue Feb 28 20:35:34 CET 2006


Author: sparky
Date: Tue Feb 28 20:35:29 2006
New Revision: 7051

Modified:
   ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect
Log:
- more compact way


Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect	(original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/hw-detect	Tue Feb 28 20:35:29 2006
@@ -76,25 +76,17 @@
 		verbose 4 -n "       +-PC partition, "
 		type="$(egrep "^$dev[ 	]" /tmp/parts.pc | cut -c 56-)"
 		case "$(tl $type)" in
+			*ext*d*)
+				mnt=
+				;;
 			*linux*swap)
 				mnt=
 				echo "#$dev swap swap defaults 0 0" >> /etc/fstab
 				verbose 4 "type: swap (not activating)"
 				;;
-			*linux*raid*)
-				mnt=
-				verbose 4 -Y "type: Linux RAID (skipping)"
-				;;
-			*linux*lvm*)
-				mnt=
-				verbose 4 -Y "type: Linux LVM (skipping)"
-				;;
-			*linux*plaintext*)
-				mnt=
-				verbose 4 -Y "type: Linux plaintext (skipping)"
-				;;
-			*linux*extended*)
+			*linux*raid*|*linux*lvm*|*linux*plaintext*)
 				mnt=
+				verbose 4 -Y "type: $type (skipping)"
 				;;
 			*linux*)
 				mnt="${mnt}_linux"


More information about the pld-cvs-commit mailing list