summaryrefslogtreecommitdiffstats
path: root/source/a/devs/makedev_2.3.1-46.2.diff
blob: 87ad22f85ff1f38f9526fcf57068d78511d798fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
--- makedev-2.3.1.orig/MAKEDEV.man
+++ makedev-2.3.1/MAKEDEV.man
@@ -124,8 +124,7 @@
 .BI ttyC x
 and the corresponding dial-out device is
 .BI cub x 
-By default devices for 7 lines are created, but this can be changed to
-15 by removing the comment.
+Devices for 32 lines are created.
 .TP
 .B Pseudo Terminals
 .TP
@@ -387,4 +386,4 @@
 Linux Allocated Devices, maintained by H.\ Peter Anvin,
 <Peter.Anvin@linux.org>.
 .SH AUTHOR
-Nick Holloway, <Nick.Hollowa
\ No newline at end of file
+Nick Holloway, <Nick.Hollowa
--- makedev-2.3.1.orig/MAKEDEV
+++ makedev-2.3.1/MAKEDEV
@@ -10,25 +10,38 @@
 # system, and you may change the permissions to suit your preference.  These
 # lines _must_ be of the format "user group perm".
 
- public="  root sys    666"
- system="  root sys    660"
-   kmem="  root kmem   660"
-    tty="  root tty    666"
-   cons="  root tty    622"	# 622 for console?
-    vcs="  root sys    600"
-dialout="  root uucp   660"
-  mouse="  root sys    666"
-printer="  root daemon 660"
- floppy="  root floppy 660"
-   disk="  root disk   660"
-   scsi="  root sys    600"
-  cdrom="  root disk   660"
-   tape="  root disk   660"
-  audio="  root sys    666"
-  ibcs2="  root sys    666"
-scanner="  root sys    666"
+ public="  root root   0666"
+private="  root root   0600"
+ system="  root root   0660"
+   kmem="  root kmem   0640"
+    tty="  root tty    0666"
+   cons="  root tty    0622"
+    vcs="  root root   0600"
+dialout="  root dialout 0660"
+  mouse="  root root   0660"
+printer="  root lp     0660"
+ floppy="  root floppy 0660"
+   disk="  root disk   0660"
+   scsi="  root root   0600"
+  cdrom="  root cdrom  0660"
+   tape="  root tape   0660"
+  audio="  root audio  0660"
+  video="  root video  0660"
+  ibcs2="  root root   0666"
+scanner="  root root   0666"
+   coda="  root root   0600"
+  ipsec="  root root   0200"
+readable="  root root   0444"
 
-MAXVT=8
+MAXVT=63
+
+# defaults for $major_*
+major_ide0=3
+major_ide1=22
+major_sd=8
+major_lp=6
+
+# Remark: OSS/Linux becomes major_OSSLinux
 
 #---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
 
@@ -94,41 +107,30 @@
 
 #---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
 
-# For bash and ksh, we can use faster builtin routines to do manipulation,
-# otherwise (ash) fall back to slower method using `expr'.
-# The extra level of indirection using `eval' is necessary a) for ksh, and
-# b) to get past ash.
+# Debian allows us to assume /bin/sh is a POSIX compliant shell, so go for it!
 
-if [ "$RANDOM" != "$RANDOM" ]
-then
-	math () {
-		eval echo "\$(($*))"
-	}
-	index () {	# index string c
-		eval "I=\${1%$2*}"
-		eval echo "\${#I}"
-	}
-	suffix () {
-	    eval echo "\${1#$2}"
-	}
-	strip () {
-		eval echo "\${1% $2 *} \${1#* $2 }"
-	}
-else
-	math () {
-		expr "$@"
-	}
-	index () {	# index string c
-		expr $1 : ".*$2" - 1
-	}
-	suffix () {
-		expr "$1" : "$2\(.*\)"
-	}
-	strip () {
-		echo "[$1][$2]" >&2
-		echo "`expr \"$1\" : \"\(.*\) $2 \"` `expr \"$1\" : \".* $2 \(.*\)\"`"
-	}
-fi
+math () {
+	eval echo "\$(($*))"
+}
+index () {	# index string c
+	eval "I=\${1%$2*}"
+	eval echo "\${#I}"
+}
+suffix () {
+	eval echo "\${1#$2}"
+}
+strip () {
+	eval echo "\${1% $2 *} \${1#* $2 }"
+}
+first () {
+	eval echo "\${1:0:1}"
+}
+second () {
+	eval echo "\${1:1:1}"
+}
+substr () {
+	echo $1 | cut -c $2
+}
 
 #---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#
 
@@ -140,6 +142,7 @@
 	exec 3<$procfs/devices
 	while read major device <&3
 	do
+		device=`echo $device|tr -d /`
 		case "$major" in
 			Character|Block|'')
 				;;
@@ -166,7 +169,7 @@
 	while [ $# -ne 0 ]
 	do
 		case "$1" in
-			mem|tty|ttyp|cua|cub)	;;
+			mem|tty|ttyp|cua|cub|cui)	;;
 			hd)	(for d in a b c d e f g h ; do
 					echo -n hd$d " "
 				 done) ; echo
@@ -175,13 +178,16 @@
 			ide1)	echo hdc hdd ;;
 			ide2)	echo hde hdf ;;
 			ide3)	echo hdg hdh ;;
-			sd)	echo sda sdb ;;
-			sr)	echo scd0 ;;
+			sd)	echo sda sdb sdc sdd ;;
+			sg)	echo sg ;;
+			sr)	echo scd ;;
 			st)	echo st0 ;;
 			xd)	echo xda xdb ;;
+			ad)	echo ada adb ;;
 			fd)	echo fd0 fd1 ;;
 			lp)	echo lp ;;
 			mt)	echo ftape ;;
+			qft)	echo ftape ;;
 			loop)	echo loop ;;
 			md)	echo md ;;
 			ibcs2)	echo ibcs2 ;;
@@ -191,13 +197,31 @@
 			ac4096)		echo ac4096 ;;
 			hw)	echo helloworld ;;
 			sbpcd | sbpcd[123])	echo $1 ;;
-			Joystick)	echo js ;;
+			joystick)	echo js ;;
 			apm_bios)	echo apm ;;
 			dcf)		echo dcf ;;
 			aztcd)		echo aztcd ;;
+			cm206cd)	echo cm206cd ;;
+			gscd)		echo gscd ;;
 			pcmcia)	;; # taken care of by its own driver
 			ttyC)	echo cyclades ;;
+			isdn)	echo isdnmodem isdnbri dcbri ;;
 			vcs)	;;
+			pty)	echo pty ;;
+			misc)	echo misc ;;
+			3dfx)	echo 3dfx ;;
+			agpgart)	echo agpgart ;;
+			ipmi|ipmikcs)	echo ipmi ;;
+			fb)	echo fb ;;
+			nb)	echo nb0 nb1 ;;
+			netlink)	echo netlink ;;
+			hamradio)	echo hamradio ;;
+			snd)	;;
+			ptm)	;;
+			pts)	;;
+			ttyS)	echo ttyS0 ttyS1 ttyS2 ttyS3 ;;
+			ttyI)	echo ttyI0 ttyI1 ttyI2 ttyI3 ;;
+			ircomm|irlpt)	irda ;;
 			*)	echo "$0: don't know what \"$1\" is" >&2 ;;
 		esac
 		shift
@@ -206,20 +230,148 @@
 
 for arg
 do
+#	case `cvt $arg` in
 	case $arg in
 	generic)
+		# pick the right generic-<arch> using dpkg's knowledge
+		case `dpkg --print-installation-architecture` in
+			alpha)
+				$0 $opts generic-alpha
+				;;
+			arm)
+				$0 $opts generic-arm
+				;;
+			i386)
+				$0 $opts generic-i386
+				;;
+			m68k)
+				$0 $opts generic-m68k
+				;;
+			powerpc)
+				$0 $opts generic-powerpc
+				;;
+			sparc)
+				$0 $opts generic-sparc
+				;;
+			*)
+				echo "$0: no support for generic-$arg" >&2
+				exit 1
+				;;
+		esac
+		;;
+	generic-alpha)
 		$0 $opts std
 		$0 $opts fd
 		$0 $opts fd0 fd1
-		$0 $opts hda hdb
+		$0 $opts hda hdb hdc hdd
+		$0 $opts xda xdb
+		$0 $opts sda sdb sdc sdd
+		$0 $opts scd0 scd1
+		$0 $opts st0 st1
+		$0 $opts sg
+		$0 $opts pty
+		$0 $opts console
+		$0 $opts ttyS0 ttyS1 ttyS2 ttyS3
+		$0 $opts busmice
+		$0 $opts lp
+		$0 $opts par
+		$0 $opts audio
+		$0 $opts fb
+		;;
+	generic-arm)
+		$0 $opts std
+		$0 $opts fd
+		$0 $opts fd0 fd1
+		$0 $opts hda hdb hdc hdd
+		$0 $opts xda xdb
+		$0 $opts sda sdb sdc sdd
+		$0 $opts scd0 scd1
+		$0 $opts st0 st1
+		$0 $opts sg
+		$0 $opts pty
+		$0 $opts console
+		$0 $opts ttyS0 ttyS1 ttyS2 ttyS3
+		$0 $opts busmice
+		$0 $opts lp
+		$0 $opts par
+		$0 $opts audio
+		$0 $opts fb
+		;;
+	generic-i386)
+		$0 $opts std
+		$0 $opts fd
+		$0 $opts fd0 fd1
+		$0 $opts hda hdb hdc hdd
 		$0 $opts xda xdb
-		$0 $opts sda sdb
+		$0 $opts sda sdb sdc sdd
+		$0 $opts scd0 scd1
+		$0 $opts st0 st1
+		$0 $opts sg
 		$0 $opts pty
 		$0 $opts console
 		$0 $opts ttyS0 ttyS1 ttyS2 ttyS3
 		$0 $opts busmice
 		$0 $opts lp
 		$0 $opts par
+		$0 $opts audio
+		$0 $opts fb
+		;;
+	generic-m68k)
+		$0 $opts std
+		$0 $opts fd
+		$0 $opts fd0-bare fd1-bare
+		$0 $opts hda hdb
+		$0 $opts sda sdb sdc sdd
+		$0 $opts sg
+		$0 $opts ada adb
+		$0 $opts pty
+		$0 $opts console
+		$0 $opts ttyS0 ttyS1 ttyS2 ttyS3 ttyS5
+		$0 $opts m68k-mice
+		$0 $opts lp
+		$0 $opts par
+		$0 $opts nvram
+		$0 $opts audio
+		$0 $opts fb
+		;;
+	generic-powerpc)
+		$0 $opts std
+		$0 $opts fd
+		$0 $opts fd0-bare fd1-bare
+		$0 $opts hda hdb hdc hdd
+		$0 $opts sda sdb sdc sdd
+		$0 $opts scd0 scd1
+		$0 $opts st0 st1
+		$0 $opts sg
+		$0 $opts pty
+		$0 $opts console
+		$0 $opts ttyS0 ttyS1 ttyS2 ttyS3
+		$0 $opts busmice
+		$0 $opts lp
+		$0 $opts par
+		$0 $opts nvram
+		$0 $opts audio
+		$0 $opts adb
+		$0 $opts fb
+		$0 $opts rtc
+		;;
+	generic-sparc)
+		$0 $opts std
+		$0 $opts fd0-bare fd1-bare
+		$0 $opts hda hdb
+		$0 $opts sda sdb sdc sdd
+		$0 $opts scd0 scd1
+		$0 $opts st0 st1
+		$0 $opts sg
+		$0 $opts pty
+		$0 $opts console
+		$0 $opts ttyS0 ttyS1 ttyS2 ttyS3
+		$0 $opts fb
+		$0 $opts rtc
+		makedev kbd  c 11 0 $cons
+		makedev sunmouse  c 10 6 $mouse
+		symlink sunmouse mouse
+		makedev openprom  c 10 139 $private
 		;;
 	local)
 		$0.local $opts
@@ -232,22 +384,71 @@
 		makedev zero c 1 5 $public
 		symlink core $procfs/kcore
 		makedev full c 1 7 $public
-		$0 ram
+		makedev random c 1 8 $readable
+		makedev urandom c 1 9 $readable
 		makedev tty  c 5 0 $tty
+		$0 $opts ram
+		$0 $opts loop
+		;;
+	hamradio)
+		$0 $opts scc
+		$0 $opts bc
+		;;
+	scc)
+		for unit in 0 1 2 3 4 5 6 7 
+		do
+			makedev scc$unit c 34 $unit $system
+		done
+		;;
+	bc)	
+		for unit in 0 1 2 3
+		do
+			makedev bc$unit c 51 $unit $system
+		done
+		;;
+	random)
+		makedev random c 1 8 $readable
+		;;
+	urandom)
+		makedev urandom c 1 9 $readable
 		;;
 	ram)
-		for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ; do
+		for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ; do
 			makedev ram$i  b 1 $i $disk
 		done
-		ln -sf ram1 ram
+		symlink ram ram1
 		;;
-	console)
-		major=`Major vcs`	# not fatal
-		# console
+	ram[0-9]|ram1[0-6])
+		unit=`suffix $arg ram`
+		makedev ram$unit b 1 $unit $disk
+		;;
+	initrd)
+		makedev initrd b 1 250 $disk
+		;;
+	consoleonly)
 		makedev tty0 c 4 0 $cons
-		symlink console tty0
+		#	new kernels need a device, old ones a symlink... sigh
+		kern_rev1=`uname -r | awk -F'.' '{print $1}'`
+		kern_rev2=`uname -r | awk -F'.' '{print $2}'`
+		if [ $kern_rev1 -gt 2 ]
+		then
+			makedev console c 5 1 $cons
+		else
+			if [ $kern_rev1 -eq 2 -a $kern_rev2 -ge 1 ]
+			then
+				makedev console c 5 1 $cons
+			else
+				symlink console tty0
+			fi
+		fi
+		;;
+	console)
+		$0 $opts consoleonly
+		major=`Major vcs 7`       # not fatal
 		[ "$major" ] && makedev vcs0 c $major 0 $vcs
-		[ "$major" ] && makedev vcsa c $major 128 $vcs
+		symlink vcs vcs0
+		[ "$major" ] && makedev vcsa0 c $major 128 $vcs
+		symlink vcsa vcsa0
 		# individual vts
 		line=1
 		while [ $line -le $MAXVT -a $line -le 63 ]
