mtd/util MAKEDEV,1.4,1.5
hvr at infradead.org
hvr at infradead.org
Mon Jan 17 08:35:16 EST 2005
Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv28618
Modified Files:
MAKEDEV
Log Message:
fixed wrong minor numbers for ftl/nftl/inftl devices, and un-unrolled code into a for-loop
Index: MAKEDEV
===================================================================
RCS file: /home/cvs/mtd/util/MAKEDEV,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MAKEDEV 28 Oct 2003 11:40:03 -0000 1.4
+++ MAKEDEV 17 Jan 2005 13:35:12 -0000 1.5
@@ -20,53 +20,13 @@
done
}
-mkftl a 0
-mkftl b 16
-mkftl c 32
-mkftl d 64
-mkftl e 80
-mkftl f 96
-mkftl g 112
-mkftl h 128
-mkftl i 144
-mkftl j 160
-mkftl k 176
-mkftl l 192
-mkftl m 208
-mkftl n 224
-mkftl o 240
-
-mknftl a 0
-mknftl b 16
-mknftl c 32
-mknftl d 64
-mknftl e 80
-mknftl f 96
-mknftl g 112
-mknftl h 128
-mknftl i 144
-mknftl j 160
-mknftl k 176
-mknftl l 192
-mknftl m 208
-mknftl n 224
-mknftl o 240
-
-mkinftl a 0
-mkinftl b 16
-mkinftl c 32
-mkinftl d 64
-mkinftl e 80
-mkinftl f 96
-mkinftl g 112
-mkinftl h 128
-mkinftl i 144
-mkinftl j 160
-mkinftl k 176
-mkinftl l 192
-mkinftl m 208
-mkinftl n 224
-mkinftl o 240
+M=0
+for C in a b c d e f g h i j k l m n o p; do
+ mkftl $C $M
+ mknftl $C $M
+ mkinftl $C $M
+ let M=M+16
+done
for a in `seq 0 16` ; do
mknod /dev/mtd$a c 90 `expr $a + $a`
More information about the linux-mtd-cvs
mailing list