@@ -258,6 +459,32 @@
 			line=`math $line + 1`
 		done
 		;;
+	adb)
+		# pick the right arch device using dpkg's knowledge
+		case `dpkg --print-installation-architecture` in
+			powerpc)
+				# ADB bus devices (char)
+				makedev adb c 56 0 $mouse
+				makedev adbmouse c 10 10 $mouse
+				;;
+			m68k)
+				# ACSI disk 2, whole device (block)
+				makedev adb b 28 16 $disk
+				for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+				do
+					minor=$(( 16 + $part ))
+					makedev adb$part b 28 $minor $disk
+				done
+				;;
+			*)
+				echo "no support for adb on $arg" >&2
+				exit 1
+				;;
+		esac
+		;;
+	nvram)
+		makedev nvram c 10 144 $kmem
+		;;
 	tty[1-9]|tty[1-5][0-9]|tty[6][0-3])
 		line=`suffix $arg tty`
 		makedev tty$line c 4 $line $tty
@@ -265,8 +492,7 @@
 	ttyS[0-9]|ttyS[1-5][0-9]|ttyS[6][0-3])
 		line=`suffix $arg ttyS`
 		minor=`math 64 + $line`
-		makedev ttyS$line c 4 $minor $tty
-		makedev cua$line c 5 $minor $dialout
+		makedev ttyS$line c 4 $minor $dialout
 		;;
 	pty[a-ep-z])
 		bank=`suffix $arg pty`
@@ -285,42 +511,350 @@
 		do
 			ptysufs="$ptysufs pty$i"
 		done
-		$0 $opts $ptysufs
+		$0 $opts $ptysufs ptmx
 		;;
-	cyclades)
-		major1=`Major ttyC` || continue
-		major2=`Major cub` || continue
+	ptmx)
+		# master pty multiplexer for 2.1 kernels
+		makedev ptmx c 5 2 $tty
+		;;
+	cyclades|ttyC)
+		major1=`Major ttyC 19` || continue
+		#major2=`Major cub 20` || continue
 		for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 \
-                         16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
+                         16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 
+		do
+			makedev ttyC$i c $major1 $i $dialout
+			#makedev cub$i c $major2 $i $dialout
+		done
+		;;
+	stallion|ttyE)
+		major1=`Major ttyE 24` || continue
+		#major2=`Major cue 25` || continue
+		majorc=28
+		minor=0
+		until [ $minor -gt 256 ]
+		do
+			makedev ttyE$minor c $major1 $minor $dialout
+			#makedev cue$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		for i in 0 1 2 3
+		do
+			makedev staliomem$i c $majorc $i $private
+		done
+		;;
+	chase|ttyH)
+		major1=`Major ttyH 17` || continue
+		#major2=`Major cuh 18` || continue
+		minor=0
+		until [ $minor -gt 16 ] # tell me if 16 is wrong
+		do
+			makedev ttyH$minor c $major1 $minor $dialout
+			#makedev cuh$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	rocketport|ttyR)
+		major1=`Major ttyR 46` || continue
+		#major2=`Major cur 47` || continue
+		minor=0
+		until [ $minor -gt 64 ] # tell me if 64 is wrong
+		do
+			makedev ttyR$minor c $major1 $minor $dialout
+			#makedev cur$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	ttyV)
+		major1=`Major ttyV 105` || continue
+		#major2=`Major cuv 106` || continue
+		minor=0
+		until [ $minor -gt 16 ] # tell me if 16 is wrong
+		do
+			makedev ttyV$minor c $major1 $minor $dialout
+			#makedev cuv$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	digi|ttyD)
+		major1=`Major ttyD 22` || continue
+		#major2=`Major cud 23` || continue
+		minor=0
+		until [ $minor -gt 16 ] # tell me if 16 is wrong
+		do
+			makedev ttyD$minor c $major1 $minor $dialout
+			#makedev cud$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	specialix|ttyX)
+		major1=`Major ttyX 32` || continue
+		#major2=`Major cux 33` || continue
+		minor=0
+		until [ $minor -gt 16 ] # tell me if 16 is wrong
+		do
+			makedev ttyX$minor c $major1 $minor $dialout
+			#makedev cux$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	specialixIO8|ttyW)
+		major1=`Major ttyW 75` || continue
+		#major2=`Major cuw 76` || continue
+		minor=0
+		until [ $minor -gt 16 ] # tell me if 16 is wrong
+		do
+			makedev ttyW$minor c $major1 $minor $dialout
+			#makedev cuw$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	PAM|ttyM)
+		major1=`Major ttyM 79` || continue
+		#major2=`Major cum 80` || continue
+		minor=0
+		until [ $minor -gt 16 ] # tell me if 16 is wrong
+		do
+			makedev ttyM$minor c $major1 $minor $dialout
+			#makedev cum$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	riscom|ttyL)
+		major=`Major ttyL 48` || continue
+		minor=0
+		until [ $minor -gt 16 ] # tell me if 16 is wrong
+		do
+			makedev ttyL$minor c $major $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	computone|ttyF)
+		major=`Major ttyF 71` || continue
+		#major2=`Major cuf 72` || continue
+		minor=0
+		until [ $minor -gt 255 ]
+		do
+			makedev ttyF$minor c $major $minor $dialout
+			#makedev cuf$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		major=73
+		for i in 0 4 8 12
+		do
+			makedev ip2ipl$i  c $major $i $private
+			makedev ip2stat$i c $major `math $i + 1` $private
+		done
+		;;
+	ESP|ttyP)
+		major=`Major ttyP 57` || continue
+		#major2=`Major cup 58` || continue
+		minor=0
+		until [ $minor -gt 4 ] # tell me if 4 is wrong
+		do
+			makedev ttyP$minor c $major $minor $dialout
+			#makedev cup$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	COMX|comx)
+		major=`Major comx 88` || continue
+		minor=0
+		until [ $minor -gt 4 ] # tell me if 4 is wrong
+		do
+			makedev comx$minor c $major $minor $private
+			minor=`math $minor + 1`
+		done
+		;;
+	isdnmodem|ttyI)
+		major1=`Major ttyI 43` || continue
+		#major2=`Major cui 44` || continue
+		minor=0
+		until [ $minor -gt 63 ]
+		do
+			makedev ttyI$minor c $major1 $minor $dialout
+			#makedev cui$minor c $major2 $minor $dialout
+			minor=`math $minor + 1`
+		done
+		;;
+	isdnbri)
+		major=45
+		minor=0
+		until [ $minor -gt 63 ]
+		do
+			makedev isdn$minor c $major $minor $private
+			makedev isdnctrl$minor c $major `math $minor + 64` $private
+			makedev ippp$minor c $major `math $minor + 128` $private
+			minor=`math $minor + 1`
+		done
+		makedev isdninfo c $major 255 $private
+		;;
+	dcbri)
+		major=52
+		for i in 0 1 2 3
+		do
+			makedev dcbri$i c $major $i $private
+		done
+		;;
+	capi)
+		major=68
+		makedev capi20 c $major 0 $private
+		for i in 0 1 2 3 4 5 6 7 8 9
+		do
+			makedev capi20.0$i c $major `math $i + 1` $private
+		done
+		for i in 10 11 12 13 14 15 16 17 18 19
+		do
+			makedev capi20.$i c $major `math $i + 1` $private
+		done
+		;;
+	fb)
+		for i in 0 1 2 3 4 5 6 7
+		do
+			makedev fb$i c 29 `math 32 \* $i` $cons
+			makedev fb${i}current c 29 `math 32 \* $i` $cons
+			makedev fb${i}autodetect c 29 `math 32 \* $i + 1` $cons
+		done
+		;;
+	fb[0-7])
+		dev=`suffix $arg fb`
+		base=`math 32 \* $dev`
+		makedev fb$dev c 29 $base $cons
+		makedev fb${dev}current c 29 $base $cons
+		makedev fb${dev}autodetect c 29 `math $base + 1` $cons
+		for i in 0 1 2 3 4 5 6 7
 		do
-			makedev ttyC$i c $major1 $i $tty
-			makedev cub$i c $major2 $i $dialout
+			makedev fb${dev}user$i c 29 `math $base + 24 + $i` $cons
+		done
+		;;
+	netlink)
+		makedev route     c 36 0 $coda
+		makedev skip      c 36 1 $coda
+		makedev fwmonitor c 36 3 $coda
+		for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+		do
+			makedev tap$i c 36 `math $i + 16` $coda
 		done
 		;;
 	lp)
-		major=`Major lp` || continue
+		major=`Major lp 6` || continue
 		makedev ${arg}0 c $major 0 $printer
 		makedev ${arg}1 c $major 1 $printer
 		makedev ${arg}2 c $major 2 $printer
 		;;
 	par)
-		major=`Major lp` || continue
+		major=`Major lp 6` || continue
+		makedev ${arg}0 c $major 0 $printer
+		makedev ${arg}1 c $major 1 $printer
+		makedev ${arg}2 c $major 2 $printer
+		;;
+	parport)
+		major=`Major parport 99` || continue
 		makedev ${arg}0 c $major 0 $printer
 		makedev ${arg}1 c $major 1 $printer
 		makedev ${arg}2 c $major 2 $printer
 		;;
+	slm)
+		major=`Major slm 28` || continue
+		for i in 0 1 2 3
+		do
+			makedev slm c $major $i $printer
+		done
+		;;
 	busmice)
 		major=`Major mouse 10` || continue
-		makedev logimouse c $major 0 $mouse
-		makedev psmouse   c $major 1 $mouse
-		makedev msmouse   c $major 2 $mouse
-		makedev atimouse  c $major 3 $mouse
-		makedev jmouse    c $major 4 $mouse
+		makedev logibm	  c $major 0 $mouse
+		makedev psaux     c $major 1 $mouse
+		makedev inportbm  c $major 2 $mouse
+		makedev atibm     c $major 3 $mouse
+		makedev jbm       c $major 4 $mouse
+		makedev usbmouse  c $major 32 $mouse
+		;;
+	m68k-mice)
+		major=`Major mouse 10` || continue
+		makedev amigamouse c $major 4 $mouse
+		makedev atarimouse c $major 5 $mouse
+		makedev amigamouse1 c $major 7 $mouse
+		makedev adbmouse  c $major 10 $mouse
+		;;
+	3dfx)
+		major=`Major $arg 107` || continue
+		makedev $arg	c $major 0 $video
+		;;
+	agpgart)
+		major=`Major $arg 10` || continue
+		makedev $arg	c $major 175 $video
+		;;
+	ipmi|ipmikcs)
+		major=`Major ipmikcs 10` || continue
+		makedev ipmikcs	c $major 173 $private
+		;;
+	irda)
+		for i in 0 1
+		do
+			makedev ircomm$i c 161 $i $mouse
+			makedev irlpt$i  c 161 `math $i + 16` $mouse
+		done
+		;;
+	misc)
+		major=`Major mouse 10` || continue
+		makedev logibm	  c $major 0 $mouse
+		makedev psaux     c $major 1 $mouse
+		makedev inportbm  c $major 2 $mouse
+		makedev atibm     c $major 3 $mouse
+		makedev jbm       c $major 4 $mouse
+		makedev amigamouse c $major 4 $mouse
+		makedev atarimouse c $major 5 $mouse
+		makedev sunmouse  c $major 6 $mouse
+		makedev amigamouse1 c $major 7 $mouse
+		makedev smouse    c $major 8 $mouse
+		makedev pc110pad  c $major 9 $mouse
+		makedev adbmouse  c $major 10 $mouse
+		makedev beep      c $major 128 $mouse
+		makedev modreq    c $major 129 $mouse
+		makedev watchdog  c $major 130 $mouse
+		makedev temperature c $major 131 $mouse
+		makedev hwtrap    c $major 132 $mouse
+		makedev exttrp    c $major 133 $mouse
+		makedev apm_bios  c $major 134 $mouse
+		makedev rtc       c $major 135 $mouse
+		makedev openprom  c $major 139 $mouse
+		makedev relay8    c $major 140 $mouse
+		makedev relay16   c $major 141 $mouse
+		makedev msr       c $major 142 $mouse
+		makedev pciconf   c $major 143 $mouse
+		makedev nvram     c $major 144 $mouse
+		makedev hfmodem   c $major 145 $mouse
+		makedev led       c $major 151 $mouse
+		makedev mergemem  c $major 153 $mouse
+		makedev pmu       c $major 154 $mouse
+		;;
+	smapi|thinkpad)
+		major=`Major mouse 10` || continue
+		makedev smapi     c $major 170 $mouse
+		symlink smapi thinkpad
+		;;
+        rtc)
+		major=`Major mouse 10` || continue
+		makedev rtc       c $major 135 $mouse
 		;;
 	js)
-		major=`Major Joystick` || continue
-		makedev js0 c $major 0 $mouse
-		makedev js1 c $major 1 $mouse
+		major=`Major Joystick 15` || continue
+		for unit in 0 1 2 3
+		do
+			makedev js$unit c $major $unit $readable
+			makedev djs$unit c $major `math $unit + 128` $readable
+		done
+		;;
+	fd[0-7]-bare)
+		sarg="${arg%-bare}" 
+		major=`Major fd 2` || continue
+		base=`suffix $sarg fd`
+		if [ $base -ge 4 ]
+		then
+			base=`math $base + 124`
+		fi
+		makedev ${sarg} b $major $base $floppy
 		;;
 	fd[0-7])
 		major=`Major fd 2` || continue
@@ -332,39 +866,47 @@
 		makedev ${arg} b $major $base $floppy
 		makedev ${arg}d360  b $major `math $base +  4` $floppy
 		makedev ${arg}h1200 b $major `math $base +  8` $floppy
-		makedev ${arg}D360  b $major `math $base + 12` $floppy
-		makedev ${arg}D720  b $major `math $base + 16` $floppy
+		makedev ${arg}u360  b $major `math $base + 12` $floppy
+		makedev ${arg}u720  b $major `math $base + 16` $floppy
 		makedev ${arg}h360  b $major `math $base + 20` $floppy
 		makedev ${arg}h720  b $major `math $base + 24` $floppy
-		makedev ${arg}H1440 b $major `math $base + 28` $floppy
-		makedev ${arg}E2880 b $major `math $base + 32` $floppy
+		makedev ${arg}u1440 b $major `math $base + 28` $floppy
+		makedev ${arg}u2880 b $major `math $base + 32` $floppy
 		makedev ${arg}CompaQ b $major `math $base + 36` $floppy
 
-		symlink ${arg}H360 ${arg}D360
-		symlink ${arg}H720 ${arg}D720
-
 		makedev ${arg}h1440 b $major `math $base + 40` $floppy
-		makedev ${arg}H1680 b $major `math $base + 44` $floppy
+		makedev ${arg}u1680 b $major `math $base + 44` $floppy
 		makedev ${arg}h410  b $major `math $base + 48` $floppy
-		makedev ${arg}H820  b $major `math $base + 52` $floppy
+		makedev ${arg}u820  b $major `math $base + 52` $floppy
 		makedev ${arg}h1476 b $major `math $base + 56` $floppy
-		makedev ${arg}H1722 b $major `math $base + 60` $floppy
+		makedev ${arg}u1722 b $major `math $base + 60` $floppy
 		makedev ${arg}h420  b $major `math $base + 64` $floppy
-		makedev ${arg}H830  b $major `math $base + 68` $floppy
+		makedev ${arg}u830  b $major `math $base + 68` $floppy
 		makedev ${arg}h1494 b $major `math $base + 72` $floppy
-		makedev ${arg}H1743 b $major `math $base + 76` $floppy
+		makedev ${arg}u1743 b $major `math $base + 76` $floppy
 		makedev ${arg}h880  b $major `math $base + 80` $floppy
-		makedev ${arg}D1040 b $major `math $base + 84` $floppy
-		makedev ${arg}D1120 b $major `math $base + 88` $floppy
+		makedev ${arg}u1040 b $major `math $base + 84` $floppy
+		makedev ${arg}u1120 b $major `math $base + 88` $floppy
 		makedev ${arg}h1600 b $major `math $base + 92` $floppy
-		makedev ${arg}H1760 b $major `math $base + 96` $floppy
-		makedev ${arg}H1920 b $major `math $base + 100` $floppy
-		makedev ${arg}E3200 b $major `math $base + 104` $floppy
-		makedev ${arg}E3520 b $major `math $base + 108` $floppy
-		makedev ${arg}E3840 b $major `math $base + 112` $floppy
-		makedev ${arg}H1840 b $major `math $base + 116` $floppy
-		makedev ${arg}D800  b $major `math $base + 120` $floppy
-		makedev ${arg}H1600 b $major `math $base + 124` $floppy
+		makedev ${arg}u1760 b $major `math $base + 96` $floppy
+		makedev ${arg}u1920 b $major `math $base + 100` $floppy
+		makedev ${arg}u3200 b $major `math $base + 104` $floppy
+		makedev ${arg}u3520 b $major `math $base + 108` $floppy
+		makedev ${arg}u3840 b $major `math $base + 112` $floppy
+		makedev ${arg}u1840 b $major `math $base + 116` $floppy
+		makedev ${arg}u800  b $major `math $base + 120` $floppy
+		makedev ${arg}u1600 b $major `math $base + 124` $floppy
+		;;
+	ed[a-b])
+		major=`Major ed 36` || continue
+		unit=`suffix $arg ed`
+		base=`index ab $unit`
+		base=`math $base \* 64`
+		makedev ed$unit b $major $base $disk
+		for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20
+		do
+			makedev ed$unit$part b $major `math $base + $part` $disk
+		done
 		;;
 	hd[a-b])
 		major=`Major ide0` || major=`Major hd 3` || continue
@@ -372,7 +914,7 @@
 		base=`index ab $unit`
 		base=`math $base \* 64`
 		makedev hd$unit b $major $base $disk
-		for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 		do
 			makedev hd$unit$part b $major `math $base + $part` $disk
 		done
@@ -383,9 +925,9 @@
 		base=`index cd $unit`
 		base=`math $base \* 64`
 		makedev hd$unit b $major $base $disk
-		for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 		do
-			makedev hd$unit$part b $major `expr $base + $part` $disk
+			makedev hd$unit$part b $major $(( $base + $part )) $disk
 		done
 		;;
 	hd[e-f])
@@ -394,9 +936,9 @@
 		base=`index ef $unit`
 		base=`math $base \* 64`
 		makedev hd$unit b $major $base $disk
-		for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 		do
-			makedev hd$unit$part b $major `expr $base + $part` $disk
+			makedev hd$unit$part b $major $(( $base + $part )) $disk
 		done
 		;;
 	hd[g-h])
@@ -405,18 +947,47 @@
 		base=`index gh $unit`
 		base=`math $base \* 64`
 		makedev hd$unit b $major $base $disk
-		for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
+		do
+			makedev hd$unit$part b $major $(( $base + $part )) $disk
+		done
+		;;
+	hd[i-j])
+		major=`Major ide4 56` || continue
+		unit=`suffix $arg hd`
+		base=`index ij $unit`
+		base=`math $base \* 64`
+		makedev hd$unit b $major $base $disk
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 		do
-			makedev hd$unit$part b $major `expr $base + $part` $disk
+			makedev hd$unit$part b $major $(( $base + $part )) $disk
 		done
 		;;
-	ht)
+	hd[k-l])
+		major=`Major ide4 57` || continue
+		unit=`suffix $arg hd`
+		base=`index kl $unit`
+		base=`math $base \* 64`
+		makedev hd$unit b $major $base $disk
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
+		do
+			makedev hd$unit$part b $major $(( $base + $part )) $disk
+		done
+		;;
+	ht0)
 		major=`Major ht0 37` || continue
 		# Only one IDE tape drive is currently supported; ht0.
 		makedev ht0 c $major 0 $tape
-		makedev ht0 c $major 0 $tape
 		makedev nht0 c $major 128 $tape
 		;;
+	pt)
+		major=`Major pt 96` || continue
+		for i in 0 1 2 3
+		do
+			makedev pt$i c $major $i $tape
+			makedev npt$i c $major `math $i + 128` $tape
+		done
+		;;
 	xd[a-d])
 		major=`Major xd 13` || continue
 		unit=`suffix $arg xd`
@@ -425,31 +996,139 @@
 		makedev xd$unit b $major $base $disk
 		for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15 16 17 18 19 20
 		do
-			makedev xd$unit$part b $major `expr $base + $part` $disk
+			makedev xd$unit$part b $major $(( $base + $part )) $disk
 		done
 		;;
-	sd[a-h])
+	sd[a-z])
 		major=`Major sd 8` || continue
 		unit=`suffix $arg sd`
-		base=`index abcdefgh $unit`
-		base=`math $base \* 16`
+		base=`index abcdefghijklmnopqrstuvwxyz $unit`
+		base=$(( $base * 16 ))
+		if [ $base -lt 256 ]; then
+			major=8
+		else
+			major=65
+			base=$(( $base - 256 ))
+		fi
+		makedev sd$unit b $major $base $disk
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+		do
+			minor=$(( $base + $part ))
+			makedev sd$unit$part b $major $minor $disk
+		done
+		;;
+	sd[a-d][a-z])
+		unit=`suffix $arg sd`
+		unitmaj=`first $unit`
+		unitmin=`second $unit`
+		basemaj=`index Xabcd $unitmaj`
+		basemin=`index abcdefghijklmnopqrstuvwxyz $unitmin`
+		basemaj=`math $basemaj \* 416`
+		basemin=`math $basemin \* 16`
+		base=`math $basemaj + $basemin`
+		basemaj=`math $base / 256`
+		base=`math $base % 256`
+		major=`math basemaj \+ 64`
+		if [ $major -gt 71 ]; then
+			echo "$0: don't know how to make device \"$arg\"" >&2
+			exit 0
+		fi
 		makedev sd$unit b $major $base $disk
-		for part in 1 2 3 4 5 6 7 8 # 9 10 11 12 13 14 15
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
 		do
-			minor=`expr $base + $part`
+			minor=$(( $base + $part ))
 			makedev sd$unit$part b $major $minor $disk
 		done
+                ;;
+	ad[a-p])
+		major=`Major ad 28` || continue
+		unit=`suffix $arg ad`
+		base=`index abcdefghijklmnop $unit`
+		base=`math $base \* 16`
+		makedev ad$unit b $major $base $disk
+		for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+		do
+			minor=$(( $base + $part ))
+			makedev ad$unit$part b $major $minor $disk
+		done
+		;;
+	dac960)
+		for ctr in 0 1 2 3 4 5 6 7
+		do
+			$0 $opts dac960.$ctr
+		done
+		;;
+	dac960.[0-7])
+		[ -d rd ] || {
+			mkdir rd
+			chown root.root rd
+			chmod 755 rd
+		}
+		unit=`suffix $arg dac960.`
+		    major=`math 48 + $unit`
+		    minor=0
+		    for ld in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 \
+			    17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
+		    do
+			makedev rd/c${unit}d${ld} b $major $minor $disk
+			minor=`math $minor + 1`
+			for part in 1 2 3 4 5 6 7
+			do
+			    makedev rd/c${unit}d${ld}p$part b $major $minor $disk
+			    minor=`math $minor + 1`
+			done
+		    done
+		;;
+	ida)
+		for ctr in 0 1 2 # 3 4 5 6 7
+		do
+			$0 $opts ida.$ctr
+		done
+		;;
+	ida.[0-7])
+		[ -d ida ] || {
+			mkdir ida
+			chown root.root ida
+			chmod 755 ida
+		}
+		unit=`suffix $arg ida.`
+		major=`math 72 + $unit`
+		minor=0
+		for ld in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+		do
+		    makedev ida/c${unit}d${ld} b $major $minor $disk
+		    minor=`math $minor + 1`
+		    for part in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+		    do
+			makedev ida/c${unit}d${ld}p$part b $major $minor $disk
+			minor=`math $minor + 1`
+		    done
+		done
+		;;
+	rom)
+		major=`Major rom 31`
+		for i in 0 1 2 3 4 5 6 7
+		do
+			makedev rom$i    b $major $i $disk
+			makedev rrom$i   b $major `math $i +8` $disk
+			makedev flash$i  b $major `math $i +16` $disk
+			makedev rflash$i b $major `math $i +24` $disk
+		done
+		;;
+	nb[0-7])
+		major=`Major nbd 43` || continue
+		minor=`suffix $arg nb`
+		makedev nb$minor b $major $minor $disk
 		;;
 	loop)
-		major=`Major loop` || continue
 		for part in 0 1 2 3 4 5 6 7
 		do
-			makedev loop$part b $major $part $disk
+			makedev loop$part b 7 $part $disk
 		done
 		;;
 	md)
-		major=`Major md` || continue
-		for part in 0 1 2 3
+		major=`Major md 9` || continue
+		for part in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
 		do
 			makedev md$part b $major $part $disk
 		done
@@ -457,42 +1136,129 @@
 	st[0-7])
 		major=`Major st 9`
 		unit=`suffix $arg st`
-		makedev st$unit c $major $unit $tape
-		makedev nst$unit c $major `math 128 + $unit` $tape
+		makedev st${unit}   c $major $unit $tape
+		makedev nst${unit}  c $major `math 128 + $unit` $tape
+
+		makedev st${unit}l  c $major `math 32 + $unit` $tape
+		makedev nst${unit}l c $major `math 160 + $unit` $tape
+
+		makedev st${unit}m  c $major `math 64 + $unit` $tape
+		makedev nst${unit}m c $major `math 192 + $unit` $tape
+
+		makedev st${unit}a  c $major `math 96 + $unit` $tape
+		makedev nst${unit}a c $major `math 224 + $unit` $tape
 		;;
 	qic)
 		major=`Major tpqic02 12`
+		makedev ntpqic11   c $major   2 $tape
+		makedev tpqic11    c $major   3 $tape
+		makedev ntpqic24   c $major   4 $tape
+		makedev tpqic24    c $major   5 $tape
+		makedev ntpqic120  c $major   6 $tape
+		makedev tpqic120   c $major   7 $tape
+		makedev ntpqic150  c $major   8 $tape
+		makedev tpqic150   c $major   9 $tape
 		makedev rmt8       c $major   6 $tape
 		makedev rmt16      c $major   8 $tape
 		makedev tape-d     c $major 136 $tape
 		makedev tape-reset c $major 255 $tape
+		$0 $opts qft
 		;;
 	ftape)
-		major=`Major mt 27` || continue
+		major=`Major qft 27` || continue
 		for unit in 0 1 2 3
 		do
-			makedev rft$unit c $major $unit $tape
-			makedev nrft$unit c $major `math $unit + 4` $tape
+			makedev qft$unit     c $major $unit $tape
+			makedev nqft$unit    c $major `math $unit + 4` $tape
+			makedev zqft$unit    c $major `math $unit + 16` $tape
+			makedev nzqft$unit   c $major `math $unit + 20` $tape
+			makedev rawqft$unit  c $major `math $unit + 32` $tape
+			makedev nrawqft$unit c $major `math $unit + 36` $tape
+		done
+		symlink ftape qft0
+		symlink nftape nqft0
+		;;
+	sr|scd|scd-all)
+		major=`Major sr 11` || continue
+		for unit in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
+		do
+			makedev scd$unit b $major $unit $cdrom
+			symlink sr$unit scd$unit
 		done
-		symlink ftape rft0
-		symlink nftape nrft0
 		;;
-	scd[0-7])
+	cfs0)
+		makedev cfs0 c 67 0 $coda
+		;;
+	scd[0-9]|scd[0-1][0-9])
 		major=`Major sr 11` || continue
 		unit=`suffix $arg scd`
 		makedev scd$unit b $major $unit $cdrom
+		ln -f scd$unit sr$unit
+		;;
+	ttyI[0-9]|ttyI[1-5][0-9]|ttyI[6][0-3])
+		major=43
+		unit=`suffix $arg ttyI`
+		makedev ttyI$unit c $major $unit $dialout
+		;;
+	ippp[0-9]|ippp[1-5][0-9]|ippp[6][0-3])
+		major=45
+		unit=`suffix $arg ippp`
+		minor=`math $unit + 128`
+		makedev ippp$unit c $major $minor $dialout
+		;;
+	isdn[0-9]|isdn[1-5][0-9]|isdn[6][0-3])
+		major=45
+		unit=`suffix $arg isdn`
+		minor=`math $unit + 0`
+		makedev isdn$unit c $major $minor $dialout
+		;;
+	isdnctrl[0-9]|isdnctrl[1-5][0-9]|isdnctrl[6][0-3])
+		major=45
+		unit=`suffix $arg isdnctrl`
+		minor=`math $unit + 64`
+		makedev isdnctrl$unit c $major $minor $dialout
+		;;
+	isdninfo)
+		makedev isdninfo c 45 255 $dialout
+		;;
+	isdn-tty)
+		major=43
+		for unit in 0 1 2 3 4 5 6 7
+		do
+			makedev ttyI$unit c $major $unit $dialout
+		done
+		;;
+	isdn-ippp)
+		major=45
+		for unit in 0 1 2 3 4 5 6 7
+		do
+			makedev ippp$unit c $major `math $unit + 128` $dialout
+		done
+		;;
+	isdn-io)
+		for unit in 0 1 2 3 4 5 6 7
+		do
+			makedev isdn$unit c 45 $unit $dialout
+			makedev isdnctrl$unit c 45 `math $unit + 64` $dialout
+			makedev ippp$unit c 45 `math $unit + 128` $dialout
+		done
+		makedev isdninfo c 45 255 $dialout
 		;;
 	sonycd)
-		major=`Major cdu31a` || continue
+		major=`Major sonycd 15` || continue
 		makedev $arg b $major 0 $cdrom
 		;;
 	mcd)
 		major=`Major mcd 23` || continue
 		makedev $arg b $major 0 $cdrom
 		;;
-	mcdx)
-		major=`Major mcdx 20` || continue
-		makedev $arg b $major 0 $cdrom
+	mcdx|mcdx[0-4])
+		major=`Major $arg 20` || continue
+		for unit in 0 1 2 3 4
+		do
+			makedev mcdx$unit b $major $unit $cdrom
+		done
+		test -r mcdx || symlink mcdx mcdx0
 		;;
 	cdu535)
 		makedev $arg b 24 0 $cdrom
@@ -501,28 +1267,51 @@
 		makedev $arg b 24 0 $cdrom
 		;;
 	sbpcd|sbpcd[123])
-		major=`Major $arg` || continue
+		major=`Major $arg 25` || continue
 		base=`suffix ${arg}0 sbpcd`
-		# base=`expr ${arg}0 : "sbpcd\(.\)"`
 		for minor in 0 1 2 3
 		do
 			# XXX
-			unit=`expr substr 0123456789abcdef \( $base \* 4 + $minor + 1 \) 1`
+			unit=$(substr 0123456789abcdef $(( $base * 4 + $minor + 1 )) )
 			makedev sbpcd$unit b $major $minor $cdrom
 		done
 		[ $arg = sbpcd ] && symlink $arg ${arg}0
 		;;
 	aztcd)
-		major=`Major $arg` || continue
+		major=`Major $arg 29` || continue
+		makedev ${arg}0 b $major 0 $cdrom
+		;;
+	cm206cd)
+		major=`Major $arg 30` || continue
+		makedev ${arg}0 b $major 0 $cdrom
+		;;
+	gscd)
+		major=`Major $arg 16` || continue
 		makedev ${arg}0 b $major 0 $cdrom
 		;;
 	bpcd)
 		makedev $arg b 41 0 $cdrom
 		;;
+	optcd)
+		makedev $arg b 17 0 $cdrom
+		;;
+	sjcd)
+		makedev $arg b 18 0 $cdrom
+		;;
+	cfs|coda)
+		makedev cfs0 c 67 0 $private
+		;;
+	xfs|arla)
+		makedev xfs0 c 103 0 $private
+		;;
 	logiscan)
 		major=`Major logiscan` || continue
 		makedev $arg c $major 0 $scanner
 		;;
+	toshiba)
+		major=`Major $arg 10` || continue
+		makedev $arg c $major 181 root root 0666
+		;;
 	m105scan)
 		major=`Major m105` || continue
 		makedev $arg c $major 0 $scanner
@@ -534,34 +1323,119 @@
 	audio)
 		major=`Major sound 14`
 		makedev mixer      c $major  0 $audio
+		makedev mixer1     c $major 16 $audio
+		makedev mixer2     c $major 32 $audio
+		makedev mixer3     c $major 48 $audio
 		makedev sequencer  c $major  1 $audio
 		makedev midi00     c $major  2 $audio
-		makedev dsp        c $major  3 $audio
-		makedev audio      c $major  4 $audio
-		makedev sndstat    c $major  6 $audio
-#		makedev sequencer2 c $major  8 $audio
-		makedev mixer1     c $major 16 $audio
-#		makedev patmgr0    c $major 17 $audio
 		makedev midi01     c $major 18 $audio
-		makedev dsp1       c $major 19 $audio
-		makedev audio1     c $major 20 $audio
-#		makedev patmgr1    c $major 33 $audio
 		makedev midi02     c $major 34 $audio
 		makedev midi03     c $major 50 $audio
+		makedev dsp        c $major  3 $audio
+		makedev dsp1       c $major 19 $audio
+		makedev dsp2       c $major 35 $audio
+		makedev dsp3       c $major 51 $audio
+		makedev audio      c $major  4 $audio
+		makedev audio1     c $major 20 $audio
+		makedev audio2     c $major 36 $audio
+		makedev audio3     c $major 52 $audio
+		makedev sndstat    c $major  6 $audio
+		makedev audioctl   c $major  7 $audio
+		major=31
+		makedev mpu401data c $major 0  $audio
+		makedev mpu401stat c $major 1  $audio
+		major=35
+		for i in 0 1 2 3
+		do
+			makedev midi$i  c $major $i $audio
+			makedev rmidi$i c $major `math $i + 64` $audio
+			makedev smpte$i c $major `math $i + 128` $audio
+		done
 		;;
 	pcaudio)
-		major=`Major pcsp` || continue
+		major=`Major pcsp 13` || continue
 		makedev pcmixer c $major 0 $audio
 		makedev pcsp    c $major 3 $audio
 		makedev pcaudio c $major 4 $audio
 		;;
-	sg)
+	video|video4linux|v4l|radio)
+		# video4linux api includes radio, teletext, etc.
+		major=`Major video 81` || continue
+		minor=0
+		until [ $minor -gt 63 ]
+		do
+			makedev video$minor c $major $minor $video
+			makedev radio$minor c $major `math $minor + 64` $video
+			minor=`math $minor + 1`
+		done
+		symlink radio radio0
+		minor=0
+		until [ $minor -gt 31 ]
+		do
+			makedev vtx$minor c $major `math $minor + 192` $video
+			makedev vbi$minor c $major `math $minor + 224` $video
+			minor=`math $minor + 1`
+		done
+		symlink video video0
+		symlink vbi vbi0
+		major=82
+		minor=0
+		until [ $minor -gt 1 ]
+		do
+			makedev winradio$minor c $major $minor $video
+			minor=`math $minor + 1`
+		done
+		major=83
+		makedev vtx     c $major 0 $video
+		makedev vttuner c $major 16 $video
+		;;
+	i2c)
+		major=`Major i2c 89` || continue
+		minor=0
+		until [ $minor -gt 1 ] # tell me if 1 is wrong...
+		do
+			makedev i2c-$minor c $major $minor $private
+			minor=`math $minor + 1`
+		done
+		;;
+	tlk)
+		major=102
+		minor=0
+		until [ $minor -gt 3 ] # tell me if 3 is wrong...
+		do
+			makedev tlk$minor c $major $minor $video
+			minor=`math $minor + 1`
+		done
+		;;
+	srnd)
+		makedev srnd0 c 110 0 $video
+		makedev srnd1 c 110 1 $video
+		;;
+	fgrab)
+		makedev mmetfgrab c 40 0 $video
+		makedev wvisfgrab c 26 0 $video
+		for i in 0 1 # more?
+		do
+			makedev iscc$i    c 93 $i $video
+			makedev isccctl$i c 93 `math $i + 128` $video
+		done
+		for i in 0 1 # more?
+		do
+			makedev dcxx$i c 94 $i $video
+		done
+		;;
+	sg|sg-all)
 		major=`Major sg 21`
-		for unit in a b c d e f g h
+		for unit in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
 		do
-			minor=`index abcdefgh $unit`
-			# minor=`expr abcdefgh : ".*$unit" - 1`
-			makedev $arg$unit c $major $minor $scsi
+			makedev sg$unit c $major $unit $scsi
+		done
+		;;
+	pg)
+		major=`Major pg 97`
+		for unit in 0 1 2 3
+		do
+			makedev pg$unit c $major $unit $scsi
 		done
 		;;
 	fd)
@@ -572,15 +1446,34 @@
 		symlink stderr fd/2
 		;;
 	ibcs2)
-		major=`Major ibcs2` || continue
+		major=`Major ibcs2 30` || continue
 		makedev socksys c $major 0 $ibcs2
 		symlink nfsd socksys
 		makedev spx     c $major 1 $ibcs2
 		symlink X0R null
 		;;
+	netlink)
+		major=36
+		makedev route c $major 0 $private
+		makedev skip  c $major 1 $private
+		;;
+	enskip)
+		major=64
+		makedev enskip c $major 0 $private
+		;;
+	ipfilt*)
+		major=95
+		makedev ipl     c $major 0 $private
+		makedev ipnat   c $major 1 $private
+		makedev ipstate c $major 2 $private
+		makedev ipauth  c $major 3 $private
+		;;
+	qng)
+		makedev qng c 77 0 $private
+		;;
 	apm)
-		major=`Major apm_bios` || continue
-		makedev $arg c $major 0 $system
+		major=`Major mouse 10` || continue
+		makedev apm_bios  c $major 134 $mouse
 		;;
 	dcf)
 		major=`Major dcf` || continue
@@ -590,6 +1483,11 @@
 		major=`Major hw` || continue
 		makedev helloworld c $major 0 $public
 		;;
+	ipsec)
+		# For the Free S/WAN (http://www.xs4all.nl/~freeswan/)
+		# implementation of IPSEC
+		makedev ipsec c 36 10 $ipsec
+		;;
 	update)
 		if [ ! "$devices" ]
 		then
@@ -619,7 +1517,6 @@
 					create="$create "`cvt $device`
 				fi
 				devs=`strip " $devs " $device`
-				# devs=`expr "$devs" : "\(.*\) $device"``expr "$devs" : ".* $device\(.*\)"`
 			done
 			exec 3<&-
 		fi
@@ -637,6 +1534,7 @@
 		;;
 	*)
 		echo "$0: don't know how to make device \"$arg\"" >&2
+		exit 1
 		;;
 	esac
 done
--- makedev-2.3.1.orig/Makefile
+++ makedev-2.3.1/Makefile
@@ -1,14 +1,15 @@
 # $Id: Makefile,v 2.2 1995/05/21 17:45:18 alfie Exp $
 
+BINDIR  = $(ROOT)/sbin
 DEVDIR  = $(ROOT)/dev
-MANDIR  = $(ROOT)/usr/man
+MANDIR  = $(ROOT)/usr/share/man
 MANEXT  = 8
 
 default:
 	@echo Nothing to make.
 	
 install:
-	install -m 755 MAKEDEV $(DEVDIR)
+	install -m 755 MAKEDEV $(BINDIR)
 	install -m 644 MAKEDEV.man $(MANDIR)/man$(MANEXT)/MAKEDEV.$(MANEXT)
 
 clean:
--- makedev-2.3.1.orig/debian/old/README.debian
+++ makedev-2.3.1/debian/old/README.debian
@@ -0,0 +1,95 @@
+makedev for DEBIAN
+==================
+
+The /etc/makedev.cfg and /etc/devinfo files are rewritten to fit the
+Debian /dev layout.
+
+Security : all mouse devices are changed to mode 600. Only serial
+devices are mode 660 root:dialout. It's possible to crash x11 and
+console with writing random bytes to a mouse device.
+
+Serial console :
+/dev/console should be a symlink to your real console device.
+If it does not exist, or is not a symlink, it will be replaced with a
+symlink console -> tty0.
+
+This version of makedev will check /dev for tty*/pty* devices, and if
+there are some with the old major number, it will create a
+/etc/rc.boot/makedev script. This will script will change the
+master/slave devices the next time you boot.
+
+serial devices should be owned by user "uucp" and group "dialout".
+former they were owned by root. new devices are created with uucp as
+owner, but you will have to change old devices to user uucp on your own.
+It's new policy to have all serial devices owned by uucp, but the last
+word in this discussion isn't said...
+
+some device names have changed. please read
+/usr/doc/makedev/devices.{txt|html}
+
+the permissions should be secure enough, but if you find any bugs, or
+unfounded hard permissions, please let me know (i don't know much about
+the right permissions for devices, i yust used the value, everybody else
+was using, and made read & write only available for root, whenever i
+found nothing better.
+
+/dev/console is now a symlink to /dev/tty0. for more infomation, please
+look at a new 2.1 linux kernel : Documentation/devices.txt. That is the
+"Linux Allocated Device" paper, the official list of linux devices.
+If your boot console is a serial device, you will have to change that
+symlink.
+
+MAKEDEV-C will not work with any kernel with mcdx support, if
+/proc/devices contains "Mitsumi CD-ROM". if so, patch
+/usr/src/linux/driver/cdrom/mcdx.c :
+1149c1149
+<     if (unregister_blkdev(MAJOR_NR, "mcdx") != 0) {
+---
+>     if (unregister_blkdev(MAJOR_NR, DEVICE_NAME) != 0) {
+1270c1270
+< 		if (register_blkdev(MAJOR_NR, "mcdx", &mcdx_fops) != 0) {
+---
+> 		if (register_blkdev(MAJOR_NR, DEVICE_NAME, &mcdx_fops) != 0) {
+
+
+about call out devices (/dev/cu*) :
+
+      /dev/ttySxx devices are fully POSIX-compliant TTY devices.  If you
+      are only going to be using one set of tty devices, you should be
+      using /dev/ttySxx.
+
+      /dev/cuaXX devices are different from /dev/ttySXX in two ways ---
+      first of all, they will allow you to open the device even if
+      CLOCAL is not set and the O_NONBLOCK flag was not given to the
+      open device.  This allows programs that don't use the
+      POSIX-mondated interface for opening /dev/ttySxx devices to be
+      able to use /dev/cuaXX to make outgoing phone calls on their modem
+      (cu stands for "callout", and is taken from SunOS).
+
+      The second way in which /dev/cuaXX differs from /dev/ttySXX is
+      that if they are used, they will trigger a simplistic kernel-based
+      locking scheme: If /dev/ttySXX is opened by one or more processes,
+      then an attempt to open /dev/cuaXX will return EAGAIN.  If
+      /dev/cuaXX is opened by one or more processes, then an attempt to
+      open /dev/ttySXX will result the open blocking until /dev/cuaXX is
+      closed, and the carrier detect line goes high. the open blocking
+      until /dev/cuaXX is closed, and the carrier detect line goes high.
+
+      While this will allow for simple lockouts between a user using a
+      modem for callout and a getty listening on the line for logins, it
+      doesn't work if you need to arbitrate between multiple programs
+      wanting to do dialout --- for example, users wanting to do dialout
+      and UUCP.
+
+      I originally implemented the cuaXX/ttySXX lockout mechanism back
+      before FSSTND established a standard convention for the use of tty
+      lock files.  Now that it's there, people should use the tty lock
+      files and not try using /dev/cuaXX.  The only reason why
+      /dev/cuaXX hasn't disappeared yet is for backwards compatibility
+      reasons.			  -- Theodore Ts'o <tytso@mit.edu>
+
+
+debian has no /dev/cu* devices. But you can create them, if you need
+them. Read devices.txt for details.
+
+Andreas Jellinghaus <aj@debian.org>, Sun, 13 Apr 1997 21:05:58 +0200
--- makedev-2.3.1.orig/debian/old/devices.sgml
+++ makedev-2.3.1/debian/old/devices.sgml
@@ -0,0 +1,294 @@
+<!doctype linuxdoc system>
+
+<article>
+
+<title>devices created by makedev
+<author> Andreas Jellinghaus <tt>aj@debian.org</tt>
+<date> version 0.3, based on Linux allocated device 2.1.62
+<abstract>
+	some devices are created by default, some are left out on boot
+	floppies, other devices are only created on demand and some
+	devices are obsolete or have new names. 
+</abstract>
+
+<sect> batches <p>
+
+call out devices are not generated by default. however if you need them,
+you can generate them (see below).
+
+<descrip>
+<tag/generic/all standard batches for normal Linux\/i386 systems.
+	(standard misc devices, ttyS[0-3], mouse, printer, tapes
+	(scsi, qic, qic117), audio, scsi generic, standard disk, cdroms
+	and ttys) 
+<tag/generic-m68k/all generic devices for m68k (additional
+	framebuffer, some mouse devices and m68k scsi disk devices are
+	included,
+	but busmouse devices and qic and qic117 are left out).
+<tag/boot-floppy/a subset of generic. (no audio, less ttys)
+<tag/std-hd/standard hard disks (hd[a-h,xd[ab],sd[a-h],ram disk,md,loop)
+<tag/std-cdrom/standard cdroms (scsi, old non-scsi non-atapi cdroms)
+<tag/compatiblity/collection of old devices. It is usefull to remove them, but
+make sure, that you have generated the new ones, and that you know, what
+you are doing !  serial-cu, printer-old, mouse-old, sr-old,
+qic-old, misc-old, sg-old
+<tag/update/special tag : reads \/proc\/devices and generates new devices
+	found there.
+</descrip>
+
+<sect> Limits (standard devices) <p>
+
+There are some limits in this version of devinfo : it will only create a
+special number of devices (e.g. ramdisks, hda partitions). If one of
+these limits is unrealistic, please tell me. Most limits have no good
+reason, I just didn't want to create hundreds of devices, so I only
+created a few. If a limit is too low for you : a) please tell me and b)
+modify /etc/devinfo (should be easy). <p>
+
+<descrip>
+<tag/ramdisks/8 devices ram[0-7]
+<tag/ide harddisks/20 partitions each (devices hd[a-h])
+<tag/xt harddisks/20 partitions each (devices xd[ab]
+<tag/loopback/8 devices loop[0-7] 
+<tag/metadisk/4 devices md[0-3]
+<tag/scsi cdrom/scd: 8 devices scd[0-7] 
+<tag/scsi cdrom/scd-all : 16 devices scd[0-15] 
+<tag/scsi generic/sg : 8 devices sg[0-7]
+<tag/scsi generic/sg-all : 16 devices sg[0-15]
+<tag/scsi tapes/8 devices st[0-7] 
+<tag/mscdex/4 cdrom devices dos_cd[0-3] 
+<tag/joysticks/2 devices each js[0-1] djs[0-1]
+<tag/other cdroms/only one device created : sonycd, gscd, optcd, sjcd,
+hitcd, mcd, cdu535, aztcd, cm206cd, bpcd (if there are several cdroms
+possible : please tell me !)          
+<tag/serial/default bootdisks and base system will only have ttyS[0-3],
+but you can create all possible devices ttyS[0-63] with "MAKEDEV serial"
+or several additional devices with "MAKEDEV ttyS4 ttyS5 ...".
+</descrip>
+
+<sect> additional devices <p>
+
+you can create these devices with "MAKEDEV name" and delete them with
+"MAKEDEV -d name". you can either use the name listed here (this will
+create all possible devices), or individual devices (use the device
+name) e.g. "serial" will create all 64 serial devices ttyS[0-63] but
+"ttyS0" will only create this one. 
+
+<sect1> serial devices <p>
+
+<descrip>
+<tag/isdn-tty/isdn terminal devices. 8 devices : ttyI[0-7]
+<tag/isdn-tty-all/isdn terminal devices. 64 devices : ttyI[0-63]
+
+<tag/isdn-ppp/isdn sync ppp network devices. 8 devices : ippp[0-7]
+<tag/isdn-ppp-all/isdn sync ppp network devices. 64 devices : ippp[0-63]
+
+<tag/isdn-io/isdn raw and control devices. 18 devices : 
+	isdn[0-7] isdnctrl[0-7] isdnctrl isdninfo
+<tag/isdn-io-all/isdn raw and control devices. 130 devices : 
+	isdn[0-63] isdnctrl[0-63] isdnctrl isdninfo
+
+<tag/serial-cu/serial callout devices. they are only for compatibility,
+most people don't need them. 64 devices : cua[0-63]
+
+<tag/isdn-cu/isdn call out devices. they are only for compatibility,
+most people don't need them. 64 devices : cui[0-7]
+<tag/isdn-cu-all/isdn call out devices. they are only for compatibility,
+most people don't need them. 64 devices : cui[0-63]
+
+<tag/chase{-cu}/devices for chase serial card (append -cu to create
+call out devices). 32 devices ttyH[0-31] (cuh[0-31])
+
+<tag/cyclades{-cu}/devices for cyclades serial card (append -cu to create
+call out devices). 32 devices ttyC[0-31] (cub[0-31])
+
+<tag/digiboard{-cu}/devices for digiboard serial card (append -cu to create
+call out devices). 32 devices ttyD[0-31] (cud[0-31])
+
+<tag/stallion{-cu}/devices for stallion serial card (append -cu to create
+callout devices). 32 devices ttyE[0-31] (cue[0-31])
+
+<tag/stallion-mem/devices to access stallion serial card. 4 devices
+stallionmem[0-3]
+
+<tag/specialix{-cu}/devices for specialix serial card (append -cu to create
+call out devices). 32 devices ttyX[0-31] (cux[0-31])
+
+<tag/rockport{-cu}/devices for rockport serial card (append -cu to create
+call out devices). 32 devices ttyR[0-31] (cur[0-31])
+
+<tag/riscom{-cu}/devices for riscom serial card (append -cu to create
+call out devices). 32 devices ttyL[0-31] (cul[0-31])
+
+<tag/hayes{-cu}/devices for hayes serial card (append -cu to create
+call out devices). 32 devices ttyP[0-31] (cup[0-31])
+
+<tag/baycom/devices for baycom radio modem. 32 devices bc[0-31]
+
+<tag/computone{-cu}/devices for computone intelliport II serial card
+(append -cu to create call out devices). 32 devices ttyF[0-31]
+(cuf[0-31])
+
+<tag/computone-ctrl/devices to access computone intelliport II serial
+card. 8 devices ip2ipl[0-3] and ip2stat[0-3]
+
+<tag/dcbri/spellcaster datacomm\/bri isdn card. 4 devices dcbri[0-3]
+<tag/specialix{-cu}/devices for specialix IO8+ serial card. 32 devices
+ttyW[0-31] (cuw[0-32])
+<tag/pam{-cu}/devices for PAM Software's mulitmodem boards. 32 devices
+ttyM[0-31] (cum[0-31])
+</descrip>
+
+<sect1> misc devices <p>
+
+<descrip>
+<tag/pty[p-za-e]/master pty devices. 16 devices pty?[0-9a-f] each
+<tag/tty[p-za-e]/slave tty devices. 16 devices pty?[0-9a-f] each
+<tag/floppy-all/generic only includes the fd0 and fd1 devices. this way
+you can generate devices for the 3rd ... 8th floppies. i recommend to
+install fdutils and use MAKEFLOPPIES to create the floppy devices you
+need. 30 devices each fd[0-7]*
+
+<tag/framebuffer/universal frame buffer (68k,sparc).
+	22 devices fb0* fb1*
+<tag/other-arch/amigamouse, atarimouse, sunmouse, openprom, kbd
+<tag/double/"double" compressed disk. 16 devices [c]double[0-7]
+<tag/ez[a-d]/syquest ex135 parallel port removable drive. 
+	20 partitions each
+<tag/ed[ab]/mca esdi hard disk. 20 partitions ed?* each
+
+<tag/sbpcd[234]/2nd,3rd,4th sound blaster cdrom controller. 4 devices sbpcdXX each
+<tag/mscdex/MSCDEX CD-ROM callback support. 4 devices dos_cd[0-3]
+<tag/cm205cd/cm205 cdrom devices (not supported in 2.x).
+	2 device cm205cd lmscd
+<tag/ad[a-p]/acsi disc\/cdrom (68k\/atari). 16 devices ad?* each
+<tag/gs4500/genius 4500 handheld scanner. 1 device gs4500
+<tag/slm/atari sm asci laser printer (68k\/atari). 4 devices slm[0-3]
+<tag/ht/ide tape. 2 devices ht0 nht0
+<tag/z2ram/zorro II ramdisk. 1 device z2ram
+<tag/cfs/coda network file-system.
+	1 device cfs0
+<tag/dtlk/DoubleTalk PC speech synthesizer, from RC Systems. 1 device dtlk
+
+<tag/ibcs2/ibcs2 devices as described in "Linux Allocated Devices".
+you need to create the directory /dev/inet before running makedev.
+ibcs2-unoff has lots more devices (i don't know if all are needed, or
+not. in doubt use ibcs2-unoff). 9 devices (socksys spx nfsd X0R inet/*).
+
+<tag/ibcs2-unoff/ibcs2 devices as described in the ibcs2 package. you
+need to create the directories "X" and "inet" before creating these
+devices. 74 devices (arp egp ggp icmp ip ipip pup rawip rip tcp udp nfsd
+X0R socksys spx pty[10-47] inet/* X/*)
+
+<tag/nvram/some special m68k hardware ? 1 device nvram
+
+<tag/system-sgi/devices for linux/sgi. 5 devices graphics opengl gfx
+input/mouse input/keyboard
+
+<tag/nb/network block devices. 8 devices nb*
+<tag/ftl/flash translatio layer (FTL) filesystems. max. 16 drives a-p
+with each 15 partitions (like scsi disks sd*).
+<tag/qng/Quantum Noice Generator. 1 device qng
+<tag/at200/Photometrics AT200 CCD camera. 1 device at200
+<tag/bttv/Brooktree Bt848 frame grabbers. 12 devices bttv[0-3]
+bttvc[0-3] bttv-vbi[0-3]
+<tag/winradio/WiNRADiO communications receiver card. 4 devices
+winradio[0-3]
+<tag/videotext/Teletext/videotext interfaces 2 devices vtx vttuner
+<tag/ihcp/ikon 1011[57] Versatec Greensheet Interface. 2devices ihcp[0-1]
+<tag/shimq/Linux/SGI shared memory input queue. 5 devices shmiq
+qcntl[0-3]
+<tag/sch/SCSI media changer. 8 devices sch[0-7]
+<tag/controla/Sony control-a1 stereo control bus. 
+</descrip>
+
+<sect1> sound <p>
+<descrip>
+<tag/mpu401/mpu401 MIDI data & status ports. 
+	2 devices mpu401{data,stat}
+<tag/tclmidi/tclmidi midi driver. 
+	12 devices midi[0-3] rmidi[0-3] smpte[0-3]
+</descrip>
+
+<sect1> misc <p>
+<descrip>
+<tag/wvisfgrab/quanta winvision frame grabber. 
+	1 device wvisfrab
+<tag/mmetfgrab/matrox meteor frame grabber.
+	1 device mmetfgrab
+<tag/ml16p[abc]/ml-16p experimental i\/o board.
+	20 device ml16p?* each
+<tag/scc/Z8530 HDLC driver. 8 devices scc[0-7]
+<tag/rom/rom\/flash memory card. 
+	32 devices rom[0-7] rrom[0-7] flash[0-7] rflash[0-7]
+<tag/netlink/netlink support. 2 devices route skip
+<tag/mlanai/myricom pci myrinet board. 8 devices mlanai[0-7]
+<tag/yamm/yet another micro monitor. 1 device yamm
+<tag/bdm/bdm interface for remote debugging MC683xx mc. 
+	6 devices pd_bdm[0-2] icd_bdm[0-2]
+<tag/holter/electrocardiognosis holter serial port.
+	3 devices holter[0-2]
+<tag/dsp56k/dsp56001 digital signal processor.
+	1 device dsp56k
+<tag/adbus/apple desktop bus. this was disabled, because it clashes with
+ab[b], the second acsi device (m68k/atari acsi disk).
+	1 device adb
+<tag/firewall/sf firewall package.
+	1 device firewall
+<tag/plink/sundance plink transputer boards.
+	12 devices [r]plink[0-3][d]
+<tag/enskip/enskip kernel encryption package
+<tag/yppcpci/yarc powerpc pci coprocessor card
+<tag/capi20/CAPI 2.0 interface.
+	21 devices capi20 capi20.[01-19]
+<tag/ma16/ma16 numeric accelerator card
+<tag/aps/spellcaster protocol service interface.
+	7 devices aps*
+<tag/sci/dolphin interconnect solutions' pci-sci bridge.
+	4 devices SCI\/[0-3]
+</descrip>
+
+<sect> compatibility <p>
+
+not all devices have a standard device name shared by all linux
+distributions, and many names have changed in the past. here is a list,
+so you can find new names, create the old devices (if you want), or
+remove them (to get rid of duplicates).
+
+<descrip>
+<tag/call out devices/cu* devices are not created by default. but you
+can create or remove them : serial-cu chase-cu cyclades-cu digiboard-cu
+stallion-cu specialix-cu isdn-cu     rockport-cu riscom-cu  hayes-cu
+computone-cu  
+<tag/printer-old/parallel port devices, standard name is lp[0-3], not par[0-3]
+<tag/mouse-old/(bus-)mouse devices : logimouse(logibm) psmouse(psaux)
+msmouse(inportbm) atimouse(atibm) jmouse(jbm)
+<tag/sr-old/scsi cdrom devices (now called scd)
+<tag/qic-old/qic streamer devices : nqt qt nqt11 qt11 nqt24 qt24 nqt120
+qt120 nqt150 qt150 qt-reset
+<tag/misc-old/for standardized names, some devices got renamed. old :
+midi, sbpcd, aztcd0, vcs0, lmscd, ramdisk
+new : midi00, sbpcd0, aztcd, vcs, ram0, cm205cd, ram0
+<tag/sg-old/scsi generic devices now use numbers (sg[0-7]), not letters
+sg[a-h])
+<tag/isdn-old/an old version created ipp* devices. this was a typo, they
+are called ippp*
+</descrip>
+
+i left some links : even if they are for compatibility, removing them
+might break existing software.
+
+<descrip>
+<tag/isdnctrl/link to "isdnctrl0"
+<tag/mfd0/m68k amiga hd floppy device
+</descrip>
+
+<sect> note about console and tty0 <p>
+
+New standard is : /dev/tty0 is a device (char,4,0).
+console should be a symlink : to tty0, or whatever your console is.
+If it is not a symlink, makedev will replace it with a symlink to tty0.
+Someday there will be a kernel managed device /dev/console to handle
+this (it will be char 5 1).
+
+</article> 
--- makedev-2.3.1.orig/debian/changelog
+++ makedev-2.3.1/debian/changelog
@@ -0,0 +1,747 @@
+makedev (2.3.1-46.2) stable unstable; urgency=low
+
+  * non-maintainer update
+  * argh, target stable and unstable
+
+ -- Adam Di Carlo <aph@debian.org>  Sun, 15 Oct 2000 14:01:16 -0400
+
+makedev (2.3.1-46.1) unstable; urgency=low
+
+  * non-maintainer update
+  * 'symlink mcdx mcdx0' was reversed (one line patch)
+
+ -- Adam Di Carlo <aph@debian.org>  Sun, 15 Oct 2000 04:36:30 -0400
+
+makedev (2.3.1-46) stable unstable; urgency=medium
+
+  * fix silly symlink loop between ram and ram1, closes: #69475, #69351
+  * fix similar symlink reversal between scd and sr devices, and make 'sr'
+    a valid target, not just when using 'update', closes: #69500
+  * change agpart to agpgart as per devices.txt, closes: #69319
+  * add sg* devices to generic targets that include SCSI, closes: #69231
+
+ -- Bdale Garbee <bdale@gag.com>  Tue, 29 Aug 2000 01:13:30 -0600
+
+makedev (2.3.1-45) stable unstable; urgency=low
+
+  * incorporates work done by Martin Schulze <joey@finlandia.infodrom.north.de>
+    with my profound thanks.
+  * Added gscd and cm206cd device files, closes: #69057
+  * Corrected mcdx drivers, support all five drives, closes: #69058
+  * Corrected symlink creation (i.e. use symlink() instead of ln -s)
+  * Added /dev/toshiba (Toshiba laptop SMM support), closes: #54729, #59242
+  * Added sdc and sdd to generic-m68k since they were missing, closes: #61027
+  * Made joystick devices readable by everybody (closes: Bug#61499)
+  * Added '$opts' whenever $0 aka MAKEDEV gets called, thus `-n' is passed
+    to the child properly, closes: #63159
+  * Added hyphen `-' between i2c and the number as described by devices.txt, 
+    closes: #63523
+  * Fixed wrong creation of hdi hdj hdk and hdl, closes: #64881
+  * Added hdc and hdd to generic-powerpc since they were missing, 
+    closes: #65852
+  * Added support for ttyI and cui (ignored) to 'update' target by
+    modifying cvt(), closes: #66838
+  * Corrected a whole bunch of math errors where a `$' was missing, trying
+    to add 1 to 'minor', closes: #68915
+  * Fixed /proc/devices-parser to ignore slashes, closes: #31854
+  * Removed out-dated Replaces, closes: #61256
+  * Added audioctl, closes: #60755
+  * Added agpart, closes: #61084
+  * Adjusted 3dfx to have file mode $video instead of $audio
+  * Added ipmikcs (Intelligent Platform Management) with mode 0600 (mode
+    may be unpracticable), closes: #67431
+
+ -- Bdale Garbee <bdale@gag.com>  Tue, 15 Aug 2000 21:52:23 -0600
+
+makedev (2.3.1-44) frozen unstable; urgency=low
+
+  * patch from tausq for a case I missed when converting expr to $(( )),
+    fixes problem creating sbpcd devices.  Target frozen since this was
+    marked release-critical.  Closes: #63585
+
+ -- Bdale Garbee <bdale@gag.com>  Sat,  6 May 2000 20:24:40 -0600
+
+makedev (2.3.1-43) frozen unstable; urgency=low
+
+  * add invocation of '/sbin/MAKEDEV std' to postinst to ensure key devices
+    have proper owner/group/perms on upgrades, closes: #61367
+  * replace /dev/MAKEDEV references with /sbin/MAKEDEV references in the
+    postinst
+  * target frozen since broken perms on /dev/tty keeps xterm from working
+    which is very confusing and frustrating on upgrades.
+
+ -- Bdale Garbee <bdale@gag.com>  Wed,  3 May 2000 14:27:04 -0600
+
+makedev (2.3.1-42) frozen unstable; urgency=low
+
+  * eliminate the use of expr, since it is in /usr, which may not be mounted
+    during system recovery when makedev is often needed.  Target frozen since
+    this was tagged release critical, closes: #62925
+
+ -- Bdale Garbee <bdale@gag.com>  Mon, 24 Apr 2000 22:27:18 -0600
+
+makedev (2.3.1-41) frozen unstable; urgency=low
+
+  * Arrange for all scd* devices to have hardlinked sr* counterparts as per
+    devices.txt.  Target frozen since this is release critical, closes: #61862
+
+ -- Bdale Garbee <bdale@gag.com>  Fri,  7 Apr 2000 20:01:39 -0600
+
+makedev (2.3.1-40) frozen unstable; urgency=low
+
+  * fix flakey code for discovering proper major numbers for several device
+    types.  This broke the raidtools postinst in some cases, which I think
+    makes this worth adding to frozen, even though there's no bug in the BTS
+    about it (problem reported and fixed during an IRC session).  There are
+    still a few potential major number problems in MAKEDEV, but they're all
+    for obscure devices that are not in devices.txt, and which I'll therefore 
+    probably remove entirely when rewriting makedev for woody.
+  * fix type, smtpe should be smpte, closes: #59061
+
+ -- Bdale Garbee <bdale@gag.com>  Sun, 19 Mar 2000 20:28:30 -0700
+
+makedev (2.3.1-39) frozen unstable; urgency=low
+
+  * add missing major number clause to thinkpad/smapi device, closes: #57381
+    target frozen since this is clearly release-critical
+
+ -- Bdale Garbee <bdale@gag.com>  Wed,  9 Feb 2000 12:07:07 -0700
+
+makedev (2.3.1-38) frozen unstable; urgency=low
+
+  * target frozen since 56724 was tagged release-critical
+  * rework ftape stuff to match 2.2 kernel device definitions, closes: #56724
+  * add code to create /dev/smapi and symlink it as /dev/thinkpad.  This can
+    be called as either smapi or thinkpad.  Closes: #54714
+  * add /dev/radio symlink to radio0, closes: #55649
+  * update the netlink target to create fwmonitor and the tap* devices,
+    closes: #54772
+  * add IRDA device support, closes: #47296
+
+ -- Bdale Garbee <bdale@gag.com>  Thu,  3 Feb 2000 23:51:58 -0700
+
+makedev (2.3.1-37) unstable; urgency=low
+
+  * add openprom entry for Sparc systems, closes: #54296
+
+ -- Bdale Garbee <bdale@gag.com>  Fri,  7 Jan 2000 20:03:00 -0700
+
+makedev (2.3.1-36) unstable; urgency=low
+
+  * fix cyclades target to make 32 instead of 33 devices, and update man page
+    to match what the code does, closes: #51892
+  * add st0/st1/scd0/scd1 to generic-i386 and generic-alpha to improve the
+    consistency across platforms, closes: #52871
+  * create an initial generic-arm target, anticipating the need as debian-arm
+    struggles to get ready to release with potato.
+  * update handling of network block devices (nb) so that specifying a single
+    device works as expected.  calling for 'nb' will give nb0 and nb1.  
+    Closes: #53781
+  * support digital joysticks (djs) in joystick/js target, closes: #53314
+  * update to current policy rev, add Build-Depends.
+
+ -- Bdale Garbee <bdale@gag.com>  Fri,  7 Jan 2000 02:14:24 -0700
+
+makedev (2.3.1-35) unstable; urgency=low
+
+  * change group of video4linux devices to new group video appearing in
+    base-passwd 3.0.4, closes: 51429
+
+ -- Bdale Garbee <bdale@gag.com>  Sun, 28 Nov 1999 20:00:12 -0700
+
+makedev (2.3.1-34) unstable; urgency=low
+
+  * re-craft 'ida' target the same way we did dac960 to allow the boot-floopies
+    folks to create just one or two cards worth.  Closes: #51341
+
+ -- Bdale Garbee <bdale@gag.com>  Fri, 26 Nov 1999 17:54:56 -0700
+
+makedev (2.3.1-33) unstable; urgency=low
+
+  * add usbmouse support to busmice target, closes: #50326
+
+ -- Bdale Garbee <bdale@gag.com>  Tue, 16 Nov 1999 03:20:03 -0700
+
+makedev (2.3.1-32) unstable; urgency=low
+
+  * add 'audio' to the targets for generic-i386, closes: #49935
+  * craft an initial generic-alpha target to make the boot-floppies stuff
+    work right.  For now, just clone the i386 target since I have no idea
+    what is really needed...  closes: #49934
+  * add support for creating ramN devices one at a time, closes: #49853
+  * add target 'consoleonly' that creates the minimum number of devices to
+    support /dev/console, and recraft the 'console' target to use it and then
+    add all the vcs* devices, et al.  Closes: #49852
+  * re-craft 'dac960' target to be a loop around targets dac960.[0-7] so that
+    boot-floppies creators can create just one or two cards worth of devices
+    instead of having to do them all.  Closes: #49864
+
+ -- Bdale Garbee <bdale@gag.com>  Mon, 15 Nov 1999 22:38:43 -0700
+
+makedev (2.3.1-31) unstable; urgency=low
+
+  * fixes for major numbers on some oddball CDROM types, needed for boot disks
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 10 Nov 1999 23:58:56 -0700
+
+makedev (2.3.1-30) unstable; urgency=low
+  
+  * fill in a few more audio devices, closes: #49107
+
+ -- Bdale Garbee <bdale@gag.com>  Wed,  3 Nov 1999 20:28:54 -0700
+
+makedev (2.3.1-29) unstable; urgency=low
+
+  * the /dev/vcs* handling is correct, closes: #42035
+  * fix case construct for ht0, closes: #42519
+  * fix major number determination for several devices, closes: #43560
+  * add js2, js3 to joystick device creation, but leave owner/group/mode
+    the same as for mice until/unless some more compelling argument is
+    presented, closes: #43790
+  * improve consistency of vcs device creation, making vcs0 and vcsa0, with
+    symlinks for vcs and vcsa, closes: #45698
+  * add support for /dev/3dfx, closes: #48734
+  * /dev/sr* is obsolete, use /dev/scd*, closes: #32723
+  * RH 2.5 was merged as of 2.3.1-24, closes: #45153
+  * FHS compliance
+
+ -- Bdale Garbee <bdale@gag.com>  Sat, 30 Oct 1999 16:53:32 -0600
+
+makedev (2.3.1-28) unstable; urgency=medium
+
+  * /o\ oops... -27 was broken badly.  Close 42355, 42359, 42361. 
+
+ -- Bdale Garbee <bdale@gag.com>  Tue,  3 Aug 1999 02:38:06 -0600
+
+makedev (2.3.1-27) unstable; urgency=medium
+
+  * fix loop's major number, closes 38559.
+  * fix group of scd* to be cdrom, not disk.  Closes 41227, 41812.
+  * add vbi symlink, closes 39406
+
+ -- Bdale Garbee <bdale@gag.com>  Mon,  2 Aug 1999 00:59:19 -0600
+
+makedev (2.3.1-26) unstable; urgency=medium
+
+  * fix another syntax error introduced in -25...  /o\
+
+ -- Bdale Garbee <bdale@gag.com>  Sat, 29 May 1999 03:12:32 -0600
+
+makedev (2.3.1-25) unstable; urgency=medium
+
+  * fix *ugly* typos introduced in -24, closes 38489, 38465.
+  * update MAKEDEV to install the mouse -> sunmouse link in generic-sparc,
+    in addition to making it in the postinst if needed.  Closes 38432.
+  * have MAKEDEV exit with error 1 if we hit a "don't know how to make device"
+    situation.  I'm a bit concerned about this since it *might* break a
+    package postinst somewhere.  However, it is clearly the right thing to do
+    on a purely conceptual level.  Closes 29974.
+  * add support for Free S/WAN (IPSEC) device, closes 38372.
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 26 May 1999 14:00:29 -0600
+
+makedev (2.3.1-24) unstable; urgency=low
+
+  * fold in patch from Espy to provide all the functionality of the RedHat
+    makedev 2.5.  Leave our version number as 2.3.1-XX for now, since we're
+    not actually cleanly derived from the 2.5 RedHat bits. Closes 37795, 28616.
+  * make 'scd' act like 'scd-all', closes 37071
+  * patch for postinst typo, closes 37612
+  * move MAKEDEV to /sbin, create an init.d fragment to put a symlink in the
+    /dev directory at boot time.  This should allow devfs to do its thing,
+    closing 37795, 33025.
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 26 May 1999 14:00:29 -0600
+
+makedev (2.3.1-23) stable unstable; urgency=low
+
+  * fix problems with st* and adb pointed out by Hartmut
+
+ -- Bdale Garbee <bdale@gag.com>  Thu, 15 Apr 1999 08:39:39 -0600
+
+makedev (2.3.1-22) unstable; urgency=low
+
+  * add 'hamradio' as a target, which is a macro for the new scc[0-7] and
+    bc[0-3] targets, closes 34773.  
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 14 Apr 1999 11:55:46 -0600
+
+makedev (2.3.1-21) stable unstable; urgency=low
+
+  * make /dev/mouse a symlink to /dev/sunmouse on sparc, closes 35616
+  * have postinst create audio devices, closes 35646
+  * also create [alm] suffix versions for st* devices, closes 33041
+  * add support for hd[ijkl]... noticed while investigating bug 33798
+  * use the same owner/group/perms for nvram that we use for kmem, closes 34111
+  * add loop to the std device set, closes 34899
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 14 Apr 1999 11:13:47 -0600
+
+makedev (2.3.1-20) stable unstable; urgency=medium
+
+  * release-critical fixes from Hartmut for powerpc, closes 34004
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 10 Mar 1999 07:51:08 -0700
+
+makedev (2.3.1-19) frozen unstable; urgency=medium
+
+  * fix identification of 'sg' in update, closes the part of 33752 (grave)
+    that I can duplicate on i386 in -18
+
+ -- Bdale Garbee <bdale@gag.com>  Tue, 23 Feb 1999 07:44:30 -0700
+
+makedev (2.3.1-18) frozen unstable; urgency=medium
+
+  * as requested by Wichert, have the postinst force /dev/kmem owner, group,
+    and permissions since this is a security issue, closes 33703.
+  * another patch needed for m68k slink boot floppies from Michael Schmitz
+
+ -- Bdale Garbee <bdale@gag.com>  Mon, 22 Feb 1999 22:56:47 -0700
+
+makedev (2.3.1-17) frozen unstable; urgency=low
+
+  * Wichert points out that /dev/kmem doesn't need to be group writeable.
+
+ -- Bdale Garbee <bdale@gag.com>  Sat, 20 Feb 1999 16:12:29 -0700
+
+makedev (2.3.1-16) frozen unstable; urgency=medium
+
+  * apply patch for m68k that is release-critical for slink
+
+ -- Bdale Garbee <bdale@gag.com>  Fri, 19 Feb 1999 20:07:05 -0700
+
+makedev (2.3.1-15) frozen unstable; urgency=medium
+
+  * fix major number for sunmouse as per Eric Delaunay, closes 33425
+  * tighten default permission on mouse and joystick devices, closes 32378
+  * change audio devices to root.audio 660, closes 32849
+  * apply patch from Eric Delaunay to fix problem with scsi devices and 2.2
+    kernels, closes 32999
+  * target 'frozen' since the sunmouse fix at the very least should be in 
+    slink...
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 17 Feb 1999 16:53:41 -0700
+
+makedev (2.3.1-14) frozen unstable; urgency=low
+
+  * additions from Eric Delaunay needed for sparc frozen, closes 32458
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 27 Jan 1999 13:54:31 -0700
+
+makedev (2.3.1-13) frozen unstable; urgency=low
+
+  * make random/urandom available separately, not just in std, closes 32145
+
+ -- Bdale Garbee <bdale@gag.com>  Tue, 19 Jan 1999 21:27:14 -0700
+
+makedev (2.3.1-12) frozen unstable; urgency=low
+
+  * add random/urandom to the std target, closes 31562 and 29193
+  * update manpage to indicate the manpage is out of date, I need to make a
+    chunk of time at some point to give it a thorough review/update.
+  * don't make /dev/cua*, fix group on /dev/ttyS*, closes 30867
+  * change postinst to use syntax that isn't bash-specific, closes 18807 
+    and 30849
+
+ -- Bdale Garbee <bdale@gag.com>  Sat,  9 Jan 1999 00:39:25 -0700
+
+makedev (2.3.1-11) frozen unstable; urgency=low
+
+  * allow 16 sd's instead of 8, as the kernel does.  closes 30555.
+  * create hdc and hdd in generic-i386, and create 20 partitions per hd 
+    instead of 4, closes 30522.
+  * go back (forward?) to using 'u' instead of '[DHE]' in fd entries, 
+    closes 30438.
+  * add 'fb' to both the generic-i386 and generic-powerpc clauses, closes
+    29228
+
+ -- Bdale Garbee <bdale@gag.com>  Sat, 12 Dec 1998 08:10:22 -0700
+
+makedev (2.3.1-10) frozen unstable; urgency=low
+
+  * instead of having the postinst explicitly link /dev/console, have it
+    call MAKEDEV if console doesn't exist.  Update MAKEDEV to know how to
+    link it for 2.0 kernels and prior, and create the explicit device for
+    2.1 and later running kernels.  Building this based on running kernel
+    revision doesn't feel clean, but I see no better way.
+
+ -- Bdale Garbee <bdale@gag.com>  Sun,  8 Nov 1998 18:49:30 -0700
+
+makedev (2.3.1-9) frozen unstable; urgency=low
+
+  * fix postinst to cd to /dev so that devices don't end up in /, now that
+    we don't do the cd in MAKEDEV itself
+  * move 'generic' to 'generic-i386', and have 'generic' use dpkg to determine
+    which generic-<arch> to use... this paves the way for fixing support for
+    other architectures.
+  * Several changes per drow on IRC:
+      change MAXVT from 8 to 63
+      change sd[ab] to create 15 instead of 8 subdevices
+      fix char->block on one scd instance
+      diffs to add support for powerpc machines
+
+ -- Bdale Garbee <bdale@gag.com>  Sun,  8 Nov 1998 18:49:30 -0700
+
+makedev (2.3.1-8) frozen unstable; urgency=low
+
+  * add support for ram0 to the ram* list (0 was omitted), part of 28933.
+  * device 'rtc' was part of 'misc', give it a top-level entry too to reduce
+    possible confusion.  Part of 28933.
+  * add an entry for 'initrd', closes 28933 (slink release-critical).
+
+ -- Bdale Garbee <bdale@gag.com>  Sun,  8 Nov 1998 10:18:37 -0700
+
+makedev (2.3.1-7) frozen unstable; urgency=low
+
+  * now that MAKEDEV is a script, this can be an 'all' package instead of
+    an 'any'.  Thanks to Hartmut Koptein for pointing this out.
+
+ -- Bdale Garbee <bdale@gag.com>  Fri,  6 Nov 1998 11:42:58 -0700
+
+makedev (2.3.1-6) frozen unstable; urgency=low
+
+  * add ttyS entry so update works with recent 2.1 kernels
+
+ -- Bdale Garbee <bdale@gag.com>  Mon,  2 Nov 1998 21:47:34 -0700
+
+makedev (2.3.1-5) frozen unstable; urgency=low
+
+  * fix typo affecting fb devices, closes 28742
+  * fix syntax used for wildcarded devices, part of closing 28769
+  * fix error in minor numbers for isdn-ippp, part of closing 28769
+
+ -- Bdale Garbee <bdale@gag.com>  Sun,  1 Nov 1998 23:09:45 -0700
+
+makedev (2.3.1-4) frozen unstable; urgency=low
+
+  * add support for additional scd and sg devices, closes 28029.
+  * change device names for busmice back to what we used in makedev-1.*, which
+    is also what the kernel documentation uses.  Closes 28143.
+  * add support for various devices in contemporary kernels, closes 27720.
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 28 Oct 1998 23:41:58 -0700
+
+makedev (2.3.1-3) unstable; urgency=low
+
+  * use 'dialout' instead of 'serial' to select owner/group/perms for ISDN
+    devices, closes 27536
+  * use 'dialout' as group for serial devices instead of 'uucp' to be 
+    compatible with prior Debian makedev packages. 
+
+ -- Bdale Garbee <bdale@gag.com>  Wed,  7 Oct 1998 22:50:36 -0600
+
+makedev (2.3.1-2) unstable; urgency=low
+
+  * fix scd-all and sg-all entry points.  The latter is just an alias for 'sg',
+    but the former was genuinely missing.  Switch sg devices to numeric suffix
+    to comply with kernel's devices.txt.  Closes 27490.
+  * close 26586, since I'm pretty sure it's a weirdy not caused by the package.
+  * add ISDN devices, closes 26971.
+  * add cfs0 for CODA, closes 23815.
+
+ -- Bdale Garbee <bdale@gag.com>  Tue,  6 Oct 1998 00:33:59 -0600
+
+makedev (2.3.1-1) unstable; urgency=low
+
+  * New upstream version.  This is a *significant* change!
+    This is a move (back?) from the short-lived makedev that depended on a     
+    non-free parser to the one that is just a shell script.  We will now be    
+    more like other Linux distributions, no longer depending on a non-free     
+    hunk of code to build the makedev package, and some porting and other      
+    issues will get better.                                                    
+  * With the major change in upstream code, several bugs are not relevant 
+    any more.  Therefore, close 12949, 18037, 18807, 20665, 22648, 22868, 
+    23771, 23898, 24477, 24572, 25660, 25840, 26058.
+  * add support for /dev/ptmx, built as part of pty*, closes 23612.
+  * add support for /dev/ed[ab], closes 23887.
+
+ -- Bdale Garbee <bdale@gag.com>  Sun,  6 Sep 1998 21:21:32 -0600
+
+makedev (1.6-32) frozen unstable; urgency=medium
+
+  * serial devices now owned by root.dialout, closes 22297 (important)
+  * tape devices now owned by root.tape, closes 11910 
+  * be explicit about which 'ls' we're calling, closes 22225
+
+ -- Bdale Garbee <bdale@gag.com>  Fri, 22 May 1998 23:52:58 -0600
+
+makedev (1.6-31) unstable; urgency=low
+
+  * add powerpc support, closes 21949
+  * lose the menu entry
+
+ -- Bdale Garbee <bdale@gag.com>  Sat,  2 May 1998 01:29:06 -0600
+
+makedev (1.6-30) unstable; urgency=low
+
+  * change from debmake to debhelper
+  * fix errors and warnings reported by lintian
+  * deliver devices.sgml instead of trying to build the .txt and .html files,
+    closes bug 16953
+
+ -- Bdale Garbee <bdale@gag.com>  Mon,  9 Feb 1998 22:31:43 -0700
+
+makedev (1.6-29) unstable; urgency=low
+
+  * add arpd device, on request of Elie Rosenblum <erosenbl@nyx.net>.
+
+ -- Bdale Garbee <bdale@gag.com>  Wed, 14 Jan 1998 09:42:14 -0700
+
+makedev (1.6-28) unstable; urgency=low
+
+  * new maintainer
+
+ -- Bdale Garbee <bdale@gag.com>  Fri,  5 Dec 1997 23:22:57 -0700
+
+makedev (1.6-27) unstable; urgency=low
+
+  * changed /dev/console handling. 
+  * updated devinfo to kernel 2.1.62 device list.
+  * changed all device with group "sys" to group "root".
+
+ -- Andreas Jellinghaus <aj@debian.org>  Sat,  8 Nov 1997 11:56:18 +0100
+
+makedev (1.6-26) unstable; urgency=low
+
+  * fixed bug #13787 : amigamouse1 was not corrected by postinst.
+  * fixed ad devices.
+  * added nvram device, added ad* to std-hd-m68k, added ttyS4 and ttyS6
+    to m68k boot-floppies and m68k generic
+
+ -- Andreas Jellinghaus <aj@debian.org>  Thu, 16 Oct 1997 20:09:14 +0200
+
+makedev (1.6-25) unstable; urgency=low
+
+  * bug #9077 is obsolete (kernel bug, fixed in kernel).
+  * libc6 release : closes bugs #12791 and #13122.
+  * fixed bug #12158 : added sr* and sg* devices.
+  * fixed bug #12385 : wrong standard number.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Fri, 19 Sep 1997 16:12:32 +0200
+
+makedev (1.6-24) unstable; urgency=low
+
+  * removed support for old floppy devices.
+  * only create generic floppy devices.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Wed, 10 Sep 1997 10:31:53 +0200
+
+makedev (1.6-23) unstable; urgency=low
+
+  * renamed isdn batches : isdn-xx is 8 devices, isdn-xx-all are 64
+    devices (isdn-io, isdn-tty, isdn-ippp, isdn-cu).
+  * increased numer to 5500 devices. (makedev is getting too large).
+
+ -- Andreas Jellinghaus <aj@debian.org>  Mon,  8 Sep 1997 21:40:11 +0200
+
+makedev (1.6-22) unstable; urgency=low
+
+  * bugfix with cvstree (i forgot to commit befor tagging :-()
+
+ -- Andreas Jellinghaus <aj@debian.org>  Mon,  8 Sep 1997 21:30:08 +0200
+
+makedev (1.6-21) unstable; urgency=low
+
+  * bugfix : out of memory. aarrgg : makedev has fixed size tables.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Mon,  8 Sep 1997 21:28:24 +0200
+
+makedev (1.6-20) unstable; urgency=low
+
+  * corrected problem with my own cvs tree
+
+ -- Andreas Jellinghaus <aj@debian.org>  Sun,  7 Sep 1997 16:54:10 +0200
+
+makedev (1.6-19) unstable; urgency=low
+
+  * changed /dev/full to mode 0622 (0666 was a security hole, as
+  			discussed on linux-kernel).
+
+ -- Andreas Jellinghaus <aj@debian.org>  Sun,  7 Sep 1997 16:22:27 +0200
+
+makedev (1.6-18) unstable; urgency=low
+
+  * added isdn-*-small devices (only 8 devices, not 64). 
+
+ -- Andreas Jellinghaus <aj@debian.org>  Fri, 22 Aug 1997 12:57:20 +0200
+
+makedev (1.6-17) unstable; urgency=low
+
+  * close bug 6541 (missing audio device) : not reproduceable 
+  * generate random and urandom, if missing (bug #12134)
+  * enabled makedev to create more sg* and sr* devices (bug #12158)
+  * changed doubletalkt to dtlk as requested
+  * sd[a-h]16 removed (bug, sda16 = sdb, scsi only supports 15
+    partitions) 
+
+ -- Andreas Jellinghaus <aj@debian.org>  Sun, 17 Aug 1997 19:19:33 +0200
+
+makedev (1.6-16) stable unstable; urgency=low
+
+  * security bug fixed : all mouse devices are now mode 600.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Wed, 30 Jul 1997 10:31:04 +0200
+
+makedev (1.6-15) unstable; urgency=low
+
+  * ibcs2 removed from generic set. revised ibcs2-unoff.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Tue, 29 Jul 1997 13:13:43 +0200
+
+makedev (1.6-14) unstable; urgency=low
+
+  * bug in postinst : type "MAKDEV" and "/dev/tty0" instead of "tty0" (#11441)
+  * stable version (libc5 compiled) for isdnutils
+
+ -- Andreas Jellinghaus <aj@debian.org>  Fri, 25 Jul 1997 10:12:14 +0200
+
+makedev (1.6-13) unstable; urgency=low
+
+  * fixed menu entry (thanks to Abdallah Chatila <acha@poboxes.com>)
+
+ -- Andreas Jellinghaus <aj@debian.org>  Wed,  9 Jul 1997 21:33:55 +0200
+
+makedev (1.6-12) unstable; urgency=low
+
+  * bug fix (changed doubletalk to class audio).
+
+ -- Andreas Jellinghaus <aj@debian.org>  Wed,  9 Jul 1997 09:45:38 +0200
+
+makedev (1.6-11) unstable; urgency=low
+
+  * Fixed isdn devices (ippp were missing).
+  * No longer create isdn device as default (that is done by isdnutils).
+  * Added doubletalk device. Added more ibcs2 stuff.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Tue,  8 Jul 1997 19:04:45 +0200
+
+makedev (1.6-10) unstable stable; urgency=low
+
+  * fixed console device, added documentation.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Wed, 25 Jun 1997 13:20:46 +0200
+
+makedev (1.6-9) unstable stable; urgency=low
+
+  * Added comment about cua devices.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Tue, 24 Jun 1997 09:21:20 +0200
+
+makedev (1.6-8) unstable stable; urgency=low
+
+  * changed /dev/console to be a symlink to /dev/tty0.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Sun, 22 Jun 1997 21:42:35 +0200
+
+makedev (1.6-7) unstable stable; urgency=low
+
+  * fixed bug with possible /dev/console symlink.
+  * fixed bug with not always creating /dev/tty0. (xfree 3.3 need this)
+
+ -- Andreas Jellinghaus <aj@debian.org>  Thu, 19 Jun 1997 22:38:46 +0200
+
+makedev (1.6-6) unstable; urgency=low
+
+  * fixed documentation (thanks to David Welton <davidw@efn.org>)
+  * patch for m68k from frank neumann included
+
+ -- Andreas Jellinghaus <aj@debian.org>  Mon,  9 Jun 1997 15:45:00 +0200
+
+makedev (1.6-5) unstable; urgency=low
+
+  * libc6 release
+  * added postinst script to change tty/pty devices to new major
+    numbers (the next time you boot).
+  * changed all serial devices from root.dialout to uucp.dialout
+  * added generic-ARCH batches
+  * changed (u)random permissions from 444 to 644
+  * corrected mcd/mcdx handling.
+  * small bugfix in manpages.
+
+ -- Andreas Jellinghaus <aj@debian.org>  Thu, 24 Apr 1997 19:12:58 +0200
+
+makedev (1.6-4) unstable frozen; urgency=low
+
+  * fixed manpage, added generic-m68k, added mfd0, changed framebuffer
+        create both : fb[01] and fb[01]current, changed framebuffer
+        class to mode 664. disabled adb (apple desktob bus).
+        this fixes bug #9053
+  * fixed mitsumi cdrom detection. 
+
+ -- Andreas Jellinghaus <aj@debian.org>  Wed, 23 Apr 1997 16:23:50 +0200
+
+makedev (1.6-3) unstable frozen; urgency=low
+
+  * bug fixed : st?l devices (nor st?1). 
+  * only create fd0 and fd1 with generic
+  * seperated old device names to "-old" groups
+  * not generating cm205cd by default
+  * "boot-floppy" added with less devices
+  * documentation in sgml and txt format
+
+ -- Andreas Jellinghaus <aj@debian.org>  Wed, 16 Apr 1997 12:58:56 +0200
+
+makedev (1.6-2) unstable frozen; urgency=high
+
+  * new maintainer Andreas Jellinghaus <aj@debian.org> 
+  * rewrote devinfo (according to linux allocated devices, 2.0.30,2.1.31
+  * this fixes bug #8396 (isdn devices)
+  * this fixes bug #8399 (don't generate cu* devices)
+  * this fixes bug #7144 (device for goldstar cdrom - gscd)
+  * this fixes bug #8173 (new names for floppy devices fd*)
+  * this fixes bug #8068 (hd[efgh] devises added : now ide[0123])
+    (this includes: renamed all floppy device (bug #8173),
+  * this fixes bug #3493 (isdn devices)
+  * this fixes bug #5542 (ttyS* group dialout, cu* not generated)
+  * this fixes bug #6926 (loop back devices corrected)
+  * this fixes bug #6983 (loop back devices creatable)
+  * this fixes bug #7038 (mcd device creatable (only one))
+  * this fixes bug #7754 (sr* devices are created for compatibility)
+  * this fixes parts of bug #7783 (only new tty/pty are created)
+  * bug #7755 obsolete (old cat file ? current man page is ok)
+  * bug #8009 obsolete (disks 1997-04-04 are ok)
+  * remove from generic : cua[0-3] lmscd ram sbpcd[9-15] vcs0
+    added to generic: X0R aztcd beep bpcd cm205cd cm206cd exttrp gscd
+      hd[efgh]* hitcd hwtrap initrd ippp* jbm loop* mcd md* modreq nsfd
+      nst*[1am] optcd ram[0-7] ramdisk relay16 relay8 rtc sd[abcdefgh][9-16]
+      sequence2 sg[0-7] sjcd socksys spx sr[0-7] st*[1am] tpqic* tty[13-63]
+      ttyI[0-63] urandom vcs vcs[13-63] vcsa vcsa[13-63] watchdog
+         (ca. + 600 devices, size + 11 k in a ext2fs)
+
+ -- Andreas Jellinghaus <aj@debian.org>  Sun, 13 Apr 1997 21:06:14 +0200
+
+makedev (1.6-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bruce Perens <bruce@pixar.com>  Wed, 19 Mar 1997 20:40:17 -0800
+
+makedev (1.5-4) unstable; urgency=low
+
+  * Add devices. Increase the maximum size of a batch from 32 to 1024.
+
+ -- Bruce Perens <bruce@pixar.com>  Tue, 17 Dec 1996 20:34:06 -0800
+
+makedev (1.5-3) unstable; urgency=low
+
+  * Make hd[a-d][8-20] and sd[a-h][8-20]. Remove bad empty "omit" from
+    makedev.cfg
+
+ -- Bruce Perens <bruce@pixar.com>  Sun, 8 Dec 1996 09:42:18 -0800
+
+makedev (1.5-2) unstable; urgency=low
+
+  * Change class of ttySn devices to dialout.
+  * Add ISDN.
+
+ -- Bruce Perens <bruce@pixar.com>  Fri, 6 Dec 1996 21:17:12 -0800
+
+makedev (1.5-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Bruce Perens <bruce@pixar.com>  Wed, 30 Oct 1996 20:36:44 -0800
+
+Local variables:
+mode: debian-changelog
+End:
--- makedev-2.3.1.orig/debian/conffiles
+++ makedev-2.3.1/debian/conffiles
@@ -0,0 +1 @@
+/etc/init.d/makedev
--- makedev-2.3.1.orig/debian/control
+++ makedev-2.3.1/debian/control
@@ -0,0 +1,13 @@
+Source: makedev
+Section: base
+Priority: required
+Maintainer: Bdale Garbee <bdale@gag.com>
+Build-Depends: debhelper
+Standards-Version: 3.1.1.1
+
+Package: makedev
+Architecture: all
+Depends: base-passwd (>= 3.0.4)
+Description: Creates special device files in /dev.
+ The MAKEDEV executable is used to populate the /dev directory with device
+ files.
--- makedev-2.3.1.orig/debian/copyright
+++ makedev-2.3.1/debian/copyright
@@ -0,0 +1,45 @@
+This package is maintained for Debian by Bdale Garbee, <bdale@gag.com>.
+
+It was downloaded from ftp.redhat.com, as a source .rpm from the 5.1 release
+tree.
+
+Copyright:
+
+No explicit copyright is asserted.  Nick Holloway is the earliest author 
+recorded in the sourcecode.  I queried him for an explicit statement 
+regarding the license status of this work, and this is his reply:
+  
+ Date: Tue, 21 Jul 1998 19:57:10 +0100
+ From: Nick Holloway <Nick.Holloway@alfie.demon.co.uk>
+ Message-Id: <199807211857.TAA19068@alfie.demon.co.uk>
+ To: Bdale Garbee <bdale@gag.com>
+ Subject: Re: makedev license?
+ 
+ > I maintain the makedev package for Debian GNU/Linux.  I am about to move 
+ > from the ill-fated makedev-1.6 to the makedev-2.3.1 derived from your work 
+ > by the folks at Redhat.  I don't see any evidence of a copyright assertion 
+ > or explicit license statement in the source.  Your name appears to be the 
+ > earliest attached to the current sourcecode.  Am I correct in assuming the 
+ > GPL?  We try to be meticulous about having our base system be compliant 
+ > with our Debian Free Software Guidelines, so I'd like an explicit statement.
+ 
+ It was never explictly released as GPL, as that would have required
+ including the file COPYING which would have been much larger than the
+ actual MAKEDEV script (I was also too lazy to find out what incantations
+ needed to be made).  However, it is intended to be used as anyone sees
+ fit, and the statement under "Copying Policy" is "Freely Redistributable"
+ (see MAKEDEV.lsm from any of the releases I made).
+ 
+ The more recent modifications were done by Michael K. Johnson at
+ Redhat.  I think the understanding was that he would be taking over the
+ maintenance of MAKEDEV (our discussion took place last September).
+ 
+ The only previous history was (according to an old posting to
+ comp.os.linux) that I started with Jim Winstead's script.
+ 
+ So, as far as I am concerned, it is consistentwith the Debian FSG.
+ 
+ -- 
+  `O O'  | Home: Nick.Holloway@alfie.demon.co.uk  http://www.alfie.demon.co.uk/
+ // ^ \\ | Work: Nick.Holloway@parallax.co.uk
+ 
--- makedev-2.3.1.orig/debian/dirs
+++ makedev-2.3.1/debian/dirs
@@ -0,0 +1,2 @@
+sbin
+usr/share/man/man8
--- makedev-2.3.1.orig/debian/init.d
+++ makedev-2.3.1/debian/init.d
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+set -e
+
+case "$1" in
+  start)
+	ln -fs /sbin/MAKEDEV /dev/MAKEDEV
+	;;
+  stop|reload|restart|force-reload)
+	;;
+  *)
+	N=/etc/init.d/makedev
+	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- makedev-2.3.1.orig/debian/postinst
+++ makedev-2.3.1/debian/postinst
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+set +e
+
+#DEBHELPER#
+
+cd /dev
+
+/sbin/MAKEDEV std
+
+test -e /dev/console || /sbin/MAKEDEV console
+test -e /dev/tty0 || /sbin/MAKEDEV tty0
+test -e /dev/random || /sbin/MAKEDEV random
+test -e /dev/urandom || /sbin/MAKEDEV urandom
+test -e /dev/full && chmod 0622 /dev/full
+test -e /dev/audio || /sbin/MAKEDEV audio
+
+[ ! -f /dev/mouse -a -f /dev/sunmouse ] && ln -s sunmouse mouse
+
+for A in sda16 sdb16 sdc16 sdd16 sde16 sdf16 sdg16 sdh16 \
+	 ada16 adb16 adc16 add16 ade16 adf16 adg16 adh16
+do
+	test -e /dev/$A && rm /dev/$A
+done
+
+for A in logibm psaux inportbm atibm jbm smouse logimouse psmouse \
+msmouse atimouse jmouse amigamouse atarimouse sunmouse amigamouse1
+do
+	test -e /dev/$A && chmod 600 /dev/$A
+done
+
+# fix security hole caused by group-write permissions on kmem
+test -e /dev/kmem && chown root.kmem /dev/kmem && chmod 0640 /dev/kmem
+
+LIST=""
+
+for TYPE in tty pty ; do
+	for LETTER in p q r s t u v w x y z a b c d e ; do
+		if [ -e /dev/$TYPE$LETTER"0" ]; then
+			MAJOR="`/bin/ls -l /dev/$TYPE$LETTER"0"|cut -c33-36`"
+			if [ "$MAJOR" = 4 ] ; then
+				LIST="$LIST $TYPE$LETTER"
+			fi
+		fi
+	done
+done
+
+if [ -n "$LIST" ]; then
+	cat > /etc/rc.boot/makedev << EOF
+#!/bin/sh
+
+echo "Creating new console devices"
+/sbin/MAKEDEV $LIST
+
+rm /etc/rc.boot/makedev ; exit 0
+EOF
+
+chmod 755 /etc/rc.boot/makedev
+
+fi
+
+exit 0
--- makedev-2.3.1.orig/debian/preinst
+++ makedev-2.3.1/debian/preinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f /usr/man/man8/MAKEDEV.8 /usr/man/man8/MAKEDEV-C.8 \
+	/usr/man/man8/MAKEDEV-C.8.gz
+exit 0
--- makedev-2.3.1.orig/debian/rules
+++ makedev-2.3.1/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	-$(MAKE) clean
+	-rm -f debian/devices.txt debian/devices*html
+	dh_clean
+
+# Build architecture-independent files here.
+binary-indep: build
+
+# Build architecture-dependent files here.
+binary-arch: build
+#	dh_testversion
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	ROOT=debian/tmp $(MAKE) install 
+
+	dh_installdocs 
+	dh_installexamples
+	dh_installmenu
+	dh_installinit
+	dh_installcron
+	dh_installmanpages
+	dh_undocumented
+	dh_installchangelogs
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_suidregister
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+#	dh_makeshlibs
+	dh_md5sums
+	dh_builddeb
+
+source diff:                                                                  
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary