head	1.337;
access;
symbols
	RELENG_4_11_0_RELEASE:1.243.2.69.2.1
	RELENG_4_11:1.243.2.69.0.2
	RELENG_4_11_BP:1.243.2.69
	RELENG_4_10_0_RELEASE:1.243.2.67
	RELENG_4_10:1.243.2.67.0.2
	RELENG_4_10_BP:1.243.2.67
	RELENG_4_9_0_RELEASE:1.243.2.60
	RELENG_4_9:1.243.2.60.0.2
	RELENG_4_9_BP:1.243.2.60
	RELENG_4_8_0_RELEASE:1.243.2.57
	RELENG_4_8:1.243.2.57.0.2
	RELENG_4_8_BP:1.243.2.57
	RELENG_5_0_0_RELEASE:1.332.2.2
	RELENG_5_0:1.332.0.2
	RELENG_5_0_BP:1.332
	RELENG_4_7_0_RELEASE:1.243.2.53
	RELENG_4_7:1.243.2.53.0.2
	RELENG_4_7_BP:1.243.2.53
	RELENG_4_6_2_RELEASE:1.243.2.47
	RELENG_4_6_1_RELEASE:1.243.2.47
	RELENG_4_6_0_RELEASE:1.243.2.47
	RELENG_4_6:1.243.2.47.0.2
	RELENG_4_6_BP:1.243.2.47
	RELENG_4_5_0_RELEASE:1.243.2.43
	RELENG_4_5:1.243.2.43.0.2
	RELENG_4_5_BP:1.243.2.43
	RELENG_4_4_0_RELEASE:1.243.2.36
	RELENG_4_4:1.243.2.36.0.2
	RELENG_4_4_BP:1.243.2.36
	RELENG_4_3_0_RELEASE:1.243.2.28
	RELENG_4_3:1.243.2.28.0.2
	RELENG_4_3_BP:1.243.2.28
	RELENG_4_2_0_RELEASE:1.243.2.15
	RELENG_4_1_1_RELEASE:1.243.2.10
	PRE_SMPNG:1.271
	RELENG_4_1_0_RELEASE:1.243.2.9
	RELENG_4_0_0_RELEASE:1.243
	RELENG_4:1.243.0.2
	RELENG_4_BP:1.243
	old_RELENG_3_3_0_RELEASE:1.183.2.14
	old_RELENG_3_2_PAO:1.183.2.6.0.2
	old_RELENG_3_2_PAO_BP:1.183.2.6
	old_RELENG_3_2_0_RELEASE:1.183.2.6
	old_RELENG_3_1_0_RELEASE:1.183.2.3
	old_RELENG_3:1.183.0.2
	old_RELENG_3_BP:1.183
	old_RELENG_2_2_8_RELEASE:1.127.2.20
	old_RELENG_3_0_0_RELEASE:1.173
	old_RELENG_2_2_7_RELEASE:1.127.2.20
	old_RELENG_2_2_6_RELEASE:1.127.2.19
	old_RELENG_2_2_5_RELEASE:1.127.2.11
	old_RELENG_2_2_2_RELEASE:1.127.2.10
	old_RELENG_2_2_1_RELEASE:1.127.2.9
	old_RELENG_2_2_0_RELEASE:1.127.2.9
	old_RELENG_2_1_7_RELEASE:1.95.4.16
	old_RELENG_2_1_6_1_RELEASE:1.95.4.16
	old_RELENG_2_1_6_RELEASE:1.95.4.16
	old_RELENG_2_2:1.127.0.2
	old_RELENG_2_2_BP:1.127
	old_RELENG_2_1_5_RELEASE:1.95.4.16
	old_RELENG_2_1_0_RELEASE:1.95.4.8
	old_RELENG_2_1_0:1.95.0.4
	old_RELENG_2_1_0_BP:1.95
	old_RELENG_2_0_5_RELEASE:1.95
	old_RELENG_2_0_5:1.95.0.2
	old_RELENG_2_0_5_BP:1.95
	old_RELENG_2_0_5_ALPHA:1.95
	old_RELEASE_2_0:1.49
	old_BETA_2_0:1.49
	old_ALPHA_2_0:1.47.0.2
	old_MOVED_NEWCVS:1.37
	old_FINAL_1_1_5:1.37
	old_ALPHA_1_1_5:1.37
	old_FINAL_1_1:1.28.2.1
	old_GAMMA_1_1:1.28.2.1
	old_BETA_1_1:1.28.0.2
	old_BP_BETA_1_1:1.28
	old_FINAL_1_0:1.13
	old_EPSILON_1_0:1.9
	old_GAMMA_1_0:1.5
	old_BETA_1_0:1.4
	old_ALPHA_1_0:1.2
	old_V_0_0_1_0:1.1.1.1;
locks; strict;
comment	@# @;


1.337
date	2003.02.01.22.22.50;	author phk;	state dead;
branches;
next	1.336;

1.336
date	2003.01.01.18.48.40;	author schweikh;	state Exp;
branches;
next	1.335;

1.335
date	2002.12.31.16.45.47;	author rwatson;	state Exp;
branches;
next	1.334;

1.334
date	2002.12.31.06.38.35;	author simokawa;	state Exp;
branches;
next	1.333;

1.333
date	2002.12.31.06.14.59;	author rwatson;	state Exp;
branches;
next	1.332;

1.332
date	2002.10.24.17.59.58;	author luigi;	state Exp;
branches
	1.332.2.1;
next	1.331;

1.331
date	2002.10.20.08.17.34;	author scottl;	state Exp;
branches;
next	1.330;

1.330
date	2002.10.05.18.28.48;	author scottl;	state Exp;
branches;
next	1.329;

1.329
date	2002.10.04.20.44.46;	author sam;	state Exp;
branches;
next	1.328;

1.328
date	2002.09.17.22.39.16;	author sam;	state Exp;
branches;
next	1.327;

1.327
date	2002.08.10.22.03.58;	author iedowse;	state Exp;
branches;
next	1.326;

1.326
date	2002.08.10.00.20.32;	author iedowse;	state Exp;
branches;
next	1.325;

1.325
date	2002.07.10.16.07.33;	author joe;	state Exp;
branches;
next	1.324;

1.324
date	2002.06.26.03.34.32;	author ken;	state Exp;
branches;
next	1.323;

1.323
date	2002.03.31.09.15.43;	author bde;	state Exp;
branches;
next	1.322;

1.322
date	2002.03.10.22.34.56;	author cjc;	state Exp;
branches;
next	1.321;

1.321
date	2002.02.09.21.16.54;	author jhb;	state Exp;
branches;
next	1.320;

1.320
date	2001.12.27.22.41.35;	author cjc;	state Exp;
branches;
next	1.319;

1.319
date	2001.12.27.15.03.25;	author joerg;	state Exp;
branches;
next	1.318;

1.318
date	2001.12.26.15.44.06;	author sheldonh;	state Exp;
branches;
next	1.317;

1.317
date	2001.12.05.08.50.51;	author des;	state Exp;
branches;
next	1.316;

1.316
date	2001.12.04.00.48.21;	author des;	state Exp;
branches;
next	1.315;

1.315
date	2001.12.04.00.40.38;	author des;	state Exp;
branches;
next	1.314;

1.314
date	2001.11.27.23.12.00;	author msmith;	state Exp;
branches;
next	1.313;

1.313
date	2001.11.27.11.57.47;	author sheldonh;	state Exp;
branches;
next	1.312;

1.312
date	2001.11.25.12.49.32;	author sheldonh;	state Exp;
branches;
next	1.311;

1.311
date	2001.11.20.17.56.34;	author sheldonh;	state Exp;
branches;
next	1.310;

1.310
date	2001.11.20.17.33.10;	author sheldonh;	state Exp;
branches;
next	1.309;

1.309
date	2001.11.20.17.24.35;	author sheldonh;	state Exp;
branches;
next	1.308;

1.308
date	2001.11.18.00.20.08;	author iedowse;	state Exp;
branches;
next	1.307;

1.307
date	2001.11.13.18.07.14;	author matusita;	state Exp;
branches;
next	1.306;

1.306
date	2001.08.23.22.19.53;	author dd;	state Exp;
branches;
next	1.305;

1.305
date	2001.08.21.00.03.28;	author mjacob;	state Exp;
branches;
next	1.304;

1.304
date	2001.07.25.22.36.14;	author scottl;	state Exp;
branches;
next	1.303;

1.303
date	2001.06.28.07.07.12;	author dd;	state Exp;
branches;
next	1.302;

1.302
date	2001.05.29.09.30.42;	author phk;	state Exp;
branches;
next	1.301;

1.301
date	2001.05.29.09.29.29;	author phk;	state Exp;
branches;
next	1.300;

1.300
date	2001.05.02.01.08.00;	author brian;	state Exp;
branches;
next	1.299;

1.299
date	2001.03.27.17.07.37;	author obrien;	state Exp;
branches;
next	1.298;

1.298
date	2001.03.27.01.23.07;	author obrien;	state Exp;
branches;
next	1.297;

1.297
date	2001.03.25.15.51.43;	author scottl;	state Exp;
branches;
next	1.296;

1.296
date	2001.03.25.14.11.55;	author scottl;	state Exp;
branches;
next	1.295;

1.295
date	2001.03.22.21.29.16;	author scottl;	state Exp;
branches;
next	1.294;

1.294
date	2001.03.22.10.39.03;	author jkh;	state Exp;
branches;
next	1.293;

1.293
date	2001.03.22.07.30.02;	author jkh;	state Exp;
branches;
next	1.292;

1.292
date	2001.03.15.15.32.42;	author sos;	state Exp;
branches;
next	1.291;

1.291
date	2001.03.06.01.02.23;	author obrien;	state Exp;
branches;
next	1.290;

1.290
date	2001.02.27.18.36.56;	author julian;	state Exp;
branches;
next	1.289;

1.289
date	2001.02.25.22.52.55;	author msmith;	state Exp;
branches;
next	1.288;

1.288
date	2001.02.03.23.31.31;	author brian;	state Exp;
branches;
next	1.287;

1.287
date	2001.02.03.00.32.17;	author brian;	state Exp;
branches;
next	1.286;

1.286
date	2001.01.26.01.13.29;	author cokane;	state Exp;
branches;
next	1.285;

1.285
date	2001.01.07.18.43.31;	author n_hibma;	state Exp;
branches;
next	1.284;

1.284
date	2000.12.28.20.59.19;	author phk;	state Exp;
branches;
next	1.283;

1.283
date	2000.12.16.18.46.45;	author phk;	state Exp;
branches;
next	1.282;

1.282
date	2000.12.11.19.10.40;	author nsayer;	state Exp;
branches;
next	1.281;

1.281
date	2000.11.28.21.53.42;	author msmith;	state Exp;
branches;
next	1.280;

1.280
date	2000.11.05.17.59.18;	author truckman;	state Exp;
branches;
next	1.279;

1.279
date	2000.11.05.15.34.44;	author truckman;	state Exp;
branches;
next	1.278;

1.278
date	2000.10.31.00.21.41;	author msmith;	state Exp;
branches;
next	1.277;

1.277
date	2000.10.29.14.06.12;	author n_hibma;	state Exp;
branches;
next	1.276;

1.276
date	2000.10.25.10.34.33;	author n_hibma;	state Exp;
branches;
next	1.275;

1.275
date	2000.10.24.15.40.20;	author sos;	state Exp;
branches;
next	1.274;

1.274
date	2000.10.24.14.31.24;	author sos;	state Exp;
branches;
next	1.273;

1.273
date	2000.09.14.17.48.47;	author markm;	state Exp;
branches;
next	1.272;

1.272
date	2000.09.13.05.03.02;	author msmith;	state Exp;
branches;
next	1.271;

1.271
date	2000.08.29.20.20.54;	author iwasaki;	state Exp;
branches;
next	1.270;

1.270
date	2000.08.28.23.14.44;	author jhb;	state Exp;
branches;
next	1.269;

1.269
date	2000.08.18.07.01.19;	author brian;	state Exp;
branches;
next	1.268;

1.268
date	2000.08.16.16.42.50;	author brian;	state Exp;
branches;
next	1.267;

1.267
date	2000.08.11.09.22.34;	author sos;	state Exp;
branches;
next	1.266;

1.266
date	2000.07.30.16.18.48;	author green;	state Exp;
branches;
next	1.265;

1.265
date	2000.07.30.03.15.11;	author green;	state Exp;
branches;
next	1.264;

1.264
date	2000.07.20.17.01.09;	author nsayer;	state Exp;
branches;
next	1.263;

1.263
date	2000.07.19.09.21.14;	author ru;	state Exp;
branches;
next	1.262;

1.262
date	2000.07.19.06.35.58;	author imp;	state Exp;
branches;
next	1.261;

1.261
date	2000.07.11.11.49.29;	author tanimura;	state Exp;
branches;
next	1.260;

1.260
date	2000.06.26.15.42.48;	author cokane;	state Exp;
branches;
next	1.259;

1.259
date	2000.06.25.10.55.22;	author markm;	state Exp;
branches;
next	1.258;

1.258
date	2000.06.24.06.36.39;	author cokane;	state Exp;
branches;
next	1.257;

1.257
date	2000.06.11.06.43.13;	author tanimura;	state Exp;
branches;
next	1.256;

1.256
date	2000.05.24.23.49.49;	author msmith;	state Exp;
branches;
next	1.255;

1.255
date	2000.05.12.02.56.31;	author jhb;	state Exp;
branches;
next	1.254;

1.254
date	2000.05.10.02.51.36;	author obrien;	state Exp;
branches;
next	1.253;

1.253
date	2000.05.09.01.15.55;	author peter;	state Exp;
branches;
next	1.252;

1.252
date	2000.05.09.00.07.46;	author peter;	state Exp;
branches;
next	1.251;

1.251
date	2000.05.08.22.56.17;	author peter;	state Exp;
branches;
next	1.250;

1.250
date	2000.05.08.21.32.24;	author obrien;	state Exp;
branches;
next	1.249;

1.249
date	2000.05.06.14.17.23;	author asmodai;	state Exp;
branches;
next	1.248;

1.248
date	2000.05.01.10.43.06;	author peter;	state Exp;
branches;
next	1.247;

1.247
date	2000.04.26.06.12.42;	author chris;	state Exp;
branches;
next	1.246;

1.246
date	2000.03.26.19.48.49;	author n_hibma;	state Exp;
branches;
next	1.245;

1.245
date	2000.03.26.12.59.22;	author n_hibma;	state Exp;
branches;
next	1.244;

1.244
date	2000.03.18.18.45.48;	author n_hibma;	state Exp;
branches;
next	1.243;

1.243
date	2000.03.08.18.13.43;	author jlemon;	state Exp;
branches
	1.243.2.1;
next	1.242;

1.242
date	2000.02.18.05.49.08;	author rwatson;	state Exp;
branches;
next	1.241;

1.241
date	2000.02.12.21.16.01;	author n_hibma;	state Exp;
branches;
next	1.240;

1.240
date	2000.02.09.22.08.12;	author rwatson;	state Exp;
branches;
next	1.239;

1.239
date	2000.01.29.10.32.49;	author bde;	state Exp;
branches;
next	1.238;

1.238
date	2000.01.23.11.40.10;	author n_hibma;	state Exp;
branches;
next	1.237;

1.237
date	2000.01.21.09.42.20;	author n_hibma;	state Exp;
branches;
next	1.236;

1.236
date	2000.01.19.18.16.24;	author jkh;	state Exp;
branches;
next	1.235;

1.235
date	2000.01.15.21.04.13;	author mjacob;	state Exp;
branches;
next	1.234;

1.234
date	2000.01.13.20.27.22;	author guido;	state Exp;
branches;
next	1.233;

1.233
date	2000.01.07.16.20.25;	author obrien;	state Exp;
branches;
next	1.232;

1.232
date	2000.01.06.17.51.48;	author obrien;	state Exp;
branches;
next	1.231;

1.231
date	2000.01.06.10.56.46;	author msmith;	state Exp;
branches;
next	1.230;

1.230
date	99.12.29.01.11.29;	author msmith;	state Exp;
branches;
next	1.229;

1.229
date	99.12.28.07.38.38;	author kato;	state Exp;
branches;
next	1.228;

1.228
date	99.12.26.15.24.58;	author bde;	state Exp;
branches;
next	1.227;

1.227
date	99.12.19.09.42.15;	author green;	state Exp;
branches;
next	1.226;

1.226
date	99.12.14.22.36.03;	author joerg;	state Exp;
branches;
next	1.225;

1.225
date	99.11.27.21.17.02;	author msmith;	state Exp;
branches;
next	1.224;

1.224
date	99.11.26.20.45.26;	author phk;	state Exp;
branches;
next	1.223;

1.223
date	99.11.24.21.05.59;	author n_hibma;	state Exp;
branches;
next	1.222;

1.222
date	99.11.24.19.14.11;	author phk;	state Exp;
branches;
next	1.221;

1.221
date	99.11.24.19.07.31;	author phk;	state Exp;
branches;
next	1.220;

1.220
date	99.11.17.23.02.34;	author n_hibma;	state Exp;
branches;
next	1.219;

1.219
date	99.11.09.12.53.01;	author sos;	state Exp;
branches;
next	1.218;

1.218
date	99.11.01.19.45.59;	author nik;	state Exp;
branches;
next	1.217;

1.217
date	99.10.30.07.00.12;	author obrien;	state Exp;
branches;
next	1.216;

1.216
date	99.10.15.16.20.58;	author brian;	state Exp;
branches;
next	1.215;

1.215
date	99.10.12.15.51.58;	author gibbs;	state Exp;
branches;
next	1.214;

1.214
date	99.10.10.15.13.48;	author peter;	state Exp;
branches;
next	1.213;

1.213
date	99.10.07.02.37.04;	author msmith;	state Exp;
branches;
next	1.212;

1.212
date	99.09.21.11.11.26;	author phk;	state Exp;
branches;
next	1.211;

1.211
date	99.09.13.16.15.58;	author bde;	state Exp;
branches;
next	1.210;

1.210
date	99.09.13.15.44.19;	author sheldonh;	state Exp;
branches;
next	1.209;

1.209
date	99.08.27.23.23.56;	author peter;	state Exp;
branches;
next	1.208;

1.208
date	99.08.21.18.01.42;	author gehenna;	state Exp;
branches;
next	1.207;

1.207
date	99.08.16.16.00.21;	author sheldonh;	state Exp;
branches;
next	1.206;

1.206
date	99.07.10.18.02.40;	author iwasaki;	state Exp;
branches;
next	1.205;

1.205
date	99.07.09.21.35.17;	author phk;	state Exp;
branches;
next	1.204;

1.204
date	99.07.09.13.37.58;	author sheldonh;	state Exp;
branches;
next	1.203;

1.203
date	99.07.09.12.52.02;	author sheldonh;	state Exp;
branches;
next	1.202;

1.202
date	99.07.07.12.00.42;	author bde;	state Exp;
branches;
next	1.201;

1.201
date	99.07.05.09.18.57;	author msmith;	state Exp;
branches;
next	1.200;

1.200
date	99.07.05.08.39.00;	author jkh;	state Exp;
branches;
next	1.199;

1.199
date	99.05.29.19.36.55;	author phk;	state Exp;
branches;
next	1.198;

1.198
date	99.05.24.18.01.03;	author hm;	state Exp;
branches;
next	1.197;

1.197
date	99.05.20.10.06.52;	author hm;	state Exp;
branches;
next	1.196;

1.196
date	99.05.04.17.03.58;	author hosokawa;	state Exp;
branches;
next	1.195;

1.195
date	99.04.24.20.57.39;	author peter;	state Exp;
branches;
next	1.194;

1.194
date	99.04.08.21.23.18;	author msmith;	state Exp;
branches;
next	1.193;

1.193
date	99.03.16.13.34.00;	author sos;	state Exp;
branches;
next	1.192;

1.192
date	99.03.05.23.08.45;	author gibbs;	state Exp;
branches;
next	1.191;

1.191
date	99.03.02.16.04.27;	author roger;	state Exp;
branches;
next	1.190;

1.190
date	99.03.01.12.13.24;	author roger;	state Exp;
branches;
next	1.189;

1.189
date	99.02.26.16.14.22;	author roger;	state Exp;
branches;
next	1.188;

1.188
date	99.02.18.21.17.16;	author n_hibma;	state Exp;
branches;
next	1.187;

1.187
date	99.02.14.19.41.36;	author jkh;	state Exp;
branches;
next	1.186;

1.186
date	99.02.05.22.54.37;	author mjacob;	state Exp;
branches;
next	1.185;

1.185
date	99.02.04.20.35.07;	author mjacob;	state Exp;
branches;
next	1.184;

1.184
date	99.01.24.13.51.26;	author markm;	state Exp;
branches;
next	1.183;

1.183
date	99.01.12.01.31.13;	author n_hibma;	state Exp;
branches
	1.183.2.1;
next	1.182;

1.182
date	99.01.11.00.03.58;	author n_hibma;	state Exp;
branches;
next	1.181;

1.181
date	99.01.08.16.03.57;	author hm;	state Exp;
branches;
next	1.180;

1.180
date	99.01.06.16.18.05;	author yokota;	state Exp;
branches;
next	1.179;

1.179
date	99.01.03.16.48.03;	author n_hibma;	state Exp;
branches;
next	1.178;

1.178
date	98.11.12.22.48.16;	author nsouch;	state Exp;
branches;
next	1.177;

1.177
date	98.11.12.22.45.24;	author nsouch;	state Exp;
branches;
next	1.176;

1.176
date	98.10.31.05.27.02;	author obrien;	state Exp;
branches;
next	1.175;

1.175
date	98.10.30.06.02.48;	author obrien;	state Exp;
branches;
next	1.174;

1.174
date	98.10.29.22.16.29;	author obrien;	state Exp;
branches;
next	1.173;

1.173
date	98.10.02.22.33.52;	author obrien;	state Exp;
branches;
next	1.172;

1.172
date	98.09.16.00.10.26;	author ken;	state Exp;
branches;
next	1.171;

1.171
date	98.09.15.10.21.35;	author gibbs;	state Exp;
branches;
next	1.170;

1.170
date	98.09.10.18.47.20;	author phk;	state Exp;
branches;
next	1.169;

1.169
date	98.09.09.18.59.46;	author sos;	state Exp;
branches;
next	1.168;

1.168
date	98.08.14.06.21.34;	author phk;	state Exp;
branches;
next	1.167;

1.167
date	98.08.10.10.17.46;	author phk;	state Exp;
branches;
next	1.166;

1.166
date	98.08.04.21.45.20;	author brian;	state Exp;
branches;
next	1.165;

1.165
date	98.07.03.15.43.20;	author des;	state Exp;
branches;
next	1.164;

1.164
date	98.07.02.07.39.01;	author des;	state Exp;
branches;
next	1.163;

1.163
date	98.03.27.04.35.10;	author peter;	state Exp;
branches;
next	1.162;

1.162
date	98.03.27.04.19.30;	author peter;	state Exp;
branches;
next	1.161;

1.161
date	98.03.22.13.18.07;	author peter;	state Exp;
branches;
next	1.160;

1.160
date	98.03.22.11.42.03;	author peter;	state Exp;
branches;
next	1.159;

1.159
date	98.03.21.14.26.02;	author peter;	state Exp;
branches;
next	1.158;

1.158
date	98.03.12.12.00.26;	author bde;	state Exp;
branches;
next	1.157;

1.157
date	98.03.01.22.18.28;	author steve;	state Exp;
branches;
next	1.156;

1.156
date	98.02.20.03.59.53;	author ahasty;	state Exp;
branches;
next	1.155;

1.155
date	98.02.18.13.54.45;	author msmith;	state Exp;
branches;
next	1.154;

1.154
date	98.02.17.15.28.29;	author jkh;	state Exp;
branches;
next	1.153;

1.153
date	98.02.13.22.40.32;	author pst;	state Exp;
branches;
next	1.152;

1.152
date	98.02.09.08.41.49;	author cwt;	state Exp;
branches;
next	1.151;

1.151
date	98.01.22.21.26.22;	author jkh;	state Exp;
branches;
next	1.150;

1.150
date	98.01.16.22.12.49;	author pst;	state Exp;
branches;
next	1.149;

1.149
date	98.01.09.18.32.51;	author steve;	state Exp;
branches;
next	1.148;

1.148
date	98.01.03.11.53.52;	author jkh;	state Exp;
branches;
next	1.147;

1.147
date	98.01.02.22.16.15;	author jkh;	state Exp;
branches;
next	1.146;

1.146
date	97.12.29.09.45.23;	author jkh;	state Exp;
branches;
next	1.145;

1.145
date	97.12.29.00.10.20;	author jkh;	state Exp;
branches;
next	1.144;

1.144
date	97.12.29.00.03.36;	author jkh;	state Exp;
branches;
next	1.143;

1.143
date	97.12.29.00.02.18;	author jkh;	state Exp;
branches;
next	1.142;

1.142
date	97.12.19.14.14.18;	author brian;	state Exp;
branches;
next	1.141;

1.141
date	97.08.28.12.14.14;	author jkh;	state Exp;
branches;
next	1.140;

1.140
date	97.05.11.00.34.36;	author jmg;	state Exp;
branches;
next	1.139;

1.139
date	97.03.10.02.10.58;	author danny;	state Exp;
branches;
next	1.138;

1.138
date	97.03.05.14.04.00;	author joerg;	state Exp;
branches;
next	1.137;

1.137
date	97.03.03.16.13.35;	author bde;	state Exp;
branches;
next	1.136;

1.136
date	97.02.23.09.21.02;	author peter;	state Exp;
branches;
next	1.135;

1.135
date	97.02.06.22.23.26;	author joerg;	state Exp;
branches;
next	1.134;

1.134
date	97.01.27.06.24.10;	author bde;	state Exp;
branches;
next	1.133;

1.133
date	97.01.24.22.00.35;	author davidg;	state Exp;
branches;
next	1.132;

1.132
date	97.01.14.05.44.53;	author jkh;	state Exp;
branches;
next	1.131;

1.131
date	97.01.13.17.37.20;	author nate;	state Exp;
branches;
next	1.130;

1.130
date	96.12.30.20.51.36;	author joerg;	state Exp;
branches;
next	1.129;

1.129
date	96.12.13.07.54.57;	author jkh;	state Exp;
branches;
next	1.128;

1.128
date	96.11.14.14.28.26;	author andreas;	state Exp;
branches;
next	1.127;

1.127
date	96.11.01.08.49.13;	author bde;	state Exp;
branches
	1.127.2.1;
next	1.126;

1.126
date	96.10.25.15.01.33;	author bde;	state Exp;
branches;
next	1.125;

1.125
date	96.10.22.20.41.03;	author se;	state Exp;
branches;
next	1.124;

1.124
date	96.10.13.01.12.01;	author davidg;	state Exp;
branches;
next	1.123;

1.123
date	96.09.09.18.47.19;	author sos;	state Exp;
branches;
next	1.122;

1.122
date	96.09.09.00.02.44;	author ache;	state Exp;
branches;
next	1.121;

1.121
date	96.09.08.23.56.27;	author ache;	state Exp;
branches;
next	1.120;

1.120
date	96.07.02.23.11.06;	author wosch;	state Exp;
branches;
next	1.119;

1.119
date	96.06.07.15.47.15;	author ache;	state Exp;
branches;
next	1.118;

1.118
date	96.05.03.05.37.34;	author asami;	state Exp;
branches;
next	1.117;

1.117
date	96.05.02.09.15.57;	author jkh;	state Exp;
branches;
next	1.116;

1.116
date	96.03.26.21.04.54;	author wollman;	state Exp;
branches;
next	1.115;

1.115
date	96.03.19.03.48.53;	author jkh;	state Exp;
branches;
next	1.114;

1.114
date	96.03.18.20.28.27;	author nate;	state Exp;
branches;
next	1.113;

1.113
date	96.02.02.19.25.15;	author pst;	state Exp;
branches;
next	1.112;

1.112
date	96.01.31.15.02.51;	author mpp;	state Exp;
branches;
next	1.111;

1.111
date	96.01.28.19.10.37;	author bde;	state Exp;
branches;
next	1.110;

1.110
date	95.12.31.09.30.30;	author joerg;	state Exp;
branches;
next	1.109;

1.109
date	95.12.03.17.26.21;	author markm;	state Exp;
branches;
next	1.108;

1.108
date	95.10.29.15.52.31;	author bde;	state Exp;
branches;
next	1.107;

1.107
date	95.10.17.16.26.54;	author bde;	state Exp;
branches;
next	1.106;

1.106
date	95.09.22.20.42.11;	author peter;	state Exp;
branches;
next	1.105;

1.105
date	95.09.16.23.15.01;	author ats;	state Exp;
branches;
next	1.104;

1.104
date	95.09.03.20.40.16;	author jkh;	state Exp;
branches;
next	1.103;

1.103
date	95.08.19.15.50.56;	author joerg;	state Exp;
branches;
next	1.102;

1.102
date	95.08.18.11.29.05;	author jkh;	state Exp;
branches;
next	1.101;

1.101
date	95.08.13.22.05.51;	author peter;	state Exp;
branches;
next	1.100;

1.100
date	95.08.01.13.15.52;	author jkh;	state Exp;
branches;
next	1.99;

1.99
date	95.07.30.12.56.26;	author jkh;	state Exp;
branches;
next	1.98;

1.98
date	95.07.29.05.25.08;	author bde;	state Exp;
branches;
next	1.97;

1.97
date	95.07.29.00.40.40;	author jkh;	state Exp;
branches;
next	1.96;

1.96
date	95.07.21.13.02.13;	author jkh;	state Exp;
branches;
next	1.95;

1.95
date	95.05.18.10.51.03;	author jkh;	state Exp;
branches
	1.95.4.1;
next	1.94;

1.94
date	95.05.15.09.44.10;	author rgrimes;	state Exp;
branches;
next	1.93;

1.93
date	95.05.15.06.55.18;	author gpalmer;	state Exp;
branches;
next	1.92;

1.92
date	95.05.11.20.39.36;	author jkh;	state Exp;
branches;
next	1.91;

1.91
date	95.05.07.23.04.03;	author ache;	state Exp;
branches;
next	1.90;

1.90
date	95.05.03.18.15.35;	author dufault;	state Exp;
branches;
next	1.89;

1.89
date	95.05.01.14.34.45;	author dufault;	state Exp;
branches;
next	1.88;

1.88
date	95.04.30.07.56.45;	author jkh;	state Exp;
branches;
next	1.87;

1.87
date	95.04.28.07.53.43;	author bde;	state Exp;
branches;
next	1.86;

1.86
date	95.04.28.07.39.21;	author bde;	state Exp;
branches;
next	1.85;

1.85
date	95.04.28.00.51.02;	author dufault;	state Exp;
branches;
next	1.84;

1.84
date	95.04.26.08.07.30;	author bde;	state Exp;
branches;
next	1.83;

1.83
date	95.04.23.12.02.21;	author ache;	state Exp;
branches;
next	1.82;

1.82
date	95.04.13.00.51.55;	author jkh;	state Exp;
branches;
next	1.81;

1.81
date	95.03.21.06.31.00;	author jkh;	state Exp;
branches;
next	1.80;

1.80
date	95.03.13.00.10.40;	author ache;	state Exp;
branches;
next	1.79;

1.79
date	95.03.12.15.25.32;	author bde;	state Exp;
branches;
next	1.78;

1.78
date	95.03.11.12.07.57;	author dufault;	state Exp;
branches;
next	1.77;

1.77
date	95.03.04.20.54.13;	author dufault;	state Exp;
branches;
next	1.76;

1.76
date	95.03.04.12.22.14;	author bde;	state Exp;
branches;
next	1.75;

1.75
date	95.03.02.04.11.47;	author jkh;	state Exp;
branches;
next	1.74;

1.74
date	95.02.27.18.54.27;	author ache;	state Exp;
branches;
next	1.73;

1.73
date	95.02.24.19.26.59;	author joerg;	state Exp;
branches;
next	1.72;

1.72
date	95.02.22.23.52.58;	author jmz;	state Exp;
branches;
next	1.71;

1.71
date	95.02.17.12.32.34;	author bde;	state Exp;
branches;
next	1.70;

1.70
date	95.02.16.16.03.29;	author bde;	state Exp;
branches;
next	1.69;

1.69
date	95.02.14.23.48.05;	author jkh;	state Exp;
branches;
next	1.68;

1.68
date	95.02.14.21.13.14;	author ugen;	state Exp;
branches;
next	1.67;

1.67
date	95.02.10.20.08.25;	author bde;	state Exp;
branches;
next	1.66;

1.66
date	95.02.09.11.10.02;	author jkh;	state Exp;
branches;
next	1.65;

1.65
date	95.02.07.12.07.18;	author jkh;	state Exp;
branches;
next	1.64;

1.64
date	95.02.01.23.15.11;	author jkh;	state Exp;
branches;
next	1.63;

1.63
date	95.01.25.21.21.28;	author jmz;	state Exp;
branches;
next	1.62;

1.62
date	95.01.07.14.49.59;	author jkh;	state Exp;
branches;
next	1.61;

1.61
date	94.12.25.15.08.29;	author ats;	state Exp;
branches;
next	1.60;

1.60
date	94.12.16.15.59.44;	author bde;	state Exp;
branches;
next	1.59;

1.59
date	94.12.08.00.44.55;	author ache;	state Exp;
branches;
next	1.58;

1.58
date	94.12.06.23.06.10;	author ache;	state Exp;
branches;
next	1.57;

1.57
date	94.12.06.19.50.17;	author bde;	state Exp;
branches;
next	1.56;

1.56
date	94.12.04.23.50.40;	author ache;	state Exp;
branches;
next	1.55;

1.55
date	94.12.04.23.48.38;	author ache;	state Exp;
branches;
next	1.54;

1.54
date	94.12.04.20.15.15;	author phk;	state Exp;
branches;
next	1.53;

1.53
date	94.12.03.14.01.01;	author jkh;	state Exp;
branches;
next	1.52;

1.52
date	94.12.03.04.46.09;	author jkh;	state Exp;
branches;
next	1.51;

1.51
date	94.12.03.00.07.49;	author wollman;	state Exp;
branches;
next	1.50;

1.50
date	94.12.02.16.08.53;	author jkh;	state Exp;
branches;
next	1.49;

1.49
date	94.11.12.15.48.54;	author ache;	state Exp;
branches;
next	1.48;

1.48
date	94.11.10.02.32.29;	author phk;	state Exp;
branches;
next	1.47;

1.47
date	94.11.02.06.36.42;	author phk;	state Exp;
branches;
next	1.46;

1.46
date	94.11.01.01.47.08;	author pst;	state Exp;
branches;
next	1.45;

1.45
date	94.10.29.10.03.37;	author phk;	state Exp;
branches;
next	1.44;

1.44
date	94.10.26.01.30.47;	author phk;	state Exp;
branches;
next	1.43;

1.43
date	94.10.13.20.10.14;	author sos;	state Exp;
branches;
next	1.42;

1.42
date	94.10.01.03.32.26;	author davidg;	state Exp;
branches;
next	1.41;

1.41
date	94.09.30.07.33.42;	author rgrimes;	state Exp;
branches;
next	1.40;

1.40
date	94.09.23.19.17.27;	author wollman;	state Exp;
branches;
next	1.39;

1.39
date	94.09.07.21.35.52;	author phk;	state Exp;
branches;
next	1.38;

1.38
date	94.09.03.22.46.43;	author csgr;	state Exp;
branches;
next	1.37;

1.37
date	94.06.17.21.50.07;	author jkh;	state Exp;
branches;
next	1.36;

1.36
date	94.05.30.03.53.01;	author ache;	state Exp;
branches;
next	1.35;

1.35
date	94.05.21.08.55.52;	author rgrimes;	state Exp;
branches;
next	1.34;

1.34
date	94.05.19.11.05.09;	author jkh;	state Exp;
branches;
next	1.33;

1.33
date	94.05.10.09.18.11;	author ache;	state Exp;
branches;
next	1.32;

1.32
date	94.04.21.14.08.27;	author sos;	state Exp;
branches;
next	1.31;

1.31
date	94.04.03.14.24.52;	author ache;	state Exp;
branches;
next	1.30;

1.30
date	94.04.03.04.39.54;	author ache;	state Exp;
branches;
next	1.29;

1.29
date	94.03.07.00.57.38;	author rgrimes;	state Exp;
branches;
next	1.28;

1.28
date	94.02.19.15.45.13;	author ache;	state Exp;
branches
	1.28.2.1;
next	1.27;

1.27
date	94.02.19.14.32.56;	author ache;	state Exp;
branches;
next	1.26;

1.26
date	94.02.19.13.17.03;	author ache;	state Exp;
branches;
next	1.25;

1.25
date	94.02.07.04.25.07;	author alm;	state Exp;
branches;
next	1.24;

1.24
date	94.01.26.23.45.34;	author davidg;	state Exp;
branches;
next	1.23;

1.23
date	94.01.24.20.57.16;	author davidg;	state Exp;
branches;
next	1.22;

1.22
date	94.01.10.18.11.30;	author ache;	state Exp;
branches;
next	1.21;

1.21
date	93.12.24.11.36.28;	author rgrimes;	state Exp;
branches;
next	1.20;

1.20
date	93.12.21.05.49.28;	author ache;	state Exp;
branches;
next	1.19;

1.19
date	93.12.18.01.19.02;	author ache;	state Exp;
branches;
next	1.18;

1.18
date	93.12.16.04.34.11;	author ache;	state Exp;
branches;
next	1.17;

1.17
date	93.12.14.11.11.37;	author alm;	state Exp;
branches;
next	1.16;

1.16
date	93.11.22.05.40.49;	author rgrimes;	state Exp;
branches;
next	1.15;

1.15
date	93.11.06.23.22.23;	author wollman;	state Exp;
branches;
next	1.14;

1.14
date	93.10.28.09.59.27;	author rgrimes;	state Exp;
branches;
next	1.13;

1.13
date	93.10.23.22.24.35;	author jkh;	state Exp;
branches;
next	1.12;

1.12
date	93.10.23.10.58.51;	author jkh;	state Exp;
branches;
next	1.11;

1.11
date	93.10.19.20.00.35;	author nate;	state Exp;
branches;
next	1.10;

1.10
date	93.10.06.03.35.03;	author rgrimes;	state Exp;
branches;
next	1.9;

1.9
date	93.09.30.20.18.59;	author rgrimes;	state Exp;
branches;
next	1.8;

1.8
date	93.09.14.21.42.14;	author rgrimes;	state Exp;
branches;
next	1.7;

1.7
date	93.09.06.03.00.38;	author jkh;	state Exp;
branches;
next	1.6;

1.6
date	93.09.05.15.53.39;	author rgrimes;	state Exp;
branches;
next	1.5;

1.5
date	93.08.30.07.48.38;	author rgrimes;	state Exp;
branches;
next	1.4;

1.4
date	93.08.02.10.16.10;	author rgrimes;	state Exp;
branches;
next	1.3;

1.3
date	93.07.30.11.00.54;	author rgrimes;	state Exp;
branches;
next	1.2;

1.2
date	93.07.19.18.50.35;	author rgrimes;	state Exp;
branches;
next	1.1;

1.1
date	93.06.20.13.41.40;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.332.2.1
date	2003.01.05.08.52.42;	author simokawa;	state Exp;
branches;
next	1.332.2.2;

1.332.2.2
date	2003.01.10.05.19.39;	author rwatson;	state Exp;
branches;
next	;

1.243.2.1
date	2000.05.06.14.18.41;	author asmodai;	state Exp;
branches;
next	1.243.2.2;

1.243.2.2
date	2000.05.09.01.13.27;	author peter;	state Exp;
branches;
next	1.243.2.3;

1.243.2.3
date	2000.05.10.02.54.14;	author obrien;	state Exp;
branches;
next	1.243.2.4;

1.243.2.4
date	2000.05.25.01.57.29;	author msmith;	state Exp;
branches;
next	1.243.2.5;

1.243.2.5
date	2000.05.28.13.52.50;	author asmodai;	state Exp;
branches;
next	1.243.2.6;

1.243.2.6
date	2000.06.08.23.07.26;	author jhb;	state Exp;
branches;
next	1.243.2.7;

1.243.2.7
date	2000.06.11.07.04.36;	author tanimura;	state Exp;
branches;
next	1.243.2.8;

1.243.2.8
date	2000.07.19.09.48.01;	author ru;	state Exp;
branches;
next	1.243.2.9;

1.243.2.9
date	2000.07.20.17.01.17;	author imp;	state Exp;
branches;
next	1.243.2.10;

1.243.2.10
date	2000.07.27.13.57.00;	author nsayer;	state Exp;
branches;
next	1.243.2.11;

1.243.2.11
date	2000.10.25.06.51.50;	author sos;	state Exp;
branches;
next	1.243.2.12;

1.243.2.12
date	2000.10.31.00.22.24;	author msmith;	state Exp;
branches;
next	1.243.2.13;

1.243.2.13
date	2000.10.31.23.16.05;	author n_hibma;	state Exp;
branches;
next	1.243.2.14;

1.243.2.14
date	2000.11.01.01.19.09;	author n_hibma;	state Exp;
branches;
next	1.243.2.15;

1.243.2.15
date	2000.11.07.11.02.04;	author truckman;	state Exp;
branches;
next	1.243.2.16;

1.243.2.16
date	2000.11.28.21.52.39;	author msmith;	state Exp;
branches;
next	1.243.2.17;

1.243.2.17
date	2001.01.15.23.49.10;	author scottl;	state Exp;
branches;
next	1.243.2.18;

1.243.2.18
date	2001.01.16.04.57.34;	author scottl;	state Exp;
branches;
next	1.243.2.19;

1.243.2.19
date	2001.01.18.00.46.50;	author n_hibma;	state Exp;
branches;
next	1.243.2.20;

1.243.2.20
date	2001.02.03.16.16.40;	author sos;	state Exp;
branches;
next	1.243.2.21;

1.243.2.21
date	2001.02.27.05.29.28;	author cg;	state Exp;
branches;
next	1.243.2.22;

1.243.2.22
date	2001.03.06.01.04.04;	author obrien;	state Exp;
branches;
next	1.243.2.23;

1.243.2.23
date	2001.03.06.01.35.59;	author obrien;	state Exp;
branches;
next	1.243.2.24;

1.243.2.24
date	2001.03.06.01.40.08;	author obrien;	state Exp;
branches;
next	1.243.2.25;

1.243.2.25
date	2001.03.22.09.02.32;	author jkh;	state Exp;
branches;
next	1.243.2.26;

1.243.2.26
date	2001.03.22.10.52.10;	author jkh;	state Exp;
branches;
next	1.243.2.27;

1.243.2.27
date	2001.03.23.08.59.38;	author scottl;	state Exp;
branches;
next	1.243.2.28;

1.243.2.28
date	2001.03.27.22.14.53;	author scottl;	state Exp;
branches;
next	1.243.2.29;

1.243.2.29
date	2001.05.25.01.09.43;	author obrien;	state Exp;
branches;
next	1.243.2.30;

1.243.2.30
date	2001.07.23.10.11.38;	author dd;	state Exp;
branches;
next	1.243.2.31;

1.243.2.31
date	2001.07.30.16.23.26;	author scottl;	state Exp;
branches;
next	1.243.2.32;

1.243.2.32
date	2001.08.01.04.27.16;	author cg;	state Exp;
branches;
next	1.243.2.33;

1.243.2.33
date	2001.08.11.00.54.13;	author mp;	state Exp;
branches;
next	1.243.2.34;

1.243.2.34
date	2001.08.28.07.17.44;	author obrien;	state Exp;
branches;
next	1.243.2.35;

1.243.2.35
date	2001.08.30.12.29.56;	author murray;	state Exp;
branches;
next	1.243.2.36;

1.243.2.36
date	2001.09.10.23.16.15;	author obrien;	state Exp;
branches;
next	1.243.2.37;

1.243.2.37
date	2001.11.22.13.42.56;	author iedowse;	state Exp;
branches;
next	1.243.2.38;

1.243.2.38
date	2001.11.27.12.12.27;	author sheldonh;	state Exp;
branches;
next	1.243.2.39;

1.243.2.39
date	2001.12.06.09.08.06;	author des;	state Exp;
branches;
next	1.243.2.40;

1.243.2.40
date	2001.12.06.09.09.30;	author des;	state Exp;
branches;
next	1.243.2.41;

1.243.2.41
date	2001.12.12.06.38.12;	author ps;	state Exp;
branches;
next	1.243.2.42;

1.243.2.42
date	2001.12.26.19.36.54;	author sheldonh;	state Exp;
branches;
next	1.243.2.43;

1.243.2.43
date	2002.01.01.00.33.21;	author cjc;	state Exp;
branches;
next	1.243.2.44;

1.243.2.44
date	2002.03.11.18.57.44;	author cjc;	state Exp;
branches;
next	1.243.2.45;

1.243.2.45
date	2002.03.18.08.36.22;	author sos;	state Exp;
branches;
next	1.243.2.46;

1.243.2.46
date	2002.04.08.10.19.17;	author bde;	state Exp;
branches;
next	1.243.2.47;

1.243.2.47
date	2002.04.21.19.47.06;	author will;	state Exp;
branches;
next	1.243.2.48;

1.243.2.48
date	2002.08.08.18.44.58;	author joe;	state Exp;
branches;
next	1.243.2.49;

1.243.2.49
date	2002.08.18.12.28.57;	author sos;	state Exp;
branches;
next	1.243.2.50;

1.243.2.50
date	2002.09.16.23.23.34;	author iedowse;	state Exp;
branches;
next	1.243.2.51;

1.243.2.51
date	2002.09.18.05.34.31;	author sam;	state Exp;
branches;
next	1.243.2.52;

1.243.2.52
date	2002.09.18.05.42.55;	author sam;	state Exp;
branches;
next	1.243.2.53;

1.243.2.53
date	2002.10.05.18.31.41;	author scottl;	state Exp;
branches;
next	1.243.2.54;

1.243.2.54
date	2002.10.28.07.31.17;	author luigi;	state Exp;
branches;
next	1.243.2.55;

1.243.2.55
date	2002.11.21.23.49.50;	author sam;	state Exp;
branches;
next	1.243.2.56;

1.243.2.56
date	2002.12.31.07.33.53;	author simokawa;	state Exp;
branches;
next	1.243.2.57;

1.243.2.57
date	2003.02.10.11.35.53;	author simokawa;	state Exp;
branches;
next	1.243.2.58;

1.243.2.58
date	2003.07.14.11.07.21;	author kris;	state Exp;
branches;
next	1.243.2.59;

1.243.2.59
date	2003.07.20.03.56.02;	author imp;	state Exp;
branches;
next	1.243.2.60;

1.243.2.60
date	2003.08.18.03.52.40;	author simokawa;	state Exp;
branches;
next	1.243.2.61;

1.243.2.61
date	2003.12.19.14.34.23;	author simokawa;	state Exp;
branches;
next	1.243.2.62;

1.243.2.62
date	2004.01.17.18.07.45;	author schweikh;	state Exp;
branches;
next	1.243.2.63;

1.243.2.63
date	2004.01.18.08.28.07;	author schweikh;	state Exp;
branches;
next	1.243.2.64;

1.243.2.64
date	2004.04.01.17.12.58;	author rik;	state Exp;
branches;
next	1.243.2.65;

1.243.2.65
date	2004.04.03.14.26.30;	author rik;	state Exp;
branches;
next	1.243.2.66;

1.243.2.66
date	2004.04.05.14.02.56;	author akiyama;	state Exp;
branches;
next	1.243.2.67;

1.243.2.67
date	2004.04.07.09.53.54;	author rik;	state Exp;
branches;
next	1.243.2.68;

1.243.2.68
date	2004.06.30.17.49.20;	author rik;	state Exp;
branches;
next	1.243.2.69;

1.243.2.69
date	2004.10.07.11.45.20;	author dds;	state Exp;
branches
	1.243.2.69.2.1;
next	1.243.2.70;

1.243.2.70
date	2005.01.13.00.53.17;	author scottl;	state Exp;
branches;
next	1.243.2.71;

1.243.2.71
date	2005.06.14.23.34.29;	author imp;	state Exp;
branches;
next	1.243.2.72;

1.243.2.72
date	2006.03.04.23.01.39;	author rik;	state Exp;
branches;
next	1.243.2.73;

1.243.2.73
date	2006.11.28.21.59.47;	author jhb;	state Exp;
branches;
next	1.243.2.74;

1.243.2.74
date	2012.11.17.07.22.35;	author svnexp;	state Exp;
branches;
next	;

1.243.2.69.2.1
date	2005.01.14.03.07.40;	author scottl;	state Exp;
branches;
next	;

1.183.2.1
date	99.02.05.08.25.05;	author mjacob;	state Exp;
branches;
next	1.183.2.2;

1.183.2.2
date	99.02.05.10.50.29;	author markm;	state Exp;
branches;
next	1.183.2.3;

1.183.2.3
date	99.02.14.19.42.23;	author jkh;	state Exp;
branches;
next	1.183.2.4;

1.183.2.4
date	99.03.02.16.50.55;	author roger;	state Exp;
branches;
next	1.183.2.5;

1.183.2.5
date	99.03.07.00.37.59;	author gibbs;	state Exp;
branches;
next	1.183.2.6;

1.183.2.6
date	99.05.11.04.46.34;	author mjacob;	state Exp;
branches;
next	1.183.2.7;

1.183.2.7
date	99.05.29.19.49.28;	author phk;	state Exp;
branches;
next	1.183.2.8;

1.183.2.8
date	99.07.05.09.08.05;	author des;	state Exp;
branches;
next	1.183.2.9;

1.183.2.9
date	99.07.09.12.57.59;	author sheldonh;	state Exp;
branches;
next	1.183.2.10;

1.183.2.10
date	99.07.09.13.40.27;	author sheldonh;	state Exp;
branches;
next	1.183.2.11;

1.183.2.11
date	99.08.16.16.22.26;	author sheldonh;	state Exp;
branches;
next	1.183.2.12;

1.183.2.12
date	99.08.25.16.50.43;	author gehenna;	state Exp;
branches;
next	1.183.2.13;

1.183.2.13
date	99.08.25.18.10.20;	author iwasaki;	state Exp;
branches;
next	1.183.2.14;

1.183.2.14
date	99.08.29.14.19.11;	author peter;	state Exp;
branches;
next	1.183.2.15;

1.183.2.15
date	99.10.12.15.58.11;	author gibbs;	state Exp;
branches;
next	1.183.2.16;

1.183.2.16
date	99.11.15.22.14.50;	author joe;	state Exp;
branches;
next	;

1.127.2.1
date	96.11.16.21.03.15;	author phk;	state Exp;
branches;
next	1.127.2.2;

1.127.2.2
date	96.12.14.11.36.00;	author joerg;	state Exp;
branches;
next	1.127.2.3;

1.127.2.3
date	96.12.30.20.52.22;	author joerg;	state Exp;
branches;
next	1.127.2.4;

1.127.2.4
date	97.01.14.17.19.38;	author nate;	state Exp;
branches;
next	1.127.2.5;

1.127.2.5
date	97.02.14.04.37.56;	author jkh;	state Exp;
branches;
next	1.127.2.6;

1.127.2.6
date	97.03.03.16.07.30;	author bde;	state Exp;
branches;
next	1.127.2.7;

1.127.2.7
date	97.03.05.13.58.16;	author joerg;	state Exp;
branches;
next	1.127.2.8;

1.127.2.8
date	97.03.05.14.05.38;	author joerg;	state Exp;
branches;
next	1.127.2.9;

1.127.2.9
date	97.03.11.11.15.39;	author joerg;	state Exp;
branches;
next	1.127.2.10;

1.127.2.10
date	97.04.15.18.07.06;	author jkh;	state Exp;
branches;
next	1.127.2.11;

1.127.2.11
date	97.09.09.10.47.51;	author markm;	state Exp;
branches;
next	1.127.2.12;

1.127.2.12
date	97.12.30.03.46.39;	author brian;	state Exp;
branches;
next	1.127.2.13;

1.127.2.13
date	98.01.16.22.28.32;	author pst;	state Exp;
branches;
next	1.127.2.14;

1.127.2.14
date	98.01.22.21.30.01;	author jkh;	state Exp;
branches;
next	1.127.2.15;

1.127.2.15
date	98.02.13.22.50.00;	author pst;	state Exp;
branches;
next	1.127.2.16;

1.127.2.16
date	98.02.15.14.24.55;	author jkh;	state Exp;
branches;
next	1.127.2.17;

1.127.2.17
date	98.02.20.10.36.18;	author markm;	state Exp;
branches;
next	1.127.2.18;

1.127.2.18
date	98.02.27.20.59.44;	author jkh;	state Exp;
branches;
next	1.127.2.19;

1.127.2.19
date	98.03.01.22.20.11;	author steve;	state Exp;
branches;
next	1.127.2.20;

1.127.2.20
date	98.07.06.10.59.17;	author des;	state Exp;
branches;
next	1.127.2.21;

1.127.2.21
date	99.09.05.11.02.07;	author peter;	state Exp;
branches;
next	;

1.95.4.1
date	95.07.30.13.01.41;	author jkh;	state Exp;
branches;
next	1.95.4.2;

1.95.4.2
date	95.08.30.06.14.21;	author davidg;	state Exp;
branches;
next	1.95.4.3;

1.95.4.3
date	95.09.15.07.42.41;	author davidg;	state Exp;
branches;
next	1.95.4.4;

1.95.4.4
date	95.09.26.07.41.19;	author davidg;	state Exp;
branches;
next	1.95.4.5;

1.95.4.5
date	95.10.17.21.42.38;	author davidg;	state Exp;
branches;
next	1.95.4.6;

1.95.4.6
date	95.10.30.02.59.41;	author jkh;	state Exp;
branches;
next	1.95.4.7;

1.95.4.7
date	95.11.09.15.53.38;	author jkh;	state Exp;
branches;
next	1.95.4.8;

1.95.4.8
date	95.11.10.04.42.37;	author jkh;	state Exp;
branches;
next	1.95.4.9;

1.95.4.9
date	96.03.21.19.52.18;	author nate;	state Exp;
branches;
next	1.95.4.10;

1.95.4.10
date	96.05.03.06.02.41;	author asami;	state Exp;
branches;
next	1.95.4.11;

1.95.4.11
date	96.05.04.07.18.45;	author pst;	state Exp;
branches;
next	1.95.4.12;

1.95.4.12
date	96.05.29.22.24.02;	author jkh;	state Exp;
branches;
next	1.95.4.13;

1.95.4.13
date	96.06.05.02.36.45;	author jkh;	state Exp;
branches;
next	1.95.4.14;

1.95.4.14
date	96.06.25.17.37.52;	author joerg;	state Exp;
branches;
next	1.95.4.15;

1.95.4.15
date	96.06.25.20.26.40;	author markm;	state Exp;
branches;
next	1.95.4.16;

1.95.4.16
date	96.07.02.14.24.56;	author bde;	state Exp;
branches;
next	1.95.4.17;

1.95.4.17
date	99.09.05.11.02.54;	author peter;	state Exp;
branches;
next	;

1.28.2.1
date	94.03.07.00.58.43;	author rgrimes;	state Exp;
branches;
next	;

1.1.1.1
date	93.06.20.13.41.41;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.337
log
@NODEVFS cleanup:  Goodbye, and good riddance!
@
text
@#!/bin/sh -
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
#
# Written and contributed by W. Jolitz 12/90
#
# Redistribution and use in source and binary forms are permitted provided
# that: (1) source distributions retain this entire copyright notice and
# comment, and (2) distributions including binaries display the following
# acknowledgement:  ``This product includes software developed by the
# University of California, Berkeley and its contributors'' in the
# documentation or other materials provided with the distribution and in
# all advertising materials mentioning features or use of this software.
# Neither the name of the University nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#	@@(#)MAKEDEV	5.2 (Berkeley) 6/22/90
# $FreeBSD: src/etc/MAKEDEV,v 1.336 2003/01/01 18:48:40 schweikh Exp $
#
# Device "make" file.  Valid arguments:
#	all	makes all known devices, standard number of units (or close)
#	std	standard devices
#	jail	suitable for a jail(8)
#	local	configuration specific devices
#	mach-4	mach4&lites+devices for Mach's XFree86 distribution
#	(see http://www.cs.hut.fi/lites.html for more info on LITES)
#
# Tapes:
#	wt*	QIC-interfaced (e.g. not SCSI) 3M cartridge tape
#	sa*	SCSI Sequential Access Devices
#
# Disks:
#	aac*	Adaptec FSA RAID controllers
#	aacd*	Adaptec FSA RAID
#	acd*	ATAPI CD-ROM disks
#	amrd*	AMI MegaRAID
#	cd*	SCSI CD-ROM disks
#	da*	SCSI Direct Access Devices
#	fd*	floppy disk drives (3 1/2", 5 1/4")
#	fla*	M-Systems DiskOnChip
#	idad*	Compaq Smart-2 RAID arrays
#	mcd*	Mitsumi CD-ROM disks
#	md*	Memory (or malloc) disk
#	mlx*	Mylex DAC960 RAID controllers
#	mlxd*	Mylex DAC960 RAID disk volumes
#	mly*	Mylex RAID controllers (newer models)
#	scd*	Sony CD-ROM disks
#	wd*	"Winchester" disk drives (ST506,IDE,ESDI,RLL,...)
#	wfd*	IDE floppy disk drives (LS-120)
#
# Console ports:
#	vty*	virtual console devices for syscons/pcvt/codrv
#
# Pointing devices:
#	mse*	Logitech and ATI Inport bus mouse
#	psm*	PS/2 mouse
#	jogdial	Sony VAIO jog dial
#	sysmouse Mousesystems mouse emulator for syscons
#
# Time devices:
#	refclock-*  serial ports used by xntpd parse refclocks
#
# Terminal ports:
#	tty*	general purpose serial ports
#	cua*	dialout serial ports
#	ttyA*	Specialix SI/XIO dialin ports ('*' = number of devices)
#	cuaA*	Specialix SI/XIO dialout ports
#	ttyDXX	Digiboard Xi - 16 dialin ports (dgb)
#	cuaDXX	Digiboard Xi - 16 dialout ports (dgb)
#	ttyDX.X	Digiboards (work in progress) - 16 dialin ports (digi)
#	cuaDX.X	Digiboards (work in progress) - 16 dialout ports (digi)
#	ttyM*	Digiboard Xem - 16 dialin ports (dgm)
#	cuaM*	Digiboard Xem - 16 dialout ports (dgm)
#	ttyR*	Rocketport dialin ports
#	cuaR*	Rocketport dialout ports
#
# Pseudo terminals:
#	pty*	set of 32 master and slave pseudo terminals
#	vty*	virtual terminals using syscons/pcvt/codrv console
#
# Parallel port:
#	lpt*	Printer
#	ppi*	Parallel port i/o
#	pps*	Pulse per second timing interface
#	pcfclock*  Parallel time sync interface
#
# I2C and SMBus:
#	iic*	I2C devices
#	smb*	SMBUS devices
#
# USB devices:
#	usb*	USB bus control device
#	ugen*	generic USB device
#	uhid*	Human Interface Device (HID)
#	ulpt*	printer
#	umodem*	modems
#	ums*	mouse
#	urio*	Diamond Rio 500
#	uscanner* USB scanners
#	ucom*	USB serial devices
#
# SCSI devices (other than CD-ROM, tape and disk):
#	ch*	SCSI Media-Changer (juke box) driver
#	pt*	Processor Type (HP scanner, as one example)
#	pass*	CAM Passthrough device
#	ses*	SES (SCSI Environmental Services) and
#		SAF-TE (Scsi Accessable Fault-Tolerant Enclosures) device
#
# PC-CARD (previously called PCMCIA) support
#	card*	PC-CARD slots
#
# ISDN devices:
#	i4b	isdnd call control device
#	i4bctl	debugging control device
#	i4btrc*	trace data interface(s), one per passive card
#	i4btel*	telephony interface(s)
#	i4bteld* telephony dialout interface(s)
#	i4brbch* raw b channel access device(s)
#
# Special purpose devices:
#	acpi	Advanced Configuration and Power Interface
#	apm	Advanced Power Management BIOS
#	apmctl	APM BIOS control device
#	bpf*	packet filter
#	crypto	crypto interface
#	speaker	pc speaker
#	tw*	xten power controller
#	snd*	various sound cards
#	pcaudio	PCM audio driver
#	socksys	iBCS2 socket system driver
#	vat	VAT compatibility audio driver (requires snd*)
#	gsc	Genius GS-4500 hand scanner
#	joy	pc joystick
#	tun*	Tunneling IP device
#	tap*	Ethernet Tunneling device
#	snp*	tty snoop devices
#	spigot	Video Spigot video acquisition card
#	ctx*	Cortex-I video acquisition card
#	meteor*	Matrox Meteor video acquisition card (pci)
#	bktr*	Bt848 based video acquisition card (pci)
#	labpc*	National Instrument's Lab-PC and LAB-PC+
#	perfmon	CPU performance-monitoring counters
#	pci	PCI configuration-space access from user mode
#	ipl	ipfilter control devices (ipl, ipnat, ipstate, ipauth)
#	kbd	keyboard devices
#	3dfx*	3dfx voodoo device for glide (tdfx) (/dev/3dfx,3dfxN,voodoo)
#	agpgart	AGP interface
#	cfs*	Coda Distributed Filesystem
#	nsmb*	SMB/CIFS protocol interface
#	elan-mmcr	AMD Elan support (e.g. mmap MMCR)
#

if [ -n "$MAKEDEVPATH" ]; then
	PATH="$MAKEDEVPATH"
else
	PATH=/sbin:/bin
fi
umask 77

# Usage: die exitcode msg
die() {
	echo $2
	exit $1
}

# Convert integer to partition name
dkitop() {
	local p

	case $1 in
	0) p=a;; 1) p=b;; 2) p=c;; 3) p=d;; 4) p=e;; 5) p=f;; 6) p=g;; 7) p=h;;
	*) p="?";;
	esac
	echo $p
}

# Convert integer to slice name
dkitos() {
	local s

	case $1 in
	0) s="";;
	1) s="";;
	*) s=s$(($1-1));;
	esac
	echo $s
}

# Convert disk (type, unit, slice, partition) to minor number
dkminor()
{
	echo $(($1 << 25 | ($2 / 32) << 21 | ($2 % 32) << 3 | $3 << 16 | $4))
}

# Print the hexadecimal representation of a decimal value from 0 to 15.
hexdigit() {
	local d

	if [ $1 -lt 10 ]; then
		d=$1
	else
		case $1 in
		10) d=a;; 11) d=b;; 12) d=c;; 13) d=d;; 14) d=e;; 15) d=f;;
		*) d="?";;
		esac
	fi
	echo $d
}

# Print the hexadecimal representation of an arbitrary decimal value.
hexprint() {
	local dig
	local str
	local val

	val=$1
	str=''
	dig=`hexdigit $(($val & 15))`
	str=$dig$str
	val=$(($val >> 4))
	while [ $val -gt 0 ]; do
		dig=`hexdigit $(($val & 15))`
		str=$dig$str
		val=$(($val >> 4))
	done
	echo $str
}

# Override mknod(2) to add extra handling to it.
mknod=/sbin/mknod
for i in `IFS=':'; echo $PATH`; do
	if [ -x "${i}/mknod" ]; then
		mknod="${i}/mknod"
		break
	fi
done
mknod() {
	rm -f "$1" || exit 1
	case $# in
	4) "$mknod" "$@@" root:wheel || die 2 "$mknod $@@ failed";;
	5) "$mknod" "$@@"            || die 2 "$mknod $@@ failed";;
	*) die 2 "bad node: mknod $@@";;
	esac
}

# Convert tape (ctrl, unit, mode, access) to minor number
saminor()
{
	echo $(($1 << 29 | ($2 / 16) << 16 | ($2 % 16) << 4 | $3 << 2 | $4))
}

# Convert the last character of a tty name to a minor number.
ttyminor()
{
	case $1 in
	[0-9]) m=$1;;
	a) m=10;; b) m=11;; c) m=12;; d) m=13;; e) m=14;; f) m=15;; g) m=16;;
	h) m=17;; i) m=18;; j) m=19;; k) m=20;; l) m=21;; m) m=22;; n) m=23;;
	o) m=24;; p) m=25;; q) m=26;; r) m=27;; s) m=28;; t) m=29;; u) m=30;;
	v) m=31;;
	*) m="?";;
	esac
	echo $m
}

# Convert a unit number to a minor number.
unit2minor()
{
	echo $(((($1 >> 8) << 16) | ($1 % 256)))
}

# Zero-pad a value to the appropriate minimum length.
zeropad() {
	local min
	local val

	min=$1
	val=$2
	while [ ${#val} -lt $min ]; do
		val=0$val
	done
	echo $val
}

# Raw partition for disks
dkrawpart=2

# Compatibility slice for disks
dkcompatslice=0

# Raw slice for disks
dkrawslice=1

# Standard umasks
disk_umask=037			# allow group operator to read disks
tape_umask=017			# allow group operator to read/write tapes

for i in $*; do
case $i in

all)
	sh $0 std					# standard
	sh $0 fd0 fd1					# floppy disk
	sh $0 da0 da1 da2 da3 				# SCSI disk
	sh $0 ata					# ATA control
	sh $0 ad0 ad1 ad2 ad3 				# ATA disk
	sh $0 ar0 ar1					# ATA RAID disk
	sh $0 acd0 acd0t0 afd0 ast0			# ATAPI devices
	sh $0 wd0 wd1 wd2 wd3				# OLD disk
	sh $0 wcd0 wfd0 wst0				# OLD ATAPI devs
	sh $0 cd0 mcd0 scd0				# cdrom
	sh $0 sa0 wt0					# tape
	sh $0 vty12					# virtual tty
	sh $0 cuaa0 cuaa1 cuaa2 cuaa3			# serial tty
	sh $0 pty0					# pseudo tty
	sh $0 ttyd0 ttyd1 ttyd2 ttyd3			# serial tty
	sh $0 kbd0 kbd1					# keyboard
	sh $0 mse0 psm0 jogdial sysmouse		# mouse
	sh $0 pcaudio speaker				# noise
	sh $0 lpt0 lpt1 lpt2				# printer
	sh $0 ppi0 ppi1 ppi2				# parallel port
	sh $0 iic0 iic1					# I2C device
	sh $0 smb0 smb1					# SMBus device
	sh $0 usb usb0 uhid0 ums0 ulpt0 ugen0		# USB devices
	sh $0 urio0 uscanner0 umodem0			# USB devices too
	sh $0 bpf0 bpf1 bpf2 bpf3 			# network
	sh $0 ipl tun0 tun1 tun2 tun3			# network
	sh $0 tap0 tap1 tap2 tap3			# network
	sh $0 ch0 perfmon tw0				# miscellaneous
	sh $0 acpi					# ACPI
	sh $0 apm apmctl card0 card1 card2 card3	# laptop
	sh $0 pass4 xpt2				# CAM
	sh $0 i4b i4bctl i4btrc0 i4btrc1		# ISDN
	sh $0 i4btel0 i4btel1 i4bteld0 i4bteld1		# ISDN
	sh $0 i4brbch0 i4brbch1				# ISDN
	sh $0 agpgart					# AGP
 	sh $0 nsmb0					# SMB/CIFS
	sh $0 ti0 ti1					# ti(4)
	sh $0 crypto					# crypto
	;;

# a much restricted set of the above, to save precious i-nodes on the
# fixit floppy
fixit)
	sh $0 std					# standard
	sh $0 fd0					# floppy disk
	sh $0 da0 					# SCSI disk
	sh $0 ad0		 			# ATA disk
	sh $0 acd0 afd0 ast0				# ATAPI devices
	sh $0 wd0					# OLD disk
	sh $0 wcd0 wfd0 wst0				# OLD ATAPI devs
	sh $0 cd0					# cdrom
	sh $0 sa0					# tape
	sh $0 vty2					# virtual tty
	sh $0 cuaa0					# serial tty
	sh $0 pty0					# pseudo tty
	sh $0 ttyd0					# serial tty
	sh $0 kbd0					# keyboard
	sh $0 mse0 psm0 jogdial sysmouse		# mouse
	sh $0 lpt0					# printer
	sh $0 ppi0					# parallel port
	sh $0 iic0					# I2C device
	sh $0 smb0					# SMBus device
	sh $0 ums0					# USB devices
	sh $0 tun0					# network
	sh $0 tap0					# network
	sh $0 ch0					# miscellaneous
	sh $0 acpi					# ACPI
	sh $0 apm apmctl card0				# laptop
	sh $0 pass1 xpt1				# CAM
	sh $0 i4b i4bctl i4btrc0 i4btrc1		# ISDN
	sh $0 i4btel0 i4bteld0		 		# ISDN
	sh $0 i4brbch0					# ISDN
	rm -f fd/[1-9]?
	;;

std)
	mknod console	c 0 0;			chmod 600 console
	mknod kmem	c 2 1 root:kmem;	chmod 640 kmem
	mknod mem	c 2 0 root:kmem;	chmod 640 mem
	mknod null	c 2 2;			chmod 666 null
	mknod random	c 2 3;			chmod 666 random
	ln -f random urandom
	mknod zero	c 2 12;			chmod 666 zero
	mknod io	c 2 14;			chmod 600 io
	mknod tty	c 1 0;			chmod 666 tty
	mknod klog	c 7 0;			chmod 600 klog
	mknod pci	c 78 0; 		chmod 644 pci
	mknod mdctl	c 95 0xffff00ff;	chmod 600 mdctl
	mkdir -p fd
	(cd fd && i=0 &&
		while [ $i -lt 64 ]; do
			mknod $i c 22 $i
			i=$(($i + 1))
		done
	)
	chmod 555 fd
	chmod 666 fd/*
	ln -sf fd/0 stdin
	ln -sf fd/1 stdout
	ln -sf fd/2 stderr
	;;

jail)
	sh $0 std pty0
	rm mem kmem pci io klog console		# for security
	ln -sf null mem			# for libkvm (ab)users
	ln -sf null kmem		# --//--
	ln -sf null console
	;;

mach-4)
	mknod iopl c 22 0
	mknod kbd c 23 0
	mknod mouse c 24 0
	mknod time c 25 0
	mknod timezone c 26 0
	;;

# Create device files for new Archive/Wangtek QIC-02 tape driver (vak)
wt*)
	umask $tape_umask
	u=`expr $i : '..\(.*\)'`
	if [ -z "${u}" ]; then u=0; fi
	# default density, 512b blocks
	mknod rwt${u}   c 10 $(( 0 + $u)) root:operator
	mknod nrwt${u}  c 10 $(( 4 + $u)) root:operator
	# default density, 1024b blocks
#	mknod rWt${u}   c 10 $((64 + $u)) root:operator
#	mknod nrWt${u}  c 10 $((68 + $u)) root:operator
	mknod rwt${u}b  c 10 $((16 + $u)) root:operator	# 60 megabytes
	mknod nrwt${u}b c 10 $((20 + $u)) root:operator
	mknod rwt${u}c  c 10 $((24 + $u)) root:operator	# 120 megabytes
	mknod nrwt${u}c c 10 $((28 + $u)) root:operator
	mknod rwt${u}d  c 10 $((32 + $u)) root:operator	# 150 megabytes
	mknod nrwt${u}d c 10 $((36 + $u)) root:operator
#	mknod rwt${u}e  c 10 $((40 + $u)) root:operator	# 300 megabytes?
#	mknod nrwt${u}e c 10 $((44 + $u)) root:operator
#	mknod rwt${u}f  c 10 $((48 + $u)) root:operator	# 600 megabytes?
#	mknod nrwt${u}f c 10 $((52 + $u)) root:operator
	umask 77
	;;

raidctl)
	mknod raidctl c 201 0
	;;

# Individual slices.
aacd*s*|ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|twed*s*|wd*s*|wfd*s*|raid*s*)
	umask $disk_umask
	case $i in
	aacd*s*) name=aacd; chr=151;;
	ad*s*) name=ad; chr=116;;
	ar*s*) name=ar; chr=157;;
	afd*s*) name=afd; chr=118;;
	amrd*s*) name=amrd; chr=133;;
	da*s*) name=da;  chr=13;;
	fla*s*) name=fla; chr=102;;
	idad*s*) name=idad; chr=109;;
	md*s*) name=md;  chr=95;;
	mlxd*s*) name=mlxd; chr=131;;
	twed*s*) name=twed; chr=147;;
	wd*s*) name=wd;  chr=3;;
	wfd*s*) name=wfd; chr=87;;
	raid*s*) name=raid; chr=200;;
	esac
	case $i in
	aacd*s*|amrd*s*|idad*s*|mlxd*s*|twed*s*|raid*s*)
		unit=`expr $i : '....\([0-9]*\)s'`
		slice=`expr $i : '....[0-9]*s\([0-9]*\)'`
		part=`expr $i : '....[0-9]*s[0-9]*\(.*\)'`
		;;
	afd*s*|fla*s*|wfd*s*)
		unit=`expr $i : '...\([0-9]*\)s'`
		slice=`expr $i : '...[0-9]*s\([0-9]*\)'`
		part=`expr $i : '...[0-9]*s[0-9]*\(.*\)'`
		;;
	*)
		unit=`expr $i : '..\([0-9]*\)s'`
		slice=`expr $i : '..[0-9]*s\([0-9]*\)'`
		part=`expr $i : '..[0-9]*s[0-9]*\(.*\)'`
		;;
	esac
	case $unit in
	[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
		case $slice in
		[0-9]|[1-2][0-9]|30)
			oldslice=$slice
			slice=$(($slice+1))
			slicename=`dkitos $slice`
			minor=`dkminor 0 $unit $slice $dkrawpart`
			mknod  $name$unit$slicename c $chr $minor root:operator
			ln -f $name$unit$slicename r$name$unit$slicename
			case $part in
			[a-h])
				case $oldslice in
				0) slice=$oldslice ;;
				esac
				for part in 0 1 2 3 4 5 6 7
				do
					minor=`dkminor 0 $unit $slice $part`
					partname=`dkitop $part`
					mknod  $name$unit$slicename$partname \
					      c $chr $minor root:operator
					ln -f $name$unit$slicename$partname \
					     r$name$unit$slicename$partname
				done
				;;
			"")
				;;
			*)
				echo bad partition for disk in: $i
				;;
			esac
			;;
		*)
			echo bad slice for disk in: $i
			;;
		esac
		;;
	*)
		echo bad unit for disk in: $i "(unit=$unit, slice=$slice, part=$part)"
		;;
	esac
	umask 77
	;;

fd*)
	umask $disk_umask
	unit=`expr $i : '..\(.*\)'`
	name=fd; chr=9
	case $unit in
	0|1|2|3)
		mknod ${name}${unit}   c $chr $(($unit * 64)) root:operator
		# Fake BSD partitions
		for i in a b c d e f g h
		do
			ln -f ${name}${unit} ${name}${unit}$i
		done
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

ata)
	umask 177
	mknod ata c 159 0 root:operator
	umask 77
	;;
	

aacd*|ad*|ar*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|twed*|wd*|wfd*|raid*)
	umask $disk_umask
	case $i in
	aacd*) name=aacd; chr=151;;
	ad*) name=ad; chr=116;;
	ar*) name=ar; chr=157;;
	afd*) name=afd; chr=118;;
	amrd*) name=amrd; chr=133;;
	da*) name=da;  chr=13;;
	fla*) name=fla; chr=102;;
	idad*) name=idad; chr=109;;
	md*) name=md; chr=95;;
	mlxd*) name=mlxd; chr=131;;
	twed*) name=twed; chr=147;;
	wd*) name=wd;  chr=3;;
	wfd*) name=wfd; chr=87;;
	raid*) name=raid; chr=200;;
	esac
	case $i in
	aacd*|amrd*|idad*|mlxd*|twed*|raid*)
		unit=`expr $i : '....\(.*\)'`
		;;
	afd*|fla*|wfd*)
		unit=`expr $i : '...\(.*\)'`
		;;
	*)
		unit=`expr $i : '..\(.*\)'`
		;;
	esac
	case $unit in
	[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
		for slicepartname in s0h s1h s2 s3 s4
		do
			sh $0 $name$unit$slicepartname
		done
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

ccd*)
	umask $disk_umask
	name=ccd
	chr=74
	unit=`expr $i : '...\(.*\)'`
	case $unit in
	[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
		for part in 0 1 2 3 4 5 6 7
		do
			minor=`dkminor 0 $unit 0 $part`
			partname=`dkitop $part`
			mknod  $name$unit$partname c $chr $minor root:operator
			ln -f $name$unit$partname r$name$unit$partname
		done
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

# SCSI processor type driver
pt[0-9]*)
	chr=61
	name=pt
	unit=`expr $i : 'pt\([0-9][0-9]*\)'`
	if [ -z "${unit}" ]; then
		unit=0
	fi
	unit=$(($unit + 1 - 1))
	mknod ${name}${unit} c $chr `unit2minor $unit`
	;;

# SCSI SES/SAF-TE type driver
ses[0-9]*)
	chr=110
	name=ses
	unit=`expr $i : 'ses\([0-9][0-9]*\)'`
	if [ -z "${unit}" ]; then
		unit=0
	fi
	unit=$(($unit + 1 - 1))
	mknod ${name}${unit} c $chr `unit2minor $unit`
	;;
# SCSI target mode sample driver
targ[0-9]*)
	chr=65
	name=targ
	unit=`expr $i : 'targ\([0-9][0-9]*\)'`
	if [ -z "${unit}" ]; then
		unit=0
	fi
	unit=$(($unit + 1 - 1))
	mknod ${name}${unit} c $chr `unit2minor $unit`
	mknod ${name}.ctl c $chr 0xffff00ff
	;;

# CAM transport layer device
xpt*)
	# This major number is temporary
	chr=104
	name=xpt
	units=`expr $i : 'xpt\(.*\)'`
	if [ -z "${units}" ]; then
		units=1
	fi
	i=0
	while [ $i -lt $units ]; do
		dname=$name$i
		rm -rf $dname r$dname
		mknod $dname c $chr `unit2minor $i` root:operator
		i=$(($i + 1))
	done	
	;;

# CAM passthrough device
pass*)
	# This major number is temporary
	chr=31
	name=pass
	units=`expr $i : 'pass\(.*\)'`
	if [ -z "${units}" ]; then
		units=1
	fi
	i=0
	while [ $i -lt $units ]; do
		dname=$name$i
		rm -rf $dname r$dname
		mknod $dname c $chr `unit2minor $i` root:operator
		i=$(($i + 1))
	done	
	;;
pty*)
	class=`expr $i : 'pty\(.*\)'`
	case $class in
	0) offset=0 name=p;;
	1) offset=32 name=q;;
	2) offset=64 name=r;;
	3) offset=96 name=s;;
# Note that xterm (at least) only look at p-s.
	4) offset=128 name=P;;
	5) offset=160 name=Q;;
	6) offset=192 name=R;;
	7) offset=224 name=S;;
	# This still leaves [tuTU].
	*) echo bad unit for pty in: $i;;
	esac
	umask 0
	case $class in
	0|1|2|3|4|5|6|7)
		i=0
		while [ $i -lt 32 ]; do
#			This was an awk substr() before.
			c=$(echo 0123456789abcdefghijklmnopqrstuv |
			    dd bs=1 skip=$i count=1 2>/dev/null)
			mknod tty$name$c c 5 $(($offset + $i))
			mknod pty$name$c c 6 $(($offset + $i))
			i=$(($i + 1))
		done
		;;
	esac
	umask 77
	;;

sa*)
	umask $tape_umask
	unit=`expr $i : '..\(.*\)'`
	chr=14

	case $unit in
	[0-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9])
		mknod sa${unit}.ctl c $chr `saminor 1 ${unit} 0 0`
		ln -f sa${unit}.ctl rsa${unit}.ctl
		for m in 0 1 2 3
		do
			mknod sa${unit}.${m} c $chr \
			    `saminor 0 ${unit} ${m} 0`  root:operator
			ln -f sa${unit}.${m} rsa${unit}.${m}
			mknod nsa${unit}.${m} c $chr \
			    `saminor 0 ${unit} ${m} 1` root:operator
			ln -f nsa${unit}.${m} nrsa${unit}.${m}
			mknod esa${unit}.${m} c $chr \
			    `saminor 0 ${unit} ${m} 2` root:operator
			ln -f esa${unit}.${m} ersa${unit}.${m}
		done
		ln -f sa${unit}.0 sa${unit}
		ln -f sa${unit}.0 rsa${unit}.0
		ln -f sa${unit}.0 rsa${unit}
		ln -f nsa${unit}.0 nsa${unit}
		ln -f nsa${unit}.0 nrsa${unit}.0
		ln -f nsa${unit}.0 nrsa${unit}
		ln -f esa${unit}.0 esa${unit}
		ln -f esa${unit}.0 ersa${unit}.0
		ln -f esa${unit}.0 ersa${unit}
		;;
	*)
		echo bad unit for tape in: $i
		;;
	esac
	umask 77
	;;

ch*)
	umask 37
	unit=`expr $i : '..\(.*\)'`
	case $i in
	ch*) name=ch;  chr=17;;
	esac
	case $unit in
	0|1|2|3|4|5|6)
		mknod ${name}${unit}	c $chr $unit root:operator
		;;
	*)
		echo bad unit for media changer in: $i
		;;
	esac
	umask 77
	;;

ast*)
	umask 2 ;
	unit=`expr $i : '...\(.*\)'`
	chr=119
	case $unit in
	0|1|2|3)
		mknod ast${unit} c $chr $(($unit * 8 + 0)) root:operator
		chmod 640 ast${unit}
		mknod nast${unit} c $chr $(($unit * 8 + 1)) root:operator
		chmod 640 nast${unit}
		;;
	*)
		echo bad unit for tape in: $i
		;;
	esac
	umask 77
	;;

acd*t*)
	umask $disk_umask
	units=`expr $i : '...\(.*\)t'`;
	tracks=`expr $i : '.*t\(.*\)'`;
	name=acd;
	chr=117;
	if [ -z "${units}" ]; then
		units=0
	fi
	if [ -z "${tracks}" ]; then
		tracks=100
	fi
	if [ "${units}" -le 31 -a "${tracks}" -le 169 ]; then
		i=0
		while [ $i -le $units ]; do
			dname=$name$i
			rm -rf ${dname}t*
			j=1
			while [ $j -le ${tracks} ]; do
				mknod ${dname}t$j c $chr \
					$((($i * 8) + (65536 * $j))) \
					root:operator
				j=$(($j + 1))
			done
			i=$(($i + 1))
		done
	else
		echo "$i is invalid -- can't have more than 32 cd devices or 169 tracks"
	fi
	umask 77
	;;

acd*|cd*|mcd*|scd*)
	umask $disk_umask
	case $i in
	acd*) units=`expr $i : '...\(.*\)'`; name=acd; chr=117;;
	cd*) units=`expr $i : '..\(.*\)'`; name=cd; chr=15;;
	mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; chr=29;;
	scd*) units=`expr $i : '...\(.*\)'`; name=scd; chr=45;;
	esac
	if [ -z "${units}" ]; then
		units=0
	fi
	if [ "${units}" -le 31 ]; then
		i=0
		while [ $i -le $units ]; do
			dname=$name$i
			rm -rf ${dname}[!t]* r${dname}*
			mknod ${dname}a c $chr $(($i * 8)) root:operator
			mknod ${dname}c c $chr $(($i * 8 + 2)) root:operator
			ln -f ${dname}a r${dname}a
			ln -f ${dname}c r${dname}c
			i=$(($i + 1))
		done
	else
		echo "$i is invalid -- can't have more than 32 cd devices"
	fi
	umask 77
	;;

wcd*)
	umask 2 ;
	unit=`expr $i : '...\(.*\)'`
	chr=69
	case $unit in
	0|1|2|3|4|5|6|7)
		mknod wcd${unit}a  c $chr $(($unit * 8 + 0)) root:operator
		mknod wcd${unit}c  c $chr $(($unit * 8 + 2)) root:operator
		ln -f wcd${unit}a rwcd${unit}a
		ln -f wcd${unit}c rwcd${unit}c
		chmod 640 wcd${unit}[a-h] rwcd${unit}[a-h]
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

wst*)
	umask 2 ;
	unit=`expr $i : '...\(.*\)'`
	chr=90
	case $unit in
	0|1|2|3)
		mknod rwst${unit} c $chr $(($unit * 8 + 0)) root:operator
		chmod 640 rwst${unit}
		;;
	esac
	umask 77
	;;

iic*)
	unit=`expr $i : 'iic\(.*\)'`
	mknod iic$unit c 105 `unit2minor $unit`
	;;

smb*)
	unit=`expr $i : 'smb\(.*\)'`
	mknod smb$unit c 106 `unit2minor $unit`
	;;

pcfclock*)
	unit=`expr $i : 'pcfclock\(.*\)'`
	mknod pcfclock$unit c 140 `unit2minor $unit`
	;;

ppi*)
	unit=`expr $i : 'ppi\(.*\)'`
	mknod ppi$unit c 82 `unit2minor $unit`
	;;

pps*)
	unit=`expr $i : 'pps\(.*\)'`
	mknod pps$unit c 89 `unit2minor $unit`
	;;

usb)
	mknod usb c 108 255 root:operator
	chmod 0660 usb
	;;

usb*)
	umask 7
	unit=`expr $i : 'usb\(.*\)'`
	mknod usb$unit c 108 `unit2minor $unit` root:operator
	umask 77
	;;

uhid*)
	umask 7
	unit=`expr $i : 'uhid\(.*\)'`
	mknod uhid$unit c 122 `unit2minor $unit` root:operator
	umask 77
	;;

ums*)
	umask 7
	unit=`expr $i : 'ums\(.*\)'`
	mknod ums$unit c 111 `unit2minor $unit` root:operator
	umask 77
	;;

ulpt*)
	unit=`expr $i : 'ulpt\(.*\)'`
	minor=`unit2minor $unit`
	mknod ulpt$unit c 113 $minor
	minor=`unit2minor $(($unit + 64))`
	mknod unlpt$unit c 113 $minor		# and the 'no prime' version
	;;

ugen*)
	umask 7
	unit=`expr $i : 'ugen\([0-9][0-9]*\)'`
	endpoint=`expr $i : 'ugen.*\.\([0-9][0-9]*\)'`
	if [ -z "${unit}" ]; then
		echo $i - Invalid unit number
	fi
	if [ -z "${endpoint}" ]; then		# ugen0 & ugen0.1 - ugen0.15
		mknod ugen$unit c 114 \
				`unit2minor $(($unit * 16))` root:operator
		i=1
		while [ $i -lt 16 ]; do
			mknod ugen$unit.$i c 114 \
				`unit2minor $(($unit * 16 + $i))` root:operator
			i=$(($i + 1))
		done
	else
		minor=`unit2minor $(($unit * 16 + $endpoint))`
		mknod ugen$unit.$endpoint c 114 $minor root:operator
	fi
	umask 77
	;;

urio*)
	umask 7
	unit=`expr $i : 'urio\(.*\)'`
	mknod urio$unit c 143 `unit2minor $unit` root:operator
	umask 77
	;;

ucom*)
	umask 7
	unit=`expr $i : 'ucom\(.*\)'`
	minor=`unit2minor $(($unit + 128))`
	mknod ucom$unit c 138 $minor uucp:dialer
	umask 77
	;;

uscanner*)
	umask 7
	unit=`expr $i : 'uscanner\(.*\)'`
	mknod uscanner$unit c 156 `unit2minor $unit` root:operator
	umask 77
	;;

umodem*)
	umask 7
	unit=`expr $i : 'umodem\(.*\)'`
	mknod umodem$unit c 124 `unit2minor $unit` uucp:dialer
	umask 77
	;;

lpt*)
	unit=`expr $i : 'lpt\(.*\)'`
	mknod lpt$unit c 16 `unit2minor $unit`
	mknod lpctl$unit c 16 `unit2minor $(($unit + 128))`
	;;

# Use this to create virtual consoles for syscons, pcvt or codrv
# ttyv0-b
# use as MAKEDEV vtyNN to create NN entries
vty*)
	chr=12
	units=`expr $i : 'vty\(.*\)'`
	i=0
	while [ $i -lt $units ]; do
		mknod ttyv$(hexprint $i) c $chr `unit2minor $i`
		i=$(($i + 1))
	done
	ln -fs ttyv0 vga	# XXX X still needs this pccons relic
	;;

nmdm*)
	units=`expr $i : 'nmdm\(.*\)'`
	chr=18
	i=0
	while [ $i -lt $units ]; do
		minor=`unit2minor $i`
		minor=$(($minor + $minor))
		mknod nmdm${i}A c $chr $minor
		mknod nmdm${i}B c $chr $(($minor + 1))
		i=$(($i + 1))
	done
	;;

bpf*)
	units=`expr $i : 'bpf\(.*\)$'`
	unit=0
	while [ $unit -le $units ]; do
		mknod bpf$unit c 23 `unit2minor $unit`
		unit=$(($unit + 1))
	done
	;;

speaker)
	mknod speaker c 26 0
	;;

cua?|cuaa?|cuaa??)
	umask 7
	unit_low=`expr $i : 'cua.*\(.\)$'`
	case $i in
	cua?|cuaa?)
		unit_high=""
		m_high=0
		;;
	cuaa??)
		unit_high=`expr $i : 'cuaa\(.\).$'`
		m_high=`ttyminor $unit_high`
		;;
	esac
	unit=$unit_high$unit_low
	m=$(($m_high << 16 | `ttyminor $unit_low`))
	mknod cuaa$unit c 28 $(($m | 128)) uucp:dialer
	mknod cuaia$unit c 28 $(($m | 32 | 128)) uucp:dialer
	mknod cuala$unit c 28 $(($m | 64 | 128)) uucp:dialer
	umask 77
	;;

tty?|tty0?|ttyd?|ttyd??)
	unit_low=`expr $i : 'tty.*\(.\)$'`
	case $i in
	tty?|tty0?|ttyd?)
		unit_high=""
		m_high=0
		;;
	ttyd??)
		unit_high=`expr $i : 'ttyd\(.\).$'`
		m_high=`ttyminor $unit_high`
		;;
	esac
	unit=$unit_high$unit_low
	m=$(($m_high << 16 | `ttyminor $unit_low`))
	mknod ttyd$unit c 28 $m
	mknod ttyid$unit c 28 $(($m | 32))
	mknod ttyld$unit c 28 $(($m | 64))
	;;

cuac?)
	umask 7
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f
		  g h i j k l m n o p q r s t u v"
	major=48
	card=`expr $i : 'cua.*\(.\)$'`
	for unit in $portlist
	do
		minor=`ttyminor $unit`
		minor=$(($card * 65536 + $minor))
		name=$card$unit
		mknod cuac$name c $major $(($minor + 128)) uucp:dialer
		mknod cuaic$name c $major $(($minor + 32 + 128)) uucp:dialer
		mknod cualc$name c $major $(($minor + 64 + 128)) uucp:dialer
	done
	umask 77
	;;

ttyc?)
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f
		  g h i j k l m n o p q r s t u v"
	major=48
	card=`expr $i : 'tty.*\(.\)$'`
	for unit in $portlist
	do
		minor=`ttyminor $unit`
		minor=$(($card * 65536 + $minor))
		name=$card$unit
		mknod ttyc$name c $major $minor
		mknod ttyic$name c $major $(($minor + 32))
		mknod ttylc$name c $major $(($minor + 64))
	done
	;;

# RISCom8 'rc' driver entries

cuam?)
	umask 7
	unit=`expr $i : 'cua.*\(.\)$'`
	m=`ttyminor $unit`
	mknod cuam$unit c 63 $(($m + 128)) uucp:dialer
	umask 77
	;;

ttym?)
	unit=`expr $i : 'tty.*\(.\)$'`
	m=`ttyminor $unit`
	mknod ttym$unit c 63 $m
	;;

# Specialix SI/XIO.
# Note: these are 'base 1' to match the numbers on the panels, and to match
#       the manual that comes with the system.
ttyA*)
	major=68
	units=`expr $i : 'ttyA\(.*\)$'`
	port=1
	while [ $port -le $units ]; do
		minor=$(($port - 1))
		name=$(zeropad 2 $port)
		mknod ttyA$name c $major $minor
		mknod ttyiA$name c $major $(($minor + 65536))
		mknod ttylA$name c $major $(($minor + 131072))
		port=$(($port + 1))
	done
	# For the user-mode control program, 'sicontrol'
	mknod si_control c 68 262144
	;;

cuaA*)
	umask 7
	major=68
	units=`expr $i : 'cuaA\(.*\)$'`
	port=1
	while [ $port -le $units ]; do
		minor=$(($port - 1))
		name=$(zeropad 2 $port)
		mknod cuaA$name c $major $(($minor + 128)) uucp:dialer
		mknod cuaiA$name c $major $(($minor + 128 + 65536)) \
		    uucp:dialer
		mknod cualA$name c $major $(($minor + 128 + 131072)) \
		    uucp:dialer
		port=$(($port + 1))
	done
	umask 77
	;;

# Alpha AS8[24]00 (TurboLaser) console.
zs?)
	unit=`expr $i : 'zs.*\(.\)$'`
	m=`ttyminor $unit`
	mknod zs$unit c 135 $m
	;;

# Digiboard PC/?? 16 port card.
# The current scheme of minor numbering is:
#
#       unused{14} CARD{2} major{8} CALLOUT{1} LOCK{1} INIT{1} PORT{5}
#
#   CARD bitfield in future versions may be extended to 3 bits.
#
# See dgb(4)
#
ttyD?)
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
	major=58
	card=`expr $i : 'tty.*\(.\)$'`
	for unit in $portlist
	do
		minor=`ttyminor $unit`
		minor=$(($card * 65536 + $minor))
		name=$card$unit
		mknod ttyD$name c $major $minor
		mknod ttyiD$name c $major $(($minor + 32))
		mknod ttylD$name c $major $(($minor + 64))
	done

	# Also create devices for the digi driver
	umask 7
	major=162
	card=`expr $i : 'tty.*\(.\)$'`
	rm -f digi$card.ctl
	mknod digi$card.ctl c $major $(($card * 65536 + 8388608)) uucp:dialer
	unit=0
	while [ $unit -lt 16 ]
	do
		base=$(($card * 65536 + $unit))
		name=$card.$unit
		rm -f tty*D$name
		mknod ttyD$name c $major $base
		mknod ttyiD$name c $major $(($base + 1048576))
		mknod ttylD$name c $major $(($base + 2097152))
		unit=$(($unit + 1))
	done
	umask 77
	;;

cuaD?)
	umask 7
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
	major=58
	card=`expr $i : 'cua.*\(.\)$'`
	for unit in $portlist
	do
		minor=`ttyminor $unit`
		minor=$(($card * 65536 + $minor))
		name=$card$unit
		mknod cuaD$name c $major $(($minor + 128)) uucp:dialer
		mknod cuaiD$name c $major $(($minor + 32 + 128)) uucp:dialer
		mknod cualD$name c $major $(($minor + 64 + 128)) uucp:dialer
	done

	# Also create devices for the digi driver
	major=162
	card=`expr $i : 'cua.*\(.\)$'`
	rm -f digi$card.ctl
	mknod digi$card.ctl c $major $(($card * 65536 + 8388608)) uucp:dialer
	unit=0
	while [ $unit -lt 16 ]
	do
		base=$(($card * 65536 + $unit))
		name=$card.$unit
		rm -f cua*D$name
		mknod cuaD$name c $major $(($base + 4194304)) uucp:dialer
		mknod cuaiD$name c $major $(($base + 5242880)) uucp:dialer
		mknod cualD$name c $major $(($base + 6291456)) uucp:dialer
		unit=$(($unit + 1))
	done
	umask 77
	;;

# Digiboard Xem - superceeded by the digi device above
#
ttyM*)
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
	modulelist="a b c d"
	major=101
	card=`expr $i : 'tty.*\(.\)$'`
	for unit in $modulelist
	do
		moduleminor=`ttyminor $unit`
		moduleminor=$(($moduleminor % 10 * 16))
		modulename=$unit

		for unit in $portlist
		do
			minor=`ttyminor $unit`
			minor=$(($card * 65536 + $minor + $moduleminor))
			name=$card$modulename$unit
			rm -f tty*M$name
			mknod ttyM$name c $major $minor
			mknod ttyiM$name c $major $(($minor + 64))
			mknod ttylM$name c $major $(($minor + 128))
		done
	done
	;;

cuaM?)
	umask 7
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
	modulelist="a b c d"
	major=101
	card=`expr $i : 'cua.*\(.\)$'`
	for unit in $modulelist
	do
		moduleminor=`ttyminor $unit`
		moduleminor=$(($moduleminor % 10 * 16))
		modulename=$unit

		for unit in $portlist
		do
			minor=`ttyminor $unit`
			minor=$(($card * 65536 + $minor + $moduleminor))
			name=$card$modulename$unit
			rm -f cua*M$name
			mknod cuaM$name c $major $(($minor + 262144)) \
			    uucp:dialer
			mknod cuaiM$name c $major $(($minor + 64 + 262144)) \
			    uucp:dialer
			mknod cualM$name c $major $(($minor + 128 + 262144)) \
			    uucp:dialer
		done
	done
	umask 77
	;;

ttyR?)
	major=81
	BOARD=1; Rnum=0
	MINOR=$(($BOARD * 65536))
	controllers=$(
		dmesg | while read first rest; do
			case "$first" in
			RocketPort[0-4])
				echo "$first"
				;;
			esac
		done
	)
	rm -f ttyR* ttyiR* ttylR*
	for i in $controllers; do
	   ndevices=$(
		dmesg | while read first foo bar ports rest; do
			case "$first" in
			$i*)
				echo "$ports"
				;;
			esac
		done
	   )
	   echo -n "Creating $ndevices devices for $i: "
	   dev=0
	   while [ $dev -lt $ndevices ]; do
		   mknod ttyR$Rnum c $major $MINOR
		   mknod ttyiR$Rnum c $major $(($MINOR + 32))
		   mknod ttylR$Rnum c $major $(($MINOR + 64))
		   Rnum=$(($Rnum + 1))
		   MINOR=$(($MINOR + 1))
		   dev=$(($dev + 1))
	   done
		BOARD=$(($BOARD + 1))
		MINOR=$(($BOARD * 65536))
	   echo " "
	done
	;;

cuaR?)
	major=81
	BOARD=1; Rnum=0
	MINOR=$(($BOARD * 65536))
	controllers=$(
		dmesg | while read first rest; do
			case "$first" in
			RocketPort[0-4])
				echo "$first"
				;;
			esac
		done
	)
	rm -f cuaR* cuaiR* cualR*
	for i in $controllers; do
	   ndevices=$(
		dmesg | while read first foo bar ports rest; do
			case "$first" in
			$i*)
				echo "$ports"
				;;
			esac
		done
	   )
	   echo -n "Creating $ndevices devices for $i: "
	   dev=0
	   while [ $dev -lt $ndevices ]; do
		   mknod cuaR$Rnum c  $major $(($MINOR + 128)) uucp:dialer
		   mknod cuaiR$Rnum c $major $(($MINOR + 128 + 32)) \
		       uucp:dialer
		   mknod cualR$Rnum c $major $(($MINOR + 128 + 64)) \
		       uucp:dialer
		   Rnum=$(($Rnum + 1))
		   MINOR=$(($MINOR + 1))
		   dev=$(($dev + 1))
	   done
		BOARD=$(($BOARD + 1))
		MINOR=$(($BOARD * 65536))
	   echo " "
	done
	;;

mse*)
	unit=`expr $i : 'mse\(.*\)'`
	chr=27
	# non-blocking for X11
	mknod mse$unit c $chr `unit2minor $(($unit * 2 + 1))`
	;;

psm*)
	unit=`expr $i : 'psm\(.*\)'`
	chr=21
	# non-blocking for X11
	mknod psm$unit c $chr `unit2minor $(($unit * 2 + 1))`
	;;

mouse*)
	name=`expr $i : 'mouse\(.*\)'`
	if [ ! -c $name ]; then
		$0 $name			# make the appropriate device
	fi
	ln -fs $name mouse
	;;

pcaudio)
	mknod pcaudio c 24 0
	mknod pcaudioctl c 24 128
	;;

socksys)
	mknod socksys c 41 0
	mknod spx c 41 1
	ln -fs socksys nfsd
	chmod 666 socksys nfsd spx
	;;

snd*)
#
# changes from Linux voxware
# minor		Linux			FreeBSD
# 8		sequencer2 (aka music0)	music0
# 17		patmgr0			sequencer1
# 33		patmgr1			sequencer2
#

	unit=`expr $i : 'snd\(.*\)'`
	chr=30

	# XXX write this less verbosely, like std
	snd_security_hole=0	# XXX
	umask $snd_security_hole

	ln -fs mixer$unit mixer
	ln -fs sequencer$unit sequencer
	ln -fs dsp$unit dsp
	ln -fs audio$unit audio
	ln -fs dspW$unit dspW
	ln -fs music$unit music
	ln -fs pss$unit pss

	mknod mixer$unit	c $chr `unit2minor $(($unit * 16 + 0))`
	mknod sequencer$unit	c $chr `unit2minor $(($unit * 16 + 1))`
	mknod midi$unit		c $chr `unit2minor $(($unit * 16 + 2))`
	mknod dsp$unit		c $chr `unit2minor $(($unit * 16 + 3))`
	mknod audio$unit	c $chr `unit2minor $(($unit * 16 + 4))`
	mknod dspW$unit		c $chr `unit2minor $(($unit * 16 + 5))`
	mknod sndstat		c $chr 6
				# minor number 7 is unused
	mknod music$unit	c $chr `unit2minor $(($unit * 16 + 8))`
	mknod pss$unit		c $chr `unit2minor $(($unit * 16 + 9))`
				# minor number 10 is unused
	mknod midistat		c $chr 11
				# minor numbers 12-15 are unused
	umask 77
	;;

vat)
	mknod vatio c 25 128
	chmod 660 vatio
	;;

gsc*)
	unit=`expr $i : 'gsc\(.*\)'`
	mknod gsc${unit} c 47 `unit2minor $unit`
	mknod gsc${unit}p c 47 `unit2minor $(($unit + 8))`
	mknod gsc${unit}d c 47 `unit2minor $(($unit + 32))`
	mknod gsc${unit}pd c 47 `unit2minor $(($unit + 40))`
	chmod 666 gsc${unit}*
	;;

acpi)
	mknod acpi c 152 0 root:operator
	chmod 660 acpi
	;;

apm)
	mknod apm c 39 0 root:operator
	chmod 664 apm
	;;

apmctl)
	mknod apmctl c 39 8 root:operator
	chmod 660 apmctl
	;;

card*)
	unit=`expr $i : 'card\(.*\)'`
	chr=50
	mknod card$unit c $chr `unit2minor $unit`
	chmod 644 card$unit
	;;

ti*)	unit=`expr $i : 'ti\(.*\)'`
	chr=153
	mknod ti$unit c $chr `unit2minor $unit`
	chmod 600 ti$unit
	;;

ttyx?|ttyy?|ttyz?)
	case $i in
	*0) unit=0;;	*1) unit=1;;	*2) unit=2;;	*3) unit=3;;
	*4) unit=4;;	*5) unit=5;;	*6) unit=6;;	*7) unit=7;;
	*8) unit=8;;	*9) unit=9;;	*a) unit=10;;	*b) unit=11;;
	*c) unit=12;;	*d) unit=13;;	*e) unit=14;;	*f) unit=15;;
	esac
	case $i in
	ttyy?)  unit=$(($unit + 16));;
	ttyz?)  unit=$(($unit + 32));;
	esac
	mknod $i c 42 $unit
	;;

cronyx)
	mknod cronyx c 42 63
	;;

joy)
	mknod joy0 c 51 0 root:operator
	mknod joy1 c 51 1 root:operator
	chmod 640  joy0 joy1
	;;

spigot)
	mknod spigot c 11 0
	chmod 444 spigot
	;;

ctx?)
	unit=`expr $i : 'ctx\(.*\)'`
	mknod ctx$unit c 40 `unit2minor $unit`
	chmod 444 ctx$unit
	;;

meteor?)
	unit=`expr $i : 'meteor\(.*\)'`
	mknod meteor$unit c 67 `unit2minor $unit`
	chmod 444 meteor$unit
	;;

bktr?)
	unit=`expr $i : 'bktr\(.*\)'`
	mknod bktr$unit c 92 `unit2minor $unit`
	mknod tuner$unit c 92 `unit2minor $((16 + $unit))`
	mknod vbi$unit c 92 `unit2minor $((32 + $unit))`
	chmod 444 bktr$unit tuner$unit vbi$unit
	;;

tun*)
	units=`expr $i : 'tun\(.*\)$'`
	unit=0
	while [ $unit -le $units ]; do
		mknod tun$unit c 52 `unit2minor $unit`
		unit=$(($unit + 1))
	done
	;;

tap*)
	units=`expr $i : 'tap\(.*\)$'`
	unit=0
	while [ $unit -le $units ]; do
		mknod tap$unit c 149 `unit2minor $unit` root:network
		unit=$(($unit + 1))
	done
	;;

sysmouse)
	mknod sysmouse c 12 128
	mknod consolectl c 12 255
	;;

jogdial)
	mknod jogdial c 160 0
	;;

snp?)
	unit=`expr $i : 'snp\(.*\)'`
	mknod snp$unit c 53 `unit2minor $unit`
	;;

# dufault@@hda.com: If I do much more work on other A-D boards
# then eventually we'll have an "ad" and "dio" interface and some of these
# "labpcaio" ones will be gone.
# labpcaio: D-A and A-D.
# labpcdio: Digital in and Digital out.
#
labpc*)
	umask 7
	case $i in
	labpcaio*)
		name=labpcaio
		unit=`expr $i : 'labpcaio\(.*\)'`
		all="0 1 2 3 4 5 6 7"
		offset=0
		;;
	labpcdio*)
		name=labpcdio
		unit=`expr $i : 'labpcdio\(.*\)'`
		all="0 1 2 3"
		offset=8
		;;
	*)
		die 3 "Don't know LabPC type $i"
		;;
	esac
	if [ -z "${unit}" ]; then
		unit=all
	fi
	case $unit in
		0|1|2|3|4|5|6|7)
				mknod $name$unit c 66 $(($offset + $unit))
		;;
		all)
			for i in $all
			do
				mknod $name$i c 66 $(($offset + $i))
			done
			;;
		*)
			echo "No such LabPC unit: $unit"
			;;
	esac
	umask 77
	;;

perfmon)
	mknod perfmon c 2 32 root:kmem
	chmod 640 perfmon
	;;

ipl)
	mknod ipl c 79 0
	mknod ipnat c 79 1
	mknod ipstate c 79 2
	mknod ipauth c 79 3
	;;

kbd*)
	unit=`expr $i : 'kbd\(.*\)'`
	chr=112
	mknod kbd$unit c $chr `unit2minor $unit`
	;;

i4b)
	mknod i4b c 60 0
	;;

i4bctl)
	mknod i4bctl c 55 0
	;;

i4brbch*)
	unit=`expr $i : 'i4brbch\(.*\)'`
	mknod i4brbch$unit c 57 `unit2minor $unit`
	;;

i4bteld*)
	offset=64
	unit=`expr $i : 'i4bteld\(.*\)'`
	mknod i4bteld$unit c 56 `unit2minor $(($offset + $unit))`
	;;

i4btel*)
	unit=`expr $i : 'i4btel\(.*\)'`
	mknod i4btel$unit c 56 `unit2minor $unit`
	;;

i4btrc*)
	unit=`expr $i : 'i4btrc\(.*\)'`
	mknod i4btrc$unit c 59 `unit2minor $unit`
	;;

aac*)
	unit=`expr $i : 'aac\(.*\)'`
	mknod aac$unit c 150 `unit2minor $unit`
	ln -fs aac$unit afa$unit
	ln -fs aac$unit hpn$unit
	;;

mlx*)
	unit=`expr $i : 'mlx\(.*\)'`
	mknod mlx$unit c 130 `unit2minor $unit`
	;;

mly*)
	unit=`expr $i : 'mlx\(.*\)'`
	mknod mlx$unit c 158 `unit2minor $unit`
	;;

amr*)
	unit=`expr $i : 'amr\(.*\)'`
	mknod amr$unit c 132 `unit2minor $unit`
	;;

ciss*)
	unit=`expr $i : 'ciss\(.*\)'`
	mknod ciss$unit c 166 `unit2minor $unit`
	;;

3dfx*)
	unit=`expr $i : '3dfx\(.*\)'`
	mknod 3dfx$unit c 107 `unit2minor $unit`
	ln -sf 3dfx$unit 3dfx
   ln -sf 3dfx$unit voodoo
	;;

agpgart)
	mknod agpgart c 148 0
	;;

twe*)
	unit=`expr $i : 'twe\(.*\)'`
	mknod twe$unit c 146 `unit2minor $unit`
	;;

tw*)
	unit=`expr $i : 'tw\(.*\)'`
	mknod tw$unit c 19 `unit2minor $unit` root:operator
	;;

cfs*)
	unit=`expr $i : 'cfs\(.*\)'`
	mknod cfs$unit c 93 $unit root:operator
	;;

nsmb*)
	unit=`expr $i : 'nsmb\(.*\)'`
	mknod nsmb$unit c 144 $unit
	;;

elan*)
	mknod elan-mmcr c 100 0	# XXX local major
	chmod 600 elan-mmcr
	;;

crypto)
	mknod crypto c 70 0 root:operator
	chmod 666 crypto
	;;

fwmem*)
	unit=`expr $i : 'fwmem\(.*\)'`
	mknod fwmem$unit c 127 $((1<<24 | $unit)) root:operator
	chmod 660 fwmem$unit
	;;

fw*)
	unit=`expr $i : 'fw\(.*\)'`
	mknod fw$unit c 127 $unit root:operator
	chmod 660 fw$unit
	;;

local)
	umask 0			# XXX should be elsewhere
	sh $0.local
	umask 77
	;;

*)
	echo $i - no such device name
	;;

esac
done
@


1.336
log
@Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
@
text
@d23 1
a23 1
# $FreeBSD$
@


1.335
log
@Further sync to kernel make_dev(): since we don't provide group access
to /dev/raidctl, don't set the group to operator.  (This isn't a
storage device, it's a control device).

Also, since umask here is already restrictive, we don't need to
explicitly set the mode.

Submitted by:	bde
@
text
@d1596 1
a1596 1
# then eventually we'll have a "ad" and "dio" interface and some of these
@


1.334
log
@add fwmem* and fw*.
@
text
@d450 1
a450 1
	mknod raidctl c 201 0 root:operator;	chmod 0600 raidctl
@


1.333
log
@Set the mode on the raidctl device to 0600.

Reviewed by:	scottl
@
text
@d1755 12
@


1.332
log
@Fix a bug in MAKEDEV -- when creating /dev/usb, the code was using
whatever random value was already in $unit. It happened to work
because the variable is often unset, but this is not always the
case e.g. when you call "MAKEDEV sio2 usb ..."

This affects -stable as well.

Reviewed by: n_hibma
Silence from: re
MFC after: 3 days
@
text
@d450 1
a450 1
	mknod raidctl c 201 0 root:operator
@


1.332.2.1
log
@MFC: Introduce FireWire userland utility.
- Install header files.
- Make device nodes.

Approved by:	re (rwatson)
@
text
@a1754 12
fwmem*)
	unit=`expr $i : 'fwmem\(.*\)'`
	mknod fwmem$unit c 127 $((1<<24 | $unit)) root:operator
	chmod 660 fwmem$unit
	;;

fw*)
	unit=`expr $i : 'fw\(.*\)'`
	mknod fw$unit c 127 $unit root:operator
	chmod 660 fw$unit
	;;

@


1.332.2.2
log
@Normalize MAKEDEV permissions for raidctl device.

Approved by:	re (scottl)
@
text
@d450 1
a450 1
	mknod raidctl c 201 0 root:operator;	chmod 0600 raidctl
@


1.331
log
@After much delay and anticipation, welcome RAIDFrame into the FreeBSD
world.  This should be considered highly experimental.

Approved-by:	re
@
text
@d919 2
a920 2
	mknod usb$unit c 108 255 root:operator
	chmod 0660 usb$unit
@


1.330
log
@Remove matcd from MAKEDEV.

X-MFC after:	ASAP
@
text
@d449 4
d454 1
a454 1
aacd*s*|ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|twed*s*|wd*s*|wfd*s*)
d470 1
d473 1
a473 1
	aacd*s*|amrd*s*|idad*s*|mlxd*s*|twed*s*)
d560 1
a560 1
aacd*|ad*|ar*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|twed*|wd*|wfd*)
d576 1
d579 1
a579 1
	aacd*|amrd*|idad*|mlxd*|twed*)
@


1.329
log
@add support for /dev/crypto
@
text
@a46 1
#	matcd*	Matsushita (Panasonic) CD-ROM disks
d316 1
a316 1
	sh $0 cd0 matcd0 mcd0 scd0			# cdrom
a851 30
	umask 77
	;;

matcd*)
	umask 2
	case $i in
	matcd*) unit=`expr $i : '.....\(.*\)'`; name=matcd; chr=46;;
	esac
	case $unit in
	0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15)
		mknod ${name}${unit}a	c $chr $(($unit * 8 + 0)) \
		    root:operator
		mknod ${name}${unit}c   c $chr $(($unit * 8 + 2)) \
		    root:operator
		ln -f ${name}${unit}a r${name}${unit}a
		ln -f ${name}${unit}c r${name}${unit}c
		chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]

		mknod ${name}${unit}la  c $chr $(($unit * 8 + 128)) \
		    root:operator
		mknod ${name}${unit}lc  c $chr $(($unit * 8 + 130)) \
		    root:operator
		ln -f ${name}${unit}la r${name}${unit}la
		ln -f ${name}${unit}lc r${name}${unit}lc
		chmod 640 ${name}${unit}l[a-h] r${name}${unit}l[a-h]
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
@


1.328
log
@MFC: Elan support;

o Recognize AMD Elan SC520 hostbridge.
o Add initialization code for the AMD Elan sc520 which maps the MMCR
  into KVM and sets the i8254 frequency to the correct value.
o MAKEDEV entry for elan-mmcr device

Reviewed by:	phk, jhb
Approved by:	re(jhb)
@
text
@d131 1
d345 1
d1773 5
@


1.327
log
@Remove some unnecessary sanity checks that break "sh MAKEDEV cd"
and others, because test(1) does not do shortcut evaluation.

Fix the same off-by-one error for acd*t* that revision 1.326 fixed
for other *cd devices.

Suggested by:	bde
Reviewed by:	bde
@
text
@d155 1
d1766 5
@


1.326
log
@Permit the creation of just cd0 if desired. Previously it always
created cd1 as well due to an off-by-one error left over from
revision 1.249.

PR:		conf/20436
Submitted by:	Andre Albsmeier <andre.albsmeier@@mchp.siemens.de>
MFC after:	1 week
@
text
@d799 2
a800 2
	if [ -z "${units}" -o "${units}" -le 0 ]; then
		units=1
d802 1
a802 1
	if [ -z "${tracks}" -o "${tracks}" -le 0 ]; then
d833 1
a833 1
	if [ -z "${units}" -o "${units}" -le 0 ]; then
@


1.325
log
@Rename 'usio' to 'ucom'.

Spotted by:	akiyama
@
text
@d834 1
a834 1
		units=1
@


1.324
log
@At long last, commit the zero copy sockets code.

MAKEDEV:	Add MAKEDEV glue for the ti(4) device nodes.

ti.4:		Update the ti(4) man page to include information on the
		TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS kernel options,
		and also include information about the new character
		device interface and the associated ioctls.

man9/Makefile:	Add jumbo.9 and zero_copy.9 man pages and associated
		links.

jumbo.9:	New man page describing the jumbo buffer allocator
		interface and operation.

zero_copy.9:	New man page describing the general characteristics of
		the zero copy send and receive code, and what an
		application author should do to take advantage of the
		zero copy functionality.

NOTES:		Add entries for ZERO_COPY_SOCKETS, TI_PRIVATE_JUMBOS,
		TI_JUMBO_HDRSPLIT, MSIZE, and MCLSHIFT.

conf/files:	Add uipc_jumbo.c and uipc_cow.c.

conf/options:	Add the 5 options mentioned above.

kern_subr.c:	Receive side zero copy implementation.  This takes
		"disposable" pages attached to an mbuf, gives them to
		a user process, and then recycles the user's page.
		This is only active when ZERO_COPY_SOCKETS is turned on
		and the kern.ipc.zero_copy.receive sysctl variable is
		set to 1.

uipc_cow.c:	Send side zero copy functions.  Takes a page written
		by the user and maps it copy on write and assigns it
		kernel virtual address space.  Removes copy on write
		mapping once the buffer has been freed by the network
		stack.

uipc_jumbo.c:	Jumbo disposable page allocator code.  This allocates
		(optionally) disposable pages for network drivers that
		want to give the user the option of doing zero copy
		receive.

uipc_socket.c:	Add kern.ipc.zero_copy.{send,receive} sysctls that are
		enabled if ZERO_COPY_SOCKETS is turned on.

		Add zero copy send support to sosend() -- pages get
		mapped into the kernel instead of getting copied if
		they meet size and alignment restrictions.

uipc_syscalls.c:Un-staticize some of the sf* functions so that they
		can be used elsewhere.  (uipc_cow.c)

if_media.c:	In the SIOCGIFMEDIA ioctl in ifmedia_ioctl(), avoid
		calling malloc() with M_WAITOK.  Return an error if
		the M_NOWAIT malloc fails.

		The ti(4) driver and the wi(4) driver, at least, call
		this with a mutex held.  This causes witness warnings
		for 'ifconfig -a' with a wi(4) or ti(4) board in the
		system.  (I've only verified for ti(4)).

ip_output.c:	Fragment large datagrams so that each segment contains
		a multiple of PAGE_SIZE amount of data plus headers.
		This allows the receiver to potentially do page
		flipping on receives.

if_ti.c:	Add zero copy receive support to the ti(4) driver.  If
		TI_PRIVATE_JUMBOS is not defined, it now uses the
		jumbo(9) buffer allocator for jumbo receive buffers.

		Add a new character device interface for the ti(4)
		driver for the new debugging interface.  This allows
		(a patched version of) gdb to talk to the Tigon board
		and debug the firmware.  There are also a few additional
		debugging ioctls available through this interface.

		Add header splitting support to the ti(4) driver.

		Tweak some of the default interrupt coalescing
		parameters to more useful defaults.

		Add hooks for supporting transmit flow control, but
		leave it turned off with a comment describing why it
		is turned off.

if_tireg.h:	Change the firmware rev to 12.4.11, since we're really
		at 12.4.11 plus fixes from 12.4.13.

		Add defines needed for debugging.

		Remove the ti_stats structure, it is now defined in
		sys/tiio.h.

ti_fw.h:	12.4.11 firmware.

ti_fw2.h:	12.4.11 firmware, plus selected fixes from 12.4.13,
		and my header splitting patches.  Revision 12.4.13
		doesn't handle 10/100 negotiation properly.  (This
		firmware is the same as what was in the tree previously,
		with the addition of header splitting support.)

sys/jumbo.h:	Jumbo buffer allocator interface.

sys/mbuf.h:	Add a new external mbuf type, EXT_DISPOSABLE, to
		indicate that the payload buffer can be thrown away /
		flipped to a userland process.

socketvar.h:	Add prototype for socow_setup.

tiio.h:		ioctl interface to the character portion of the ti(4)
		driver, plus associated structure/type definitions.

uio.h:		Change prototype for uiomoveco() so that we'll know
		whether the source page is disposable.

ufs_readwrite.c:Update for new prototype of uiomoveco().

vm_fault.c:	In vm_fault(), check to see whether we need to do a page
		based copy on write fault.

vm_object.c:	Add a new function, vm_object_allocate_wait().  This
		does the same thing that vm_object allocate does, except
		that it gives the caller the opportunity to specify whether
		it should wait on the uma_zalloc() of the object structre.

		This allows vm objects to be allocated while holding a
		mutex.  (Without generating WITNESS warnings.)

		vm_object_allocate() is implemented as a call to
		vm_object_allocate_wait() with the malloc flag set to
		M_WAITOK.

vm_object.h:	Add prototype for vm_object_allocate_wait().

vm_page.c:	Add page-based copy on write setup, clear and fault
		routines.

vm_page.h:	Add page based COW function prototypes and variable in
		the vm_page structure.

Many thanks to Drew Gallatin, who wrote the zero copy send and receive
code, and to all the other folks who have tested and reviewed this code
over the years.
@
text
@d106 1
a106 1
#	usio*	USB serial devices
d1004 1
a1004 1
usio*)
d1006 1
a1006 1
	unit=`expr $i : 'usio\(.*\)'`
d1008 1
a1008 1
	mknod usio$unit c 138 $minor uucp:dialer
@


1.323
log
@Support more than 32 sio unit numbers.  The maximum unit number is now
(65536 * 32 - 1), but MAKEDEV only supports up to (32 * 32 -1).  Device
names use the unit number in base 32 for all "digits".

This required fixing an old bug in MAKEDEV:ttyminor().  Its arg was the
global $unit instead of $1.

Reminded by:	Valentin K. Ponomarenko <valka@@krog.ukrtel.net>
MFC-after:	1 week
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.322 2002/03/10 22:34:56 cjc Exp $
d342 1
d1528 6
@


1.322
log
@Remove a mention of the worm(4) device that was missed when it was
removed from MAKEDEV in 1.171.

PR:		misc/35729
MFC after:	1 day
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.321 2002/02/09 21:16:54 jhb Exp $
d259 2
a260 2
	case $unit in
	[0-9]) m=$unit;;
d1071 1
a1071 1
cuaa?|cua?)
d1073 16
a1088 5
	unit=`expr $i : 'cua.*\(.\)$'`
	m=`ttyminor $unit`
	mknod cuaa$unit c 28 $(($m + 128)) uucp:dialer
	mknod cuaia$unit c 28 $(($m + 32 + 128)) uucp:dialer
	mknod cuala$unit c 28 $(($m + 64 + 128)) uucp:dialer
d1092 14
a1105 3
tty0?|ttyd?|tty?)
	unit=`expr $i : 'tty.*\(.\)$'`
	m=`ttyminor $unit`
d1107 2
a1108 2
	mknod ttyid$unit c 28 $(($m + 32))
	mknod ttyld$unit c 28 $(($m + 64))
@


1.321
log
@Fix MAKEDEV for RocketPort (rp(4)) cuaR* and ttyR* to work with the
updated driver.  The newer driver in current outputs a version string
that contains a space, so we need to eat two words in between RocketPortX
and the number of ports on the board.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.320 2001/12/27 22:41:35 cjc Exp $
a109 1
#	worm*	WORM driver
@


1.320
log
@Fix some leftover stray characters from expr(1)-to-$(()) sweeps.

PR:		bin/33158
Submitted by:	Adrian Filipi-Martin <adrian@@ubergeeks.com>
MFC after:	1 day
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.319 2001/12/27 15:03:25 joerg Exp $
d1332 1
a1332 1
		dmesg | while read first bar ports rest; do
d1372 1
a1372 1
		dmesg | while read first bar ports rest; do
@


1.319
log
@Remove nonstandard floppy device nodes.  Only keep the base device node,
plus the symbolic links to the fake BSD partitions.

Also remove the rfd* devices, they are neither necessary nor documented
anymore.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.318 2001/12/26 15:44:06 sheldonh Exp $
d1516 2
a1517 2
	ttyy?)  unit=$(($unit \+ 16));;
	ttyz?)  unit=$(($unit \+ 32));;
@


1.318
log
@Now that smbfs is fully integrated into the base system, create
/dev/nsmb* device nodes, which used to be done by the port installation.

PR:		33068
Submitted by:	Dimitry Andric <dim@@xs4all.nl>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.317 2001/12/05 08:50:51 des Exp $
a532 1
		ln -f ${name}${unit} r${name}${unit}
a536 1
			ln -f r${name}${unit} r${name}${unit}$i
a537 83
		# User-readable and programmer-readable name sets

		mknod ${name}${unit}.1720  c $chr $(($unit * 64 + 1)) \
		    root:operator
		ln -f ${name}${unit}.1720 r${name}${unit}.1720
		# ln -f ${name}${unit}.1720 ${name}${unit}135hs21
		# ln -f r${name}${unit}.1720 r${name}${unit}135hs21

		mknod ${name}${unit}.1480  c $chr $(($unit * 64 + 2)) \
		    root:operator
		ln -f ${name}${unit}.1480 r${name}${unit}.1480
		# ln -f ${name}${unit}.1480 ${name}${unit}135hs18
		# ln -f r${name}${unit}.1480 r${name}${unit}135hs18
		# ln -f ${name}${unit}.1480 ${name}${unit}96hs18
		# ln -f r${name}${unit}.1480 r${name}${unit}96hs18

		mknod ${name}${unit}.1440  c $chr $(($unit * 64 + 3)) \
		    root:operator
		ln -f ${name}${unit}.1440 r${name}${unit}.1440
		# ln -f ${name}${unit}.1440 ${name}${unit}135
		# ln -f r${name}${unit}.1440 r${name}${unit}135
		# ln -f ${name}${unit}.1440 ${name}${unit}135ds18
		# ln -f r${name}${unit}.1440 r${name}${unit}135ds18
		# ln -f ${name}${unit}.1440 ${name}${unit}96ds18
		# ln -f r${name}${unit}.1440 r${name}${unit}96ds18

		mknod ${name}${unit}.1200  c $chr $(($unit * 64 + 4)) \
		    root:operator
		ln -f ${name}${unit}.1200 r${name}${unit}.1200
		# ln -f ${name}${unit}.1200 ${name}${unit}96
		# ln -f r${name}${unit}.1200 r${name}${unit}96
		# ln -f ${name}${unit}.1200 ${name}${unit}96ds15
		# ln -f r${name}${unit}.1200 r${name}${unit}96ds15
		# ln -f ${name}${unit}.1200 ${name}${unit}135ds15
		# ln -f r${name}${unit}.1200 r${name}${unit}135ds15

		mknod ${name}${unit}.820  c $chr $(($unit * 64 + 5)) \
		    root:operator
		ln -f ${name}${unit}.820 r${name}${unit}.820
		# ln -f ${name}${unit}.820 ${name}${unit}96hs10
		# ln -f r${name}${unit}.820 r${name}${unit}96hs10
		# ln -f ${name}${unit}.820 ${name}${unit}135hs10
		# ln -f r${name}${unit}.820 r${name}${unit}135hs10

		mknod ${name}${unit}.800  c $chr $(($unit * 64 + 6)) \
		    root:operator
		ln -f ${name}${unit}.800 r${name}${unit}.800
		# ln -f ${name}${unit}.800 ${name}${unit}96ds10
		# ln -f r${name}${unit}.800 r${name}${unit}96ds10
		# ln -f ${name}${unit}.800 ${name}${unit}135ds10
		# ln -f r${name}${unit}.800 r${name}${unit}135ds10

		mknod ${name}${unit}.720  c $chr $(($unit * 64 + 7)) \
		    root:operator
		ln -f ${name}${unit}.720 r${name}${unit}.720
		# ln -f ${name}${unit}.720 ${name}${unit}96ds9
		# ln -f r${name}${unit}.720 r${name}${unit}96ds9
		# ln -f ${name}${unit}.720 ${name}${unit}135ds9
		# ln -f r${name}${unit}.720 r${name}${unit}135ds9

		mknod ${name}${unit}.360  c $chr $(($unit * 64 + 8)) \
		    root:operator
		ln -f ${name}${unit}.360 r${name}${unit}.360
		# ln -f ${name}${unit}.360 ${name}${unit}48
		# ln -f r${name}${unit}.360 r${name}${unit}48
		# ln -f ${name}${unit}.360 ${name}${unit}48ds9
		# ln -f r${name}${unit}.360 r${name}${unit}48ds9

		mknod ${name}${unit}.640  c $chr $(($unit * 64 + 9)) \
		    root:operator
		ln -f ${name}${unit}.640 r${name}${unit}.640
		# ln -f ${name}${unit}.640 ${name}${unit}96ds8
		# ln -f r${name}${unit}.640 r${name}${unit}96ds8
		# ln -f ${name}${unit}.640 ${name}${unit}135ds8
		# ln -f r${name}${unit}.640 r${name}${unit}135ds8

		mknod ${name}${unit}.1232  c $chr $(($unit * 64 + 10)) \
		    root:operator
		ln -f ${name}${unit}.1232 r${name}${unit}.1232
		# ln -f ${name}${unit}.1232 ${name}${unit}96ds8
		# ln -f r${name}${unit}.1232 r${name}${unit}96ds8
		# ln -f ${name}${unit}.1232 ${name}${unit}135ds8
		# ln -f r${name}${unit}.1232 r${name}${unit}135ds8
@


1.317
log
@Bruce says the links are not needed.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.316 2001/12/04 00:48:21 des Exp $
d155 1
d342 1
d1817 5
@


1.316
log
@Call the ATAPI tape devices "ast" and "nast", not "rast" and "nrast".  Add
backward compatibility symlinks for good measure.
DEVFS already gets this right (except for the symlinks).

PR:		24781
Submitted by:	Christian Weisgerber <naddy@@mips.inka.de>
MFC after:	3 days
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.315 2001/12/04 00:40:38 des Exp $
a865 1
		ln -fs ast${unit} rast${unit}
a867 1
		ln -fs nast${unit} nrast${unit}
@


1.315
log
@Create {ad,da,...}s1[a-h].

PR:		19849
Submitted by:	Udo Erdelhoff <ue@@nathan.ruhr.de>
MFC after:	3 days
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.314 2001/11/27 23:12:00 msmith Exp $
d864 6
a869 4
		mknod rast${unit} c $chr $(($unit * 8 + 0)) root:operator
		chmod 640 rast${unit}
		mknod nrast${unit} c $chr $(($unit * 8 + 1)) root:operator
		chmod 640 nrast${unit}
@


1.314
log
@Support the 'ciss' device node.

MFC after:	1 week
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.313 2001/11/27 11:57:47 sheldonh Exp $
d666 1
a666 1
		for slicepartname in s0h s1 s2 s3 s4
@


1.313
log
@Catch two extraneous calls to expr(1) that slipped past rev 1.311.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.312 2001/11/25 12:49:32 sheldonh Exp $
d1784 5
@


1.312
log
@Style clean-up.

Submitted by:	bde
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.311 2001/11/20 17:56:34 sheldonh Exp $
d1231 1
a1231 1
		minor=$(expr $port - 1)
d1248 1
a1248 1
		minor=$(expr $port - 1)
@


1.311
log
@Avoid unnecessary calls to expr(1) by using standard shell arithmetic
expansion instead.

MFC after:	1 week
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.310 2001/11/20 17:33:10 sheldonh Exp $
d199 4
a202 2
# Print the hexadecimal representation of a decimal value from 0 to 15
hexdigit () {
d204 1
a204 1
		echo $1
d207 2
a208 6
		10)	echo a ;;
		11)	echo b ;;
		12)	echo c ;;
		13)	echo d ;;
		14)	echo e ;;
		15)	echo f ;;
d211 1
d214 6
a219 2
# Print the hexadecimal representation of an arbitrary decimal value
hexprint () {
d222 7
a228 8

	dig=`hexdigit $((${val} & 15))`
	str=${dig}${str}
	val=$((${val} >> 4))
	while [ ${val} -gt 0 ]; do
		dig=`hexdigit $((${val} & 15))`
		str=${dig}${str}
		val=$((${val} >> 4))
d230 1
a230 2

	echo ${str}
d273 1
a273 1
  echo $(((($1 >> 8) << 16) | ($1 % 256)))
d276 5
a280 2
# Zero-pad a value to the appropriate minimum length
zeropad () {
d283 2
a284 3

	while [ ${#val} -lt ${min} ]; do
		val=0${val}
d286 1
a286 2

	echo ${val}
@


1.310
log
@(null commit)

The previous delta only makes sense given that test(1) has been made a
shell builtin command.  Without this optimization, you'd be better off
using printf(1) if you cared about efficiency at this level (although
the use of printf(1) prior to mounting /usr would remain an issue).
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.309 2001/11/20 17:24:35 sheldonh Exp $
d425 2
a426 2
	mknod rwt${u}   c 10 `expr  0 + $u` root:operator
	mknod nrwt${u}  c 10 `expr  4 + $u` root:operator
d428 12
a439 12
#	mknod rWt${u}   c 10 `expr 64 + $u` root:operator
#	mknod nrWt${u}  c 10 `expr 68 + $u` root:operator
	mknod rwt${u}b  c 10 `expr 16 + $u` root:operator	# 60 megabytes
	mknod nrwt${u}b c 10 `expr 20 + $u` root:operator
	mknod rwt${u}c  c 10 `expr 24 + $u` root:operator	# 120 megabytes
	mknod nrwt${u}c c 10 `expr 28 + $u` root:operator
	mknod rwt${u}d  c 10 `expr 32 + $u` root:operator	# 150 megabytes
	mknod nrwt${u}d c 10 `expr 36 + $u` root:operator
#	mknod rwt${u}e  c 10 `expr 40 + $u` root:operator	# 300 megabytes?
#	mknod nrwt${u}e c 10 `expr 44 + $u` root:operator
#	mknod rwt${u}f  c 10 `expr 48 + $u` root:operator	# 600 megabytes?
#	mknod nrwt${u}f c 10 `expr 52 + $u` root:operator
d528 1
a528 1
		mknod ${name}${unit}   c $chr `expr $unit '*' 64` root:operator
d538 1
a538 1
		mknod ${name}${unit}.1720  c $chr `expr $unit '*' 64 + 1` \
d544 1
a544 1
		mknod ${name}${unit}.1480  c $chr `expr $unit '*' 64 + 2` \
d552 1
a552 1
		mknod ${name}${unit}.1440  c $chr `expr $unit '*' 64 + 3` \
d562 1
a562 1
		mknod ${name}${unit}.1200  c $chr `expr $unit '*' 64 + 4` \
d572 1
a572 1
		mknod ${name}${unit}.820  c $chr `expr $unit '*' 64 + 5` \
d580 1
a580 1
		mknod ${name}${unit}.800  c $chr `expr $unit '*' 64 + 6` \
d588 1
a588 1
		mknod ${name}${unit}.720  c $chr `expr $unit '*' 64 + 7` \
d596 1
a596 1
		mknod ${name}${unit}.360  c $chr `expr $unit '*' 64 + 8` \
d604 1
a604 1
		mknod ${name}${unit}.640  c $chr `expr $unit '*' 64 + 9` \
d612 1
a612 1
		mknod ${name}${unit}.1232  c $chr `expr $unit '*' 64 + 10` \
d706 1
a706 1
	unit=`expr $unit + 1 - 1`
d718 1
a718 1
	unit=`expr $unit + 1 - 1`
d729 1
a729 1
	unit=`expr $unit + 1 - 1`
d862 1
a862 1
		mknod rast${unit} c $chr `expr $unit '*' 8 + 0` root:operator
d864 1
a864 1
		mknod nrast${unit} c $chr `expr $unit '*' 8 + 1` root:operator
d941 1
a941 1
		mknod ${name}${unit}a	c $chr `expr $unit '*' 8 + 0` \
d943 1
a943 1
		mknod ${name}${unit}c   c $chr `expr $unit '*' 8 + 2` \
d949 1
a949 1
		mknod ${name}${unit}la  c $chr `expr $unit '*' 8 + 128` \
d951 1
a951 1
		mknod ${name}${unit}lc  c $chr `expr $unit '*' 8 + 130` \
d970 2
a971 2
		mknod wcd${unit}a  c $chr `expr $unit '*' 8 + 0` root:operator
		mknod wcd${unit}c  c $chr `expr $unit '*' 8 + 2` root:operator
d989 1
a989 1
		mknod rwst${unit} c $chr `expr $unit '*' 8 + 0` root:operator
d1051 1
a1051 1
	minor=`unit2minor \`expr $unit + 64\``
d1110 1
a1110 1
	mknod lpctl$unit c 16 `unit2minor \`expr $unit + 128\``
d1157 3
a1159 3
	mknod cuaa$unit c 28 `expr $m + 128` uucp:dialer
	mknod cuaia$unit c 28 `expr $m + 32 + 128` uucp:dialer
	mknod cuala$unit c 28 `expr $m + 64 + 128` uucp:dialer
d1167 2
a1168 2
	mknod ttyid$unit c 28 `expr $m + 32`
	mknod ttyld$unit c 28 `expr $m + 64`
d1180 1
a1180 1
		minor=`expr $card \* 65536 + $minor`
d1182 3
a1184 3
		mknod cuac$name c $major `expr $minor + 128` uucp:dialer
		mknod cuaic$name c $major `expr $minor + 32 + 128` uucp:dialer
		mknod cualc$name c $major `expr $minor + 64 + 128` uucp:dialer
d1197 1
a1197 1
		minor=`expr $card \* 65536 + $minor`
d1200 2
a1201 2
		mknod ttyic$name c $major `expr $minor + 32`
		mknod ttylc$name c $major `expr $minor + 64`
d1211 1
a1211 1
	mknod cuam$unit c 63 `expr $m + 128` uucp:dialer
d1232 2
a1233 2
		mknod ttyiA$name c $major `expr $minor + 65536`
		mknod ttylA$name c $major `expr $minor + 131072`
d1248 2
a1249 2
		mknod cuaA$name c $major `expr $minor + 128` uucp:dialer
		mknod cuaiA$name c $major `expr $minor + 128 + 65536` \
d1251 1
a1251 1
		mknod cualA$name c $major `expr $minor + 128 + 131072` \
d1281 1
a1281 1
		minor=`expr $card \* 65536 + $minor`
d1284 2
a1285 2
		mknod ttyiD$name c $major `expr $minor + 32`
		mknod ttylD$name c $major `expr $minor + 64`
d1293 1
a1293 1
	mknod digi$card.ctl c $major $(($card \* 65536 + 8388608)) uucp:dialer
d1297 1
a1297 1
		base=`expr $card \* 65536 + $unit`
d1316 1
a1316 1
		minor=`expr $card \* 65536 + $minor`
d1318 3
a1320 3
		mknod cuaD$name c $major `expr $minor + 128` uucp:dialer
		mknod cuaiD$name c $major `expr $minor + 32 + 128` uucp:dialer
		mknod cualD$name c $major `expr $minor + 64 + 128` uucp:dialer
d1327 1
a1327 1
	mknod digi$card.ctl c $major $(($card \* 65536 + 8388608)) uucp:dialer
d1331 1
a1331 1
		base=`expr $card \* 65536 + $unit`
d1352 1
a1352 1
		moduleminor=`expr $moduleminor % 10 \* 16`
d1358 1
a1358 1
			minor=`expr $card \* 65536 + $minor + $moduleminor`
d1362 2
a1363 2
			mknod ttyiM$name c $major `expr $minor + 64`
			mknod ttylM$name c $major `expr $minor + 128`
d1377 1
a1377 1
		moduleminor=`expr $moduleminor % 10 \* 16`
d1383 1
a1383 1
			minor=`expr $card \* 65536 + $minor + $moduleminor`
d1386 1
a1386 1
			mknod cuaM$name c $major `expr $minor + 262144` \
d1388 1
a1388 1
			mknod cuaiM$name c $major `expr $minor + 64 + 262144` \
d1390 1
a1390 1
			mknod cualM$name c $major `expr $minor + 128 + 262144` \
d1483 1
a1483 1
	mknod mse$unit c $chr `unit2minor \`expr $unit '*' 2 + 1\``
d1490 1
a1490 1
	mknod psm$unit c $chr `unit2minor \`expr $unit '*' 2 + 1\``
d1537 6
a1542 6
	mknod mixer$unit	c $chr `unit2minor \`expr $unit '*' 16 + 0\``
	mknod sequencer$unit	c $chr `unit2minor \`expr $unit '*' 16 + 1\``
	mknod midi$unit		c $chr `unit2minor \`expr $unit '*' 16 + 2\``
	mknod dsp$unit		c $chr `unit2minor \`expr $unit '*' 16 + 3\``
	mknod audio$unit	c $chr `unit2minor \`expr $unit '*' 16 + 4\``
	mknod dspW$unit		c $chr `unit2minor \`expr $unit '*' 16 + 5\``
d1545 2
a1546 2
	mknod music$unit	c $chr `unit2minor \`expr $unit '*' 16 + 8\``
	mknod pss$unit		c $chr `unit2minor \`expr $unit '*' 16 + 9\``
d1597 2
a1598 2
	ttyy?)  unit=`expr $unit \+ 16`;;
	ttyz?)  unit=`expr $unit \+ 32`;;
d1633 2
a1634 2
	mknod tuner$unit c 92 `unit2minor $((16 + $unit ))`
	mknod vbi$unit c 92 `unit2minor $((32 + $unit ))`
d1700 1
a1700 1
				mknod $name$unit c 66 `expr $offset + $unit `
d1705 1
a1705 1
				mknod $name$i c 66 `expr $offset + $i `
d1749 1
a1749 1
	mknod i4bteld$unit c 56 `unit2minor \`expr $offset + $unit\``
@


1.309
log
@Introduce new shell functions hexdigit, hexprint and zeropad.

Use these new functions instead of printf(1), which is scheduled for
removal as a shell builtin command, and which will not be available as a
standalone utility if MAKEDEV is run prior to mounting /usr.

Requested by:	knu
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.308 2001/11/18 00:20:08 iedowse Exp $
@


1.308
log
@Add support for making the Coda /dev/cfsN devices.

PR:		conf/22695
Submitted by:	Kenneth Ingham <ingham@@i-pi.com>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.307 2001/11/13 18:07:14 matusita Exp $
d199 33
d275 12
d1121 1
a1121 1
		mknod ttyv$(printf %01x $i) c $chr `unit2minor $i`
d1230 1
a1230 1
		name=$(printf %02d $port)
d1247 1
a1247 1
		name=$(printf %02d $port)
@


1.307
log
@sysinstall complains about creating acd0t* devices while all dists are
extracted and recreating device files.

Without this, you'll see following messages when 'MAKEDEV all':
	[:  : out of range
	[:  : out of range
	acd0t is invalid -- can't have more than 32 devices or 169 tracks

Reported by: David Syphers <dsyphers@@uchicago.edu> (at current@@FreeBSD.org)
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.306 2001/08/23 22:19:53 dd Exp $
d154 1
d1758 5
@


1.306
log
@$units is the canonical name for the number of units to create; use it.

PR:		29971
Submitted by:	Joseph Mallett <jmallett@@xMach.org>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.305 2001/08/21 00:03:28 mjacob Exp $
d264 1
a264 1
	sh $0 acd0 acd0t afd0 ast0			# ATAPI devices
@


1.305
log
@move forward the ability to MAKEDEV zs devices for TurboLaser
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.304 2001/07/25 22:36:14 scottl Exp $
d1095 1
a1095 1
	nbpf=`expr $i : 'bpf\(.*\)$'`
d1097 1
a1097 1
	while [ $unit -le $nbpf ]; do
d1180 1
a1180 1
	nports=`expr $i : 'ttyA\(.*\)$'`
d1182 1
a1182 1
	while [ $port -le $nports ]; do
d1197 1
a1197 1
	nports=`expr $i : 'cuaA\(.*\)$'`
d1199 1
a1199 1
	while [ $port -le $nports ]; do
d1593 1
a1593 1
	ntun=`expr $i : 'tun\(.*\)$'`
d1595 1
a1595 1
	while [ $unit -le $ntun ]; do
d1602 1
a1602 1
	ntap=`expr $i : 'tap\(.*\)$'`
d1604 1
a1604 1
	while [ $unit -le $ntap ]; do
@


1.304
log
@Add /dev/hpn? as an alias to /dev/aac? so that the HP version of the CLI
utility will work, and document it in the manpage.

MFC after:	3 days
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.303 2001/06/28 07:07:12 dd Exp $
d1210 7
@


1.303
log
@Don't insist on creating rocketport devices in /dev.

PR:		21394
Submitted by:	Craig Leres <leres@@ee.lbl.gov>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.302 2001/05/29 09:30:42 phk Exp $
d1713 1
@


1.302
log
@Stop creating vn(4) devices.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.301 2001/05/29 09:29:29 phk Exp $
d1357 1
a1357 1
	rm -f /dev/ttyR* /dev/ttyiR* /dev/ttylR*
d1371 3
a1373 3
		   mknod /dev/ttyR$Rnum c $major $MINOR
		   mknod /dev/ttyiR$Rnum c $major $(($MINOR + 32))
		   mknod /dev/ttylR$Rnum c $major $(($MINOR + 64))
d1397 1
a1397 1
	rm -f /dev/cuaR* /dev/cuaiR* /dev/cualR*
d1411 2
a1412 2
		   mknod /dev/cuaR$Rnum c  $major $(($MINOR + 128)) uucp:dialer
		   mknod /dev/cuaiR$Rnum c $major $(($MINOR + 128 + 32)) \
d1414 1
a1414 1
		   mknod /dev/cualR$Rnum c $major $(($MINOR + 128 + 64)) \
@


1.301
log
@Remove altmodishe "[bc]dev, " comments.

PR:		18836
Submitted by:	ben
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.300 2001/05/02 01:08:00 brian Exp $
a53 1
#	vn*	vnode disks
a266 1
	sh $0 vn0					# virtual disk
a304 1
	sh $0 vn0					# virtual disk
d398 1
a398 1
aacd*s*|ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
a411 1
	vn*s*) name=vn; chr=43;;
d588 1
a588 1
aacd*|ad*|ar*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|twed*|vn*|wd*|wfd*)
a601 1
	vn*) name=vn; chr=43;;
a621 6
		if [ "x$name" = "xvn" ] ; then
			# We need to control device so we can configure
			# the vn disks with vnconfig
			mknod  $name$unit.ctl c \
			    $chr `expr $unit '*' 8 + 33554432` root:operator
		fi
@


1.300
log
@Add a ``digi'' driver.

This driver supports PCI Xr-based and ISA Xem Digiboard cards.
dgm will go away soon if there are no problems reported.  For now,
configuring dgm into your kernel warns that you should be using
digi.  This driver is probably close to supporting Xi, Xe and Xeve
cards, but I wouldn't expect them to work properly (hardware
donations welcome).

The digi_* pseudo-drivers are not drivers themselves but contain
the BIOS and FEP/OS binaries for various digiboard cards and are
auto-loaded and auto-unloaded by the digi driver at initialisation
time.  They *may* be configured into the kernel, but waste a lot
of space if they are.  They're intended to be left as modules.

The digictl program is (mainly) used to re-initialise cards that
have external port modules attached such as the PC/Xem.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.299 2001/03/27 17:07:37 obrien Exp $
d260 2
a261 2
	sh $0 fd0 fd1					# bdev, floppy disk
	sh $0 da0 da1 da2 da3 				# bdev, SCSI disk
d263 32
a294 32
	sh $0 ad0 ad1 ad2 ad3 				# bdev, ATA disk
	sh $0 ar0 ar1					# bdev, ATA RAID disk
	sh $0 acd0 acd0t afd0 ast0			# bdev, ATAPI devices
	sh $0 wd0 wd1 wd2 wd3				# bdev, OLD disk
	sh $0 wcd0 wfd0 wst0				# bdev, OLD ATAPI devs
	sh $0 vn0					# bdev, virtual disk
	sh $0 cd0 matcd0 mcd0 scd0			# bdev, cdrom
	sh $0 sa0 wt0					# bdev, tape
	sh $0 vty12					# cdev, virtual tty
	sh $0 cuaa0 cuaa1 cuaa2 cuaa3			# cdev, serial tty
	sh $0 pty0					# cdev, pseudo tty
	sh $0 ttyd0 ttyd1 ttyd2 ttyd3			# cdev, serial tty
	sh $0 kbd0 kbd1					# cdev, keyboard
	sh $0 mse0 psm0 jogdial sysmouse		# cdev, mouse
	sh $0 pcaudio speaker				# cdev, noise
	sh $0 lpt0 lpt1 lpt2				# cdev, printer
	sh $0 ppi0 ppi1 ppi2				# cdev, parallel port
	sh $0 iic0 iic1					# cdev, I2C device
	sh $0 smb0 smb1					# cdev, SMBus device
	sh $0 usb usb0 uhid0 ums0 ulpt0 ugen0		# cdev, USB devices
	sh $0 urio0 uscanner0 umodem0			# cdev, USB devices too
	sh $0 bpf0 bpf1 bpf2 bpf3 			# cdev, network
	sh $0 ipl tun0 tun1 tun2 tun3			# cdev, network
	sh $0 tap0 tap1 tap2 tap3			# cdev, network
	sh $0 ch0 perfmon tw0				# cdev, miscellaneous
	sh $0 acpi					# cdev, ACPI
	sh $0 apm apmctl card0 card1 card2 card3	# cdev, laptop
	sh $0 pass4 xpt2				# cdev, CAM
	sh $0 i4b i4bctl i4btrc0 i4btrc1		# cdev, ISDN
	sh $0 i4btel0 i4btel1 i4bteld0 i4bteld1		# cdev, ISDN
	sh $0 i4brbch0 i4brbch1				# cdev, ISDN
	sh $0 agpgart					# cdev, AGP
d301 29
a329 29
	sh $0 fd0					# bdev, floppy disk
	sh $0 da0 					# bdev, SCSI disk
	sh $0 ad0		 			# bdev, ATA disk
	sh $0 acd0 afd0 ast0				# bdev, ATAPI devices
	sh $0 wd0					# bdev, OLD disk
	sh $0 wcd0 wfd0 wst0				# bdev, OLD ATAPI devs
	sh $0 vn0					# bdev, virtual disk
	sh $0 cd0					# bdev, cdrom
	sh $0 sa0					# bdev, tape
	sh $0 vty2					# cdev, virtual tty
	sh $0 cuaa0					# cdev, serial tty
	sh $0 pty0					# cdev, pseudo tty
	sh $0 ttyd0					# cdev, serial tty
	sh $0 kbd0					# cdev, keyboard
	sh $0 mse0 psm0 jogdial sysmouse		# cdev, mouse
	sh $0 lpt0					# cdev, printer
	sh $0 ppi0					# cdev, parallel port
	sh $0 iic0					# cdev, I2C device
	sh $0 smb0					# cdev, SMBus device
	sh $0 ums0					# cdev, USB devices
	sh $0 tun0					# cdev, network
	sh $0 tap0					# cdev, network
	sh $0 ch0					# cdev, miscellaneous
	sh $0 acpi					# cdev, ACPI
	sh $0 apm apmctl card0				# cdev, laptop
	sh $0 pass1 xpt1				# cdev, CAM
	sh $0 i4b i4bctl i4btrc0 i4btrc1		# cdev, ISDN
	sh $0 i4btel0 i4bteld0		 		# cdev, ISDN
	sh $0 i4brbch0					# cdev, ISDN
@


1.299
log
@Formatting fix for rev 1.298 where I did not take enough care.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.298 2001/03/27 01:23:07 obrien Exp $
d75 6
a80 2
#	ttyD*	Digiboard - 16 dialin ports
#	cuaD*	Digiboard - 16 dialout ports
d1245 19
d1280 17
d1300 2
@


1.298
log
@Don't call the fictious `MAKEDEV' from the path "/sbin:/bin" when we
recurse.  Rather recurse on ourself (as we know our own name).
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.297 2001/03/25 15:51:43 scottl Exp $
d256 2
a257 2
	sh $0 fd0 fd1				# bdev, floppy disk
	sh $0 da0 da1 da2 da3 			# bdev, SCSI disk
d259 2
a260 2
	sh $0 ad0 ad1 ad2 ad3 			# bdev, ATA disk
	sh $0 ar0 ar1				# bdev, ATA RAID disk
d262 2
a263 2
	sh $0 wd0 wd1 wd2 wd3			# bdev, OLD disk
	sh $0 wcd0 wfd0 wst0			# bdev, OLD ATAPI devs
d266 3
a268 3
	sh $0 sa0 wt0				# bdev, tape
	sh $0 vty12				# cdev, virtual tty
	sh $0 cuaa0 cuaa1 cuaa2 cuaa3		# cdev, serial tty
d270 2
a271 2
	sh $0 ttyd0 ttyd1 ttyd2 ttyd3		# cdev, serial tty
	sh $0 kbd0 kbd1				# cdev, keyboard
d273 7
a279 7
	sh $0 pcaudio speaker			# cdev, noise
	sh $0 lpt0 lpt1 lpt2			# cdev, printer
	sh $0 ppi0 ppi1 ppi2			# cdev, parallel port
	sh $0 iic0 iic1				# cdev, I2C device
	sh $0 smb0 smb1				# cdev, SMBus device
	sh $0 usb usb0 uhid0 ums0 ulpt0 ugen0	# cdev, USB devices
	sh $0 urio0 uscanner0 umodem0		# cdev, USB devices too
d281 1
a281 1
	sh $0 ipl tun0 tun1 tun2 tun3		# cdev, network
d283 1
a283 1
	sh $0 ch0 perfmon tw0			# cdev, miscellaneous
d288 3
a290 3
	sh $0 i4btel0 i4btel1 i4bteld0 i4bteld1	# cdev, ISDN
	sh $0 i4brbch0 i4brbch1			# cdev, ISDN
	sh $0 agpgart				# cdev, AGP
d300 1
a300 1
	sh $0 acd0 afd0 ast0			# bdev, ATAPI devices
d302 1
a302 1
	sh $0 wcd0 wfd0 wst0			# bdev, OLD ATAPI devs
d307 1
a307 1
	sh $0 cuaa0				# cdev, serial tty
d309 1
a309 1
	sh $0 ttyd0				# cdev, serial tty
d321 1
a321 1
	sh $0 apm apmctl card0			# cdev, laptop
d324 2
a325 2
	sh $0 i4btel0 i4bteld0		 	# cdev, ISDN
	sh $0 i4brbch0				# cdev, ISDN
@


1.297
log
@Bah.  'ln -sf' -> 'ln -fs'.  I need to read my email more closely in the
mornings.

Pointy hat again Obtained from:	roam@@orbitel.org
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.296 2001/03/25 14:11:55 scottl Exp $
d255 36
a290 36
	sh MAKEDEV std					# standard
	sh MAKEDEV fd0 fd1				# bdev, floppy disk
	sh MAKEDEV da0 da1 da2 da3 			# bdev, SCSI disk
	sh MAKEDEV ata					# ATA control
	sh MAKEDEV ad0 ad1 ad2 ad3 			# bdev, ATA disk
	sh MAKEDEV ar0 ar1 				# bdev, ATA RAID disk
	sh MAKEDEV acd0 acd0t afd0 ast0			# bdev, ATAPI devices
	sh MAKEDEV wd0 wd1 wd2 wd3			# bdev, OLD disk
	sh MAKEDEV wcd0 wfd0 wst0			# bdev, OLD ATAPI devs
	sh MAKEDEV vn0					# bdev, virtual disk
	sh MAKEDEV cd0 matcd0 mcd0 scd0			# bdev, cdrom
	sh MAKEDEV sa0 wt0				# bdev, tape
	sh MAKEDEV vty12				# cdev, virtual tty
	sh MAKEDEV cuaa0 cuaa1 cuaa2 cuaa3		# cdev, serial tty
	sh MAKEDEV pty0					# cdev, pseudo tty
	sh MAKEDEV ttyd0 ttyd1 ttyd2 ttyd3		# cdev, serial tty
	sh MAKEDEV kbd0 kbd1				# cdev, keyboard
	sh MAKEDEV mse0 psm0 jogdial sysmouse		# cdev, mouse
	sh MAKEDEV pcaudio speaker			# cdev, noise
	sh MAKEDEV lpt0 lpt1 lpt2			# cdev, printer
	sh MAKEDEV ppi0 ppi1 ppi2			# cdev, parallel port
	sh MAKEDEV iic0 iic1				# cdev, I2C device
	sh MAKEDEV smb0 smb1				# cdev, SMBus device
	sh MAKEDEV usb usb0 uhid0 ums0 ulpt0 ugen0	# cdev, USB devices
	sh MAKEDEV urio0 uscanner0 umodem0		# cdev, USB devices too
	sh MAKEDEV bpf0 bpf1 bpf2 bpf3 			# cdev, network
	sh MAKEDEV ipl tun0 tun1 tun2 tun3		# cdev, network
	sh MAKEDEV tap0 tap1 tap2 tap3			# cdev, network
	sh MAKEDEV ch0 perfmon tw0			# cdev, miscellaneous
	sh MAKEDEV acpi					# cdev, ACPI
	sh MAKEDEV apm apmctl card0 card1 card2 card3	# cdev, laptop
	sh MAKEDEV pass4 xpt2				# cdev, CAM
	sh MAKEDEV i4b i4bctl i4btrc0 i4btrc1		# cdev, ISDN
	sh MAKEDEV i4btel0 i4btel1 i4bteld0 i4bteld1	# cdev, ISDN
	sh MAKEDEV i4brbch0 i4brbch1			# cdev, ISDN
	sh MAKEDEV agpgart				# cdev, AGP
d296 30
a325 30
	sh MAKEDEV std					# standard
	sh MAKEDEV fd0					# bdev, floppy disk
	sh MAKEDEV da0 					# bdev, SCSI disk
	sh MAKEDEV ad0		 			# bdev, ATA disk
	sh MAKEDEV acd0 afd0 ast0			# bdev, ATAPI devices
	sh MAKEDEV wd0					# bdev, OLD disk
	sh MAKEDEV wcd0 wfd0 wst0			# bdev, OLD ATAPI devs
	sh MAKEDEV vn0					# bdev, virtual disk
	sh MAKEDEV cd0					# bdev, cdrom
	sh MAKEDEV sa0					# bdev, tape
	sh MAKEDEV vty2					# cdev, virtual tty
	sh MAKEDEV cuaa0				# cdev, serial tty
	sh MAKEDEV pty0					# cdev, pseudo tty
	sh MAKEDEV ttyd0				# cdev, serial tty
	sh MAKEDEV kbd0					# cdev, keyboard
	sh MAKEDEV mse0 psm0 jogdial sysmouse		# cdev, mouse
	sh MAKEDEV lpt0					# cdev, printer
	sh MAKEDEV ppi0					# cdev, parallel port
	sh MAKEDEV iic0					# cdev, I2C device
	sh MAKEDEV smb0					# cdev, SMBus device
	sh MAKEDEV ums0					# cdev, USB devices
	sh MAKEDEV tun0					# cdev, network
	sh MAKEDEV tap0					# cdev, network
	sh MAKEDEV ch0					# cdev, miscellaneous
	sh MAKEDEV acpi					# cdev, ACPI
	sh MAKEDEV apm apmctl card0			# cdev, laptop
	sh MAKEDEV pass1 xpt1				# cdev, CAM
	sh MAKEDEV i4b i4bctl i4btrc0 i4btrc1		# cdev, ISDN
	sh MAKEDEV i4btel0 i4bteld0		 	# cdev, ISDN
	sh MAKEDEV i4brbch0				# cdev, ISDN
d357 1
a357 1
	sh MAKEDEV std pty0
d621 1
a621 1
			sh MAKEDEV $name$unit$slicepartname
d1722 1
a1722 1
	sh MAKEDEV.local
@


1.296
log
@'ln -s' -> 'ln -sf' for the afa link.

Pointy hat Obtained from:	roam@@orbitel.bg
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.295 2001/03/22 21:29:16 scottl Exp $
d1681 1
a1681 1
	ln -sf aac$unit afa$unit
@


1.295
log
@Create afaN as a simlink to aacN.  Add a comment about the aac device.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.294 2001/03/22 10:39:03 jkh Exp $
d1681 1
a1681 1
	ln -s aac$unit afa$unit
@


1.294
log
@Add back the wd* entries.  It turns out they're still used by the PC98.

Noted by:	nyan
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.293 2001/03/22 07:30:02 jkh Exp $
d38 1
d1681 1
@


1.293
log
@Don't create legacy wd* devices by default.  Let the user do this if
they so desire it.

Suggested by:	rwatson
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.292 2001/03/15 15:32:42 sos Exp $
d261 2
@


1.292
log
@Add the ata control device
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.291 2001/03/06 01:02:23 obrien Exp $
a260 2
	sh MAKEDEV wd0 wd1 wd2 wd3			# bdev, OLD disk
	sh MAKEDEV wcd0 wfd0 wst0			# bdev, OLD ATAPI devs
@


1.291
log
@Comment style fixes
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.290 2001/02/27 18:36:56 julian Exp $
d257 1
d579 7
@


1.290
log
@Add an entry for the nmdm devices
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.289 2001/02/25 22:52:55 msmith Exp $
d40 1
a40 1
#	amrd*   AMI MegaRAID
d50 1
a50 1
#	mlxd*   Mylex DAC960 RAID disk volumes
d63 1
a63 1
#	jogdial Sony VAIO jog dial
d98 1
a98 1
#  umodem* modems
d101 1
a101 1
#	uscanner*	USB scanners
d118 2
a119 2
#	i4btrc* trace data interface(s), one per passive card
#	i4btel* telephony interface(s)
d131 2
a132 2
#	pcaudio PCM audio driver
#	socksys iBCS2 socket system driver
@


1.289
log
@Add the 'mly' device nodes.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.288 2001/02/03 23:31:31 brian Exp $
d1077 13
@


1.288
log
@Don't specify root:wheel for tun*, it's the default.

Pointed out by:	bde
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.287 2001/02/03 00:32:17 brian Exp $
d51 1
d1664 5
@


1.287
log
@Change the permissions on /dev/tun* to 0600 root:wheel
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.286 2001/01/26 01:13:29 cokane Exp $
d1535 1
a1535 1
		mknod tun$unit c 52 `unit2minor $unit` root:wheel
@


1.286
log
@D'oh! Forgot to link to /dev/voodoo.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.285 2001/01/07 18:43:31 n_hibma Exp $
d1535 1
a1535 1
		mknod tun$unit c 52 `unit2minor $unit` uucp:dialer
@


1.285
log
@Give the USB devices sensible default permissions.

Suggested by:  Kaltashkin Eugene <zhecka@@klondike.ru>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.284 2000/12/28 20:59:19 phk Exp $
d147 1
a147 1
#	3dfx*	3dfx voodoo device for glide (tdfx), links 3dfx to 3dfx#
d1674 1
@


1.284
log
@Add the "mdctl" device under the "std" stanza.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.283 2000/12/16 18:46:45 phk Exp $
d978 1
d981 1
a981 1
	chmod 0660 usb$unit
d985 1
d987 2
a988 1
	mknod uhid$unit c 122 `unit2minor $unit`
d992 1
d994 2
a995 1
	mknod ums$unit c 111 `unit2minor $unit`
d1007 1
d1014 2
a1015 1
		mknod ugen$unit c 114 `unit2minor $(($unit * 16))`
d1019 1
a1019 1
				`unit2minor $(($unit * 16 + $i))`
d1024 1
a1024 1
		mknod ugen$unit.$endpoint c 114 $minor
d1026 1
d1030 1
d1032 2
a1033 1
	mknod urio$unit c 143 `unit2minor $unit`
d1037 1
d1040 2
a1041 1
	mknod usio$unit c 138 $minor
d1045 1
d1047 2
a1048 1
	mknod uscanner$unit c 156 `unit2minor $unit`
d1052 5
a1056 3
   unit=`expr $i : 'umodem\(.*\)'`
   mknod umodem$unit c 124 `unit2minor $unit`
   ;;
@


1.283
log
@Create the vn%d.ctl devices.

In a few days I will commit a patch which changes vn(4) to use the
disk-minilayer.  This will make vn(4) fully DEVFS friendly but have
the side effect that vnconfig needs the vn%d.ctl devices to be able
to configure vn(4).

Please remake your /dev/vn entries with this revision of MAKEDEV if
you don't rung DEVFS already.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.282 2000/12/11 19:10:40 nsayer Exp $
d338 1
@


1.282
log
@Add MAKEDEV support for jogdial device, the first cut of which will be
committed shortly.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.281 2000/11/28 21:53:42 msmith Exp $
d612 6
@


1.281
log
@Add the 'amr' control device.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.280 2000/11/05 17:59:18 truckman Exp $
d62 1
d269 1
a269 1
	sh MAKEDEV mse0 psm0 sysmouse			# cdev, mouse
d308 1
a308 1
	sh MAKEDEV mse0 psm0 sysmouse			# cdev, mouse
d1529 4
@


1.280
log
@Back out change to prepend /sbin:/bin to $PATH, just overwrite $PATH
with these in the normal case.

Set MAKEDEVPATH in sysinstall to include the /mnt2 stuff before starting
the fixit shell.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.279 2000/11/05 15:34:44 truckman Exp $
d1635 5
@


1.279
log
@Change MAKEDEV so that it prepends /sbin:/bin to $PATH instead of totally
overwriting $PATH, and find mknod $PATH instead of hardcoding /sbin so
that the copy of MAKEDEV on the fixit floppy is usable, since mknod and
expr live in /mnt2/stand when the fixit floppy is running.

Get rid of the sed invokation in release/Makefile that attempts to
delete the PATH setting stuff from MAKEDEV on the fixit floppy.  This
hasn't worked since a long ago change to MAKEDEV caused the sed
expression to no longer match.

PR:		misc/21241
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.278 2000/10/31 00:21:41 msmith Exp $
d153 1
a153 1
	PATH=/sbin:/bin:$PATH
@


1.278
log
@Move 'tw*' after 'twe*' so that it's possible to create the control device
for the 'twe' driver.  This is an expedient solution for an
actually-manifesting symptom of a major problem with MAKEDEV.  Roll on
DEVFS.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.277 2000/10/29 14:06:12 n_hibma Exp $
d153 1
a153 1
	PATH=/sbin:/bin
d193 7
d203 2
a204 2
	4) /sbin/mknod "$@@" root:wheel || die 2 "/sbin/mknod $@@ failed";;
	5) /sbin/mknod "$@@"            || die 2 "/sbin/mknod $@@ failed";;
@


1.277
log
@Entry for umodem0 devices, 124.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.276 2000/10/25 10:34:33 n_hibma Exp $
a1032 5
tw*)
	unit=`expr $i : 'tw\(.*\)'`
	mknod tw$unit c 19 `unit2minor $unit` root:operator
	;;

d1643 5
@


1.276
log
@The USB scanner driver. To be used together with SANE.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.275 2000/10/24 15:40:20 sos Exp $
d93 1
d95 2
a97 2
#	ulpt*	printer
#	ugen*	generic USB device
d99 1
a100 1
#	uscanner*	USB scanners
d268 1
a268 1
	sh MAKEDEV urio0 uscanner0			# cdev, USB devices too
d1021 5
@


1.275
log
@Oops better ad the ar device to the all target, people might want to
install on these...
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.274 2000/10/24 14:31:24 sos Exp $
d99 1
d267 1
a267 1
	sh MAKEDEV urio0				# cdev, USB devices too
d1014 5
@


1.274
log
@Add the ATA RAID (ar) device
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.273 2000/09/14 17:48:47 markm Exp $
d247 1
@


1.273
log
@Make the [u]random device's permissions match those in the matching
make_dev() call.

At the moment, it is an error for anyone but root to write to this
device (EPERM), and the permissions don't suggest that. Soon, however,
anyone will be able to write here, but only root will cause an implicit
reseed.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.272 2000/09/13 05:03:02 msmith Exp $
d382 1
a382 1
aacd*s*|ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
d387 1
d566 1
a566 1
aacd*|ad*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|twed*|vn*|wd*|wfd*)
d571 1
@


1.272
log
@Teach MAKEDEV about 'aac'.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.271 2000/08/29 20:20:54 iwasaki Exp $
d320 1
a320 1
	mknod random	c 2 3;			chmod 644 random
@


1.271
log
@Add /dev/acpi for ACPI.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.270 2000/08/28 23:14:44 jhb Exp $
d38 1
d382 1
a382 1
ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
d385 1
d400 1
a400 1
	amrd*s*|idad*s*|mlxd*s*|twed*s*)
d565 1
a565 1
ad*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|twed*|vn*|wd*|wfd*)
d568 1
d583 1
a583 1
	amrd*|idad*|mlxd*|twed*)
d1608 5
@


1.270
log
@- Break the acd track devices out into a seperate target acdXt[Y].  The
  X field is treated the same as the unit number for acdX.  The optional
  Y parameter specifies the number of track devices to create starting at
  track 1.  If Y is not specified, it defaults to 100.
- Add the acd0t target to the all target to preserve previous behavior.
- Don't add the acd0t target to the fixit target, thus keeping the fixit
  floppy from running out of i-nodes.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.269 2000/08/18 07:01:19 brian Exp $
d119 1
d269 1
d305 1
d1414 5
@


1.269
log
@Fix the urio and ugen devices (I meant unit2minor, not minor2unit)

Problem pointed out by: markm
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.268 2000/08/16 16:42:50 brian Exp $
d245 1
a245 1
	sh MAKEDEV acd0 afd0 ast0			# bdev, ATAPI devices
d799 32
d846 1
a846 1
			rm -rf ${dname}* r${dname}*
a850 10
			if [ $name = "acd" ]; then
				rm -rf ${dname}t*
				j=0
				while [ $j -le 99 ]; do
					mknod ${dname}t$j c $chr \
						$((($i * 8) + (65536 * $j))) \
						root:operator
					j=$(($j + 1))
				done
			fi
@


1.268
log
@Add unit2minor() and use it where appropriate so that we handle
units > 255 properly.

Fix usio while I'm there
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.267 2000/08/11 09:22:34 sos Exp $
d968 1
a968 1
		minor=`minor2unit $(($unit * 16 + $endpoint))`
d975 1
a975 1
	mknod urio$unit c 143 `minor2unit $unit`
@


1.267
log
@Add the acdNt# devices to the acd entry, for individual track access.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.266 2000/07/30 16:18:48 green Exp $
d218 6
d632 1
a632 1
	mknod ${name}${unit} c $chr $unit
d644 1
a644 1
	mknod ${name}${unit} c $chr $unit
d655 1
a655 1
	mknod ${name}${unit} c $chr $unit
d672 1
a672 1
		mknod $dname c $chr $i root:operator
d690 1
a690 1
		mknod $dname c $chr $i root:operator
d901 1
a901 1
	mknod iic$unit c 105 $unit
d906 1
a906 1
	mknod smb$unit c 106 $unit
d911 1
a911 1
	mknod pcfclock$unit c 140 $unit
d916 1
a916 1
	mknod ppi$unit c 82 $unit
d921 1
a921 1
	mknod pps$unit c 89 $unit
d931 1
a931 1
	mknod usb$unit c 108 $unit root:operator
d937 1
a937 1
	mknod uhid$unit c 122 $unit
d942 1
a942 1
	mknod ums$unit c 111 $unit
d947 1
a947 1
	minor=$unit
d949 1
a949 1
	minor=`expr $unit + 64`
d960 1
a960 1
		mknod ugen$unit c 114 $(($unit * 16))
d963 2
a964 1
			mknod ugen$unit.$i c 114 $(($unit * 16 + $i))
d968 1
a968 1
		minor=$(($unit * 16 + $endpoint))
d975 1
a975 1
	mknod urio$unit c 143 $unit
d980 1
a980 1
	minor=$(($minor + 128))
d986 2
a987 2
	mknod lpt$unit c 16 $unit
	mknod lpctl$unit c 16 `expr $unit + 128`
d992 1
a992 1
	mknod tw$unit c 19 $unit root:operator
d1003 1
a1003 1
		mknod ttyv$(printf %01x $i) c $chr $i
d1013 1
a1013 1
		mknod bpf$unit c 23 $unit
d1306 2
a1307 1
	mknod mse$unit c $chr `expr $unit '*' 2 + 1`	# non-blocking for X11
d1313 2
a1314 1
	mknod psm$unit c $chr `expr $unit '*' 2 + 1`	# non-blocking for X11
d1361 6
a1366 6
	mknod mixer$unit	c $chr `expr $unit '*' 16 + 0`
	mknod sequencer$unit	c $chr `expr $unit '*' 16 + 1`
	mknod midi$unit		c $chr `expr $unit '*' 16 + 2`
	mknod dsp$unit		c $chr `expr $unit '*' 16 + 3`
	mknod audio$unit	c $chr `expr $unit '*' 16 + 4`
	mknod dspW$unit		c $chr `expr $unit '*' 16 + 5`
d1369 2
a1370 2
	mknod music$unit	c $chr `expr $unit '*' 16 + 8`
	mknod pss$unit		c $chr `expr $unit '*' 16 + 9`
d1384 4
a1387 4
	mknod gsc${unit} c 47 $unit
	mknod gsc${unit}p c 47 $(($unit + 8))
	mknod gsc${unit}d c 47 $(($unit + 32))
	mknod gsc${unit}pd c 47 $(($unit + 40))
d1404 1
a1404 1
	mknod card$unit c $chr $unit
d1439 1
a1439 1
	mknod ctx$unit c 40 $unit
d1445 1
a1445 1
	mknod meteor$unit c 67 $unit
d1451 3
a1453 3
	mknod bktr$unit c 92 $unit
	mknod tuner$unit c 92 $((16 + $unit ))
	mknod vbi$unit c 92 $((32 + $unit ))
d1461 1
a1461 1
		mknod tun$unit c 52 $unit uucp:dialer
d1470 1
a1470 1
		mknod tap$unit c 149 $unit root:network
d1482 1
a1482 1
	mknod snp$unit c 53 $unit
d1545 1
a1545 1
	mknod kbd$unit c $chr $unit
d1558 1
a1558 1
	mknod i4brbch$unit c 57 $unit
d1564 1
a1564 1
	mknod i4bteld$unit c 56 `expr $offset + $unit `
d1569 1
a1569 1
	mknod i4btel$unit c 56 $unit
d1574 1
a1574 1
	mknod i4btrc$unit c 59 $unit
d1579 1
a1579 1
	mknod mlx$unit c 130 $unit
d1584 1
a1584 1
	mknod 3dfx$unit c 107 $unit
d1594 1
a1594 1
	mknod twe$unit c 146 $unit
@


1.266
log
@Keep urandom as a link to random (but a hard link).
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.265 2000/07/30 03:15:11 green Exp $
d813 10
@


1.265
log
@Since the driver supports both (and may have different semantics for
both soon...), create urandom instead of the link to random.  It's
also what makes sense according to the make_dev(9)'s in random(4).
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.264 2000/07/20 17:01:09 nsayer Exp $
d311 1
a311 1
	mknod urandom	c 2 4;			chmod 644 urandom
@


1.264
log
@Add the tap driver.

The tap driver is used to present a virtual Ethernet interface to the
system. Packets presented by the network stack to the interface are
made available to a character device in /dev. With tap and the bridge
code, you can make remote bridge configurations where both sides of
the bridge are separated by userland daemons.

This driver also has a special naming hack to allow it to serve a similar
purpose to the vmware port.

Submitted by:	myevmenkin@@att.com, vsilyaev@@mindspring.com
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.263 2000/07/19 09:21:14 ru Exp $
d311 1
a311 1
	ln -sf random urandom
@


1.263
log
@Add /dev/agpgart for AGP.

Reviewed by:	dfr
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.262 2000/07/19 06:35:58 imp Exp $
d131 1
d260 1
d295 1
d1443 9
@


1.262
log
@Apm device is now safe to be world readable, so make it so.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.261 2000/07/11 11:49:29 tanimura Exp $
d142 1
d265 1
d1555 4
@


1.261
log
@Finally merge newmidi.
(I had been busy for my own research activity until the last weekend)

Supported devices:

SB Midi Port			(sbc + midi)
SB OPL3				(sbc + midi)
16550 UART			(midi, needs a trick in your hint)
CS461x Midi Port		(csa + midi)

OSS-compatible sequencer	(seq)

Supported playing software:

playmidi			(We definitely need more)

Notes:

/dev/midistat now reports installed midi drivers. /dev/sndstat reports
only pcm drivers. We need the new name(pcmstat?).

EMU8000(SB AWE) does not sound yet but does get probed so that the OPL3
synth on an AWE card works.

TODO:

MSS/PCI bridge drivers
Midi-tty interface to support general serial devices
Modules
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.260 2000/06/26 15:42:48 cokane Exp $
d1369 1
a1369 1
	chmod 660 apm
@


1.260
log
@Force the link from 3dfx# -> 3dfx, so that it doesn't bail with "file
exists"
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.259 2000/06/25 10:55:22 markm Exp $
d1347 3
a1349 1
				# minor numbers 10-15 are unused
@


1.259
log
@Clean up all the old setup code for the old /dev/random. This will be
revisited when the new /dev/random is done.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.258 2000/06/24 06:36:39 cokane Exp $
d1550 1
a1550 1
	ln -s 3dfx$unit 3dfx
@


1.258
log
@Add 3dfxN to MAKEDEV, automatically links 3dfx to the last 3dfxN made.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.257 2000/06/11 06:43:13 tanimura Exp $
d306 1
a306 1
	mknod urandom	c 2 4;			chmod 644 urandom
@


1.257
log
@1. Update Comtrol RocketPort driver(rp) to version 3.02.
2. Newbusify the driver.
3. Build as a module.

4. Use correct minor numbers when creating device files.
5. Correctly lock control characters.
6. Return ENXIO when device not configured.
Submitted by:	Tor Egge	<Tor.Egge@@fast.no>

7. Fix the baud_table.
Submitted by:	Elliot Dierksen	<ebd@@oau.org>

Note:
- the old driver still lives in src/sys/i386/isa, so that you can
  revert to it if something goes wrong.
- The module does not detach very well. Attaching works fine.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.256 2000/05/24 23:49:49 msmith Exp $
d141 1
d1545 6
@


1.256
log
@Learn how to create device nodes for the 'twe' devices.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.255 2000/05/12 02:56:31 jhb Exp $
d1204 1
a1204 1
			case "\$first" in
d1206 1
a1206 1
				echo "\$first"
d1215 1
a1215 1
			case "\$first" in
d1217 1
a1217 1
				echo "\$ports"
d1226 2
a1227 2
		   mknod /dev/ttylR$Rnum c $major $(($MINOR + 32))
		   mknod /dev/ttyiR$Rnum c $major $(($MINOR + 64))
d1244 1
a1244 1
			case "\$first" in
d1246 1
a1246 1
				echo "\$first"
d1255 1
a1255 1
			case "\$first" in
d1257 1
a1257 1
				echo "\$ports"
d1266 1
a1266 1
		   mknod /dev/cualR$Rnum c $major $(($MINOR + 128 + 32)) \
d1268 1
a1268 1
		   mknod /dev/cuaiR$Rnum c $major $(($MINOR + 128 + 64)) \
@


1.255
log
@Add kbd1 to MAKEDEV's all) target so that we support using kbdcontrol
to switch keyboards out of the box.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.254 2000/05/10 02:51:36 obrien Exp $
d366 1
a366 1
ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|vn*s*|wd*s*|wfd*s*)
d377 1
d383 1
a383 1
	amrd*s*|mlxd*s*|idad*s*)
d548 1
a548 1
ad*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|vn*|wd*|wfd*)
d559 1
d565 1
a565 1
	amrd*|mlxd*|idad*)
d1544 5
@


1.254
log
@Fix the linking in my `sa' changes.

Submitted by:	Christian Weisgerber <naddy@@mips.inka.de>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.253 2000/05/09 01:15:55 peter Exp $
d246 1
a246 1
	sh MAKEDEV kbd0					# cdev, keyboard
@


1.253
log
@Fix some whitespace brokeness.. (usio and ctx)
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.252 2000/05/09 00:07:46 peter Exp $
d725 1
a725 1
			ln -f sa${unit}.${m} c rsa${unit}.${m}
d728 2
a729 2
			ln -f nsa${unit}.${m} c nrsa${unit}.${m}
			mknod ersa${unit}.${m} c $chr \
@


1.252
log
@Finish off replacing the rest of the duplicate mknod's with hard links.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.251 2000/05/08 22:56:17 peter Exp $
d97 1
a97 1
#  usio* USB serial devices
d133 1
a133 1
#	ctx*    Cortex-I video acquisition card
d955 1
a955 1
   minor=$(($minor + 128))
@


1.251
log
@Use printf (shell builtin) instead of cut - cut isn't in /bin.
This should fix the ttyA* and cuaA* up to the maximum possible 128 nodes.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.250 2000/05/08 21:32:24 obrien Exp $
d460 1
a460 2
		mknod r${name}${unit}.1720 c $chr `expr $unit '*' 64 + 1` \
		    root:operator
d466 1
a466 2
		mknod r${name}${unit}.1480 c $chr `expr $unit '*' 64 + 2` \
		    root:operator
d474 1
a474 2
		mknod r${name}${unit}.1440 c $chr `expr $unit '*' 64 + 3` \
		    root:operator
d484 1
a484 2
		mknod r${name}${unit}.1200 c $chr `expr $unit '*' 64 + 4` \
		    root:operator
d494 1
a494 2
		mknod r${name}${unit}.820 c $chr `expr $unit '*' 64 + 5` \
		    root:operator
d502 1
a502 2
		mknod r${name}${unit}.800 c $chr `expr $unit '*' 64 + 6` \
		    root:operator
d510 1
a510 2
		mknod r${name}${unit}.720 c $chr `expr $unit '*' 64 + 7` \
		    root:operator
d518 1
a518 2
		mknod r${name}${unit}.360 c $chr `expr $unit '*' 64 + 8` \
		    root:operator
d526 1
a526 2
		mknod r${name}${unit}.640 c $chr `expr $unit '*' 64 + 9` \
		    root:operator
d534 1
a534 2
		mknod r${name}${unit}.1232 c $chr `expr $unit '*' 64 + 10` \
		    root:operator
d599 1
a599 1
			mknod r$name$unit$partname c $chr $minor root:operator
d803 2
a804 2
			mknod r${dname}a c $chr $(($i * 8)) root:operator
			mknod r${dname}c c $chr $(($i * 8 + 2)) root:operator
d824 2
a825 4
		mknod r${name}${unit}a	c $chr `expr $unit '*' 8 + 0` \
		    root:operator
		mknod r${name}${unit}c  c $chr `expr $unit '*' 8 + 2` \
		    root:operator
d832 2
a833 4
		mknod r${name}${unit}la c $chr `expr $unit '*' 8 + 128` \
		    root:operator
		mknod r${name}${unit}lc c $chr `expr $unit '*' 8 + 130` \
		    root:operator
a849 1
		mknod rwcd${unit}a c $chr `expr $unit '*' 8 + 0` root:operator
d851 2
a852 1
		mknod rwcd${unit}c c $chr `expr $unit '*' 8 + 2` root:operator
@


1.250
log
@Add [en]sa devices for othoginality.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.249 2000/05/06 14:17:23 asmodai Exp $
d1087 2
a1088 2
		minor=`expr $port - 1`
		name=`expr $port + 1000 | cut -c 3-4`
d1104 2
a1105 2
		minor=`expr $port - 1`
		name=`expr $port + 1000 | cut -c 3-4`
@


1.249
log
@Fix comparison of units.

Submitted by:	Maxim Sobolev <sobomax@@altavista.net> on -current
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.248 2000/05/01 10:43:06 peter Exp $
d729 2
a730 1
		mknod rsa${unit}.ctl c $chr `saminor 1 ${unit} 0 0`
d733 1
a733 1
			mknod rsa${unit}.${m} c $chr \
d735 2
a736 1
			mknod nrsa${unit}.${m} c $chr \
d738 1
d741 1
d743 9
a751 3
		ln -f rsa${unit}.0 rsa${unit}
		ln -f nrsa${unit}.0 nrsa${unit}
		ln -f ersa${unit}.0 ersa${unit}
@


1.248
log
@Fix a couple of easy cases where we make two identical devices.. one
/dev/xxx and one /dev/rxxx.  This changes them to a hard link so that
less inodes are consumed and so that the permissions are always in sync.
There are lots more of these still.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.247 2000/04/26 06:12:42 chris Exp $
d798 1
a798 1
		while [ $i -lt $units ]; do
@


1.247
log
@Replace the /dev/stdin, /dev/stdout, and /dev/stderr nodes with
symlinks to fd/0, fd/1, and fd/2 respectively.  This will make
things easier for upcoming changes to fdesc (and does not break
anything for the current state of things) and hopefully its
position as the replacement for our existing static /dev/fd nodes.

Suggested (and reviewed) by:	phk
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.246 2000/03/26 19:48:49 n_hibma Exp $
d407 1
a407 1
			mknod r$name$unit$slicename c $chr $minor root:operator
d419 2
a420 2
					mknod r$name$unit$slicename$partname \
					      c $chr $minor root:operator
d449 1
a449 1
		mknod r${name}${unit}  c $chr `expr $unit '*' 64` root:operator
@


1.246
log
@Doug Ambrisko recommends not using minor 0-127 yet (Hardware flow
control)
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.245 2000/03/26 12:59:22 n_hibma Exp $
a309 3
	mknod stdin	c 22 0; 		chmod 666 stdin
	mknod stdout	c 22 1; 		chmod 666 stdout
	mknod stderr	c 22 2; 		chmod 666 stderr
d320 3
@


1.245
log
@Add the entry for usio, major 138
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.244 2000/03/18 18:45:48 n_hibma Exp $
d959 2
a960 1
	mknod usio$unit c 138 $unit
@


1.244
log
@Add the entries for urio.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243 2000/03/08 18:13:43 jlemon Exp $
d97 1
d955 5
@


1.243
log
@Correct device naming for IDA disk nodes (idad)
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.242 2000/02/18 05:49:08 rwatson Exp $
d96 1
d253 1
d926 1
a926 1
   minor=$unit
d949 5
@


1.243.2.1
log
@MFC: Fix comparison.

Submitted by:	Maxim Sobolev <sobomax@@altavista.net>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243 2000/03/08 18:13:43 jlemon Exp $
d795 1
a795 1
		while [ $i -le $units ]; do
@


1.243.2.2
log
@MFC: sync up with hard links instead of duplicate mknods (consuming
seperate inodes).  Also provide non-'r' tape node names.  Fix ttyA/cuaA.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.1 2000/05/06 14:18:41 asmodai Exp $
d404 1
a404 1
			ln -f $name$unit$slicename r$name$unit$slicename
d416 2
a417 2
					ln -f $name$unit$slicename$partname \
					     r$name$unit$slicename$partname
d446 1
a446 1
		ln -f ${name}${unit} r${name}${unit}
d457 2
a458 1
		ln -f ${name}${unit}.1720 r${name}${unit}.1720
d464 2
a465 1
		ln -f ${name}${unit}.1480 r${name}${unit}.1480
d473 2
a474 1
		ln -f ${name}${unit}.1440 r${name}${unit}.1440
d484 2
a485 1
		ln -f ${name}${unit}.1200 r${name}${unit}.1200
d495 2
a496 1
		ln -f ${name}${unit}.820 r${name}${unit}.820
d504 2
a505 1
		ln -f ${name}${unit}.800 r${name}${unit}.800
d513 2
a514 1
		ln -f ${name}${unit}.720 r${name}${unit}.720
d522 2
a523 1
		ln -f ${name}${unit}.360 r${name}${unit}.360
d531 2
a532 1
		ln -f ${name}${unit}.640 r${name}${unit}.640
d540 2
a541 1
		ln -f ${name}${unit}.1232 r${name}${unit}.1232
d606 1
a606 1
			ln -f $name$unit$partname r$name$unit$partname
d726 1
a726 2
		mknod sa${unit}.ctl c $chr `saminor 1 ${unit} 0 0`
		ln -f sa${unit}.ctl rsa${unit}.ctl
d729 1
a729 1
			mknod sa${unit}.${m} c $chr \
d731 1
a731 2
			ln -f sa${unit}.${m} c rsa${unit}.${m}
			mknod nsa${unit}.${m} c $chr \
a732 1
			ln -f nsa${unit}.${m} c nrsa${unit}.${m}
a734 1
			ln -f esa${unit}.${m} ersa${unit}.${m}
d736 3
a738 9
		ln -f sa${unit}.0 sa${unit}
		ln -f sa${unit}.0 rsa${unit}.0
		ln -f sa${unit}.0 rsa${unit}
		ln -f nsa${unit}.0 nsa${unit}
		ln -f nsa${unit}.0 nrsa${unit}.0
		ln -f nsa${unit}.0 nrsa${unit}
		ln -f esa${unit}.0 esa${unit}
		ln -f esa${unit}.0 ersa${unit}.0
		ln -f esa${unit}.0 ersa${unit}
d800 2
a801 2
			ln -f ${dname}a r${dname}a
			ln -f ${dname}c r${dname}c
d821 4
a824 2
		ln -f ${name}${unit}a r${name}${unit}a
		ln -f ${name}${unit}c r${name}${unit}c
d831 4
a834 2
		ln -f ${name}${unit}la r${name}${unit}la
		ln -f ${name}${unit}lc r${name}${unit}lc
d851 1
d853 1
a853 2
		ln -f wcd${unit}a rwcd${unit}a
		ln -f wcd${unit}c rwcd${unit}c
d924 1
a924 1
	minor=$unit
d1063 2
a1064 2
		minor=$(expr $port - 1)
		name=$(printf %02d $port)
d1080 2
a1081 2
		minor=$(expr $port - 1)
		name=$(printf %02d $port)
@


1.243.2.3
log
@MFC: fix the linking in my `sa' changes

Submitted by:	Christian Weisgerber <naddy@@mips.inka.de>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.2 2000/05/09 01:13:27 peter Exp $
d722 1
a722 1
			ln -f sa${unit}.${m} rsa${unit}.${m}
d725 2
a726 2
			ln -f nsa${unit}.${m} nrsa${unit}.${m}
			mknod esa${unit}.${m} c $chr \
@


1.243.2.4
log
@MFC: twe driver support
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.3 2000/05/10 02:54:14 obrien Exp $
d363 1
a363 1
ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
a373 1
	twed*s*) name=twed; chr=147;;
d379 1
a379 1
	amrd*s*|idad*s*|mlxd*s*|twed*s*)
d544 1
a544 1
ad*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|twed*|vn*|wd*|wfd*)
a554 1
	twed*) name=twed; chr=147;;
d560 1
a560 1
	amrd*|idad*|mlxd*|twed*)
a1527 5
	;;

twe*)
	unit=`expr $i : 'twe\(.*\)'`
	mknod twe$unit c 146 $unit
@


1.243.2.5
log
@MFC:	- Use tabs instead of spaces
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.4 2000/05/25 01:57:29 msmith Exp $
d131 1
a131 1
#	ctx*	Cortex-I video acquisition card
@


1.243.2.6
log
@MFC: USB support during installation and enabling of USB in the
GENERIC kernel.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.5 2000/05/28 13:52:50 asmodai Exp $
d244 1
a244 1
	sh MAKEDEV kbd0 kbd1				# cdev, keyboard
@


1.243.2.7
log
@MFC: Fix minor numbers, locking, the return value of rpattach()
and baud_table.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.6 2000/06/08 23:07:26 jhb Exp $
d1190 1
a1190 1
			case "$first" in
d1192 1
a1192 1
				echo "$first"
d1201 1
a1201 1
			case "$first" in
d1203 1
a1203 1
				echo "$ports"
d1212 2
a1213 2
		   mknod /dev/ttyiR$Rnum c $major $(($MINOR + 32))
		   mknod /dev/ttylR$Rnum c $major $(($MINOR + 64))
d1230 1
a1230 1
			case "$first" in
d1232 1
a1232 1
				echo "$first"
d1241 1
a1241 1
			case "$first" in
d1243 1
a1243 1
				echo "$ports"
d1252 1
a1252 1
		   mknod /dev/cuaiR$Rnum c $major $(($MINOR + 128 + 32)) \
d1254 1
a1254 1
		   mknod /dev/cualR$Rnum c $major $(($MINOR + 128 + 64)) \
@


1.243.2.8
log
@MFC: A driver for programming the AGP hardware.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.7 2000/06/11 07:04:36 tanimura Exp $
a138 1
#	agpgart	AGP interface
a259 1
	sh MAKEDEV agpgart				# cdev, AGP
a1529 4
	;;

agpgart)
	mknod agpgart c 148 0
@


1.243.2.9
log
@MFC: make apm read only
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.8 2000/07/19 09:48:01 ru Exp $
d1354 1
a1354 1
	chmod 664 apm
@


1.243.2.10
log
@MFC: tap driver. Virtual Ethernet device, mostly used in bridged
configurations. Used by vmware and vtun ports, among other things.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.9 2000/07/20 17:01:17 imp Exp $
a128 1
#	tap*	Ethernet Tunneling device
a254 1
	sh MAKEDEV tap0 tap1 tap2 tap3			# cdev, network
a288 1
	sh MAKEDEV tap0					# cdev, network
a1422 9
		unit=$(($unit + 1))
	done
	;;

tap*)
	ntap=`expr $i : 'tap\(.*\)$'`
	unit=0
	while [ $unit -le $ntap ]; do
		mknod tap$unit c 149 $unit root:network
@


1.243.2.11
log
@Add the ATA RAID device
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.10 2000/07/27 13:57:00 nsayer Exp $
a235 1
	sh MAKEDEV ar0 ar1				# bdev, ATA RAID disk
d368 1
a368 1
ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
a371 1
	ar*s*) name=ar; chr=157;;
d550 1
a550 1
ad*|ar*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|twed*|vn*|wd*|wfd*)
a553 1
	ar*) name=ar; chr=157;;
@


1.243.2.12
log
@MFC: reorder 'tw*' after 'twe*' so that the 3ware control interface can
be created.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.11 2000/10/25 06:51:50 sos Exp $
d961 5
a1555 5
	;;

tw*)
	unit=`expr $i : 'tw\(.*\)'`
	mknod tw$unit c 19 $unit root:operator
@


1.243.2.13
log
@MFC: the USB scanner driver. See SANE home page for supported USB scanners.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.12 2000/10/31 00:22:24 msmith Exp $
a95 3
#	urio*	Diamond Rio 500
#	usio*	USB serial devices
#	uscanner*	USB scanners
a254 1
	sh MAKEDEV urio0 uscanner0			# cdev, USB devices too
a952 16
	;;

urio*)
	unit=`expr $i : 'urio\(.*\)'`
	mknod urio$unit c 143 $unit
	;;

usio*)
	unit=`expr $i : 'usio\(.*\)'`
	minor=$(($unit + 128))
	mknod usio$unit c 138 $minor
	;;

uscanner*)
	unit=`expr $i : 'uscanner\(.*\)'`
	mknod uscanner$unit c 156 $unit
@


1.243.2.14
log
@MFC: Add the entry for umodem0
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.13 2000/10/31 23:16:05 n_hibma Exp $
a91 1
#	ugen*	generic USB device
d93 1
d95 1
a95 2
#	umodem* modems
#	ums*	mouse
d97 1
a98 1
#	usio*	USB serial devices
d258 1
a258 1
	sh MAKEDEV urio0 uscanner0 umodem0		# cdev, USB devices too
a974 5
umodem*)
	unit=`expr $i : 'umodem\(.*\)'`
	mknod umodem$unit c 124 $unit
 	;;
 
@


1.243.2.15
log
@MFC:
	Set MAKEDEVPATH in sysinstall to include the necessary /mnt2 stuff
	before starting the fixit shell so that MAKEDEV on the fixit floppy
	(which would otherwise hardcode its path to /sbin:/bin) is usable.

	Search for mknod in the path instead of hardcoding /sbin/mknod
	in MAKEDEV.

PR:		misc/21241
Approved by:	jkh
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.14 2000/11/01 01:19:09 n_hibma Exp $
a189 7
mknod=/sbin/mknod
for i in `IFS=':'; echo $PATH`; do
	if [ -x "${i}/mknod" ]; then
		mknod="${i}/mknod"
		break
	fi
done
d193 2
a194 2
	4) "$mknod" "$@@" root:wheel || die 2 "$mknod $@@ failed";;
	5) "$mknod" "$@@"            || die 2 "$mknod $@@ failed";;
@


1.243.2.16
log
@Add the 'amr' control device.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.15 2000/11/07 11:02:04 truckman Exp $
a1574 5
	;;

amr*)
	unit=`expr $i : 'amr\(.*\)'`
	mknod amr$unit c 132 $unit
@


1.243.2.17
log
@MFC the /dev entries for the aac controller and disks
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.16 2000/11/28 21:52:39 msmith Exp $
a37 2
#	aac*	Adaptec FSA RAID controllers
#	aacd*	Adaptec FSA RAID disks
d381 1
a381 1
aacd*s*|ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
a383 1
	aacd*s*) name=aacd; chr=151;;
d399 1
a399 1
	aacd*s*|amrd*s*|idad*s*|mlxd*s*|twed*s*)
d564 1
a564 1
aacd*|ad*|ar*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|twed*|vn*|wd*|wfd*)
a566 1
	aacd*) name=aacd; chr=151;;
d582 1
a582 1
	aacd*|amrd*|idad*|mlxd*|twed*)
a1570 4

aac*)
	unit=`expr $i : 'aac\(.*\)'`
	mknod aac$unit c 150 $unit
@


1.243.2.18
log
@Ugh!  Fix aac device breakage from my last commit
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.17 2001/01/15 23:49:10 scottl Exp $
a1578 1
	;;
@


1.243.2.19
log
@MFC r1.285:
Give the USB devices sensible default permissions.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.18 2001/01/16 04:57:34 scottl Exp $
a928 1
	umask 7
d931 1
a931 1
	umask 77
a934 1
	umask 7
d936 1
a936 2
	mknod uhid$unit c 122 $unit root:operator
	umask 77
a939 1
	umask 7
d941 1
a941 2
	mknod ums$unit c 111 $unit root:operator
	umask 77
a952 1
	umask 7
d959 1
a959 1
		mknod ugen$unit c 114 $(($unit * 16)) root:operator
d962 1
a962 1
			mknod ugen$unit.$i c 114 $(($unit * 16 + $i)) root:operator
d967 1
a967 1
		mknod ugen$unit.$endpoint c 114 $minor root:operator
a968 1
	umask 77
a971 1
	umask 7
d973 1
a973 2
	mknod urio$unit c 143 $unit root:operator
	umask 77
a976 1
	umask 7
d979 1
a979 2
	mknod usio$unit c 138 $minor uucp:dialer
	umask 77
a982 1
	umask 7
d984 1
a984 2
	mknod uscanner$unit c 156 $unit root:operator
	umask 77
a987 1
	umask 7
d989 3
a991 4
	mknod umodem$unit c 124 $unit uucp:dialer
	umask 77
	;;

@


1.243.2.20
log
@MFC:

Add acdNt* device nodes.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.19 2001/01/18 00:46:50 n_hibma Exp $
a804 32
	umask 77
	;;

acd*t*)
	umask $disk_umask
	units=`expr $i : '...\(.*\)t'`;
	tracks=`expr $i : '.*t\(.*\)'`;
	name=acd;
	chr=117;
	if [ -z "${units}" -o "${units}" -le 0 ]; then
		units=1
	fi
	if [ -z "${tracks}" -o "${tracks}" -le 0 ]; then
		tracks=100
	fi
	if [ "${units}" -le 31 -a "${tracks}" -le 169 ]; then
		i=0
		while [ $i -le $units ]; do
			dname=$name$i
			rm -rf ${dname}t*
			j=1
			while [ $j -le ${tracks} ]; do
				mknod ${dname}t$j c $chr \
					$((($i * 8) + (65536 * $j))) \
					root:operator
				j=$(($j + 1))
			done
			i=$(($i + 1))
		done
	else
		echo "$i is invalid -- can't have more than 32 cd devices or 169 tracks"
	fi
@


1.243.2.21
log
@create devnodes for snd0 in the 'all' target.

with this change, owners of supported pnp/pci sound cards can simply
'kldload snd' and use sound with no other setup required.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.20 2001/02/03 16:16:40 sos Exp $
d262 1
a262 1
	sh MAKEDEV pcaudio speaker snd0			# cdev, noise
@


1.243.2.22
log
@MFC: style cleanups
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.21 2001/02/27 05:29:28 cg Exp $
d39 1
a39 1
#	aacd*	Adaptec FSA RAID
d41 1
a41 1
#	amrd*	AMI MegaRAID
d51 1
a51 1
#	mlxd*	Mylex DAC960 RAID disk volumes
d66 1
a66 1
#	refclock-* serial ports used by xntpd parse refclocks
d86 1
a86 1
#	pcfclock* Parallel time sync interface
d97 1
a97 1
#	umodem*	modems
d100 1
a100 1
#	uscanner* USB scanners
d117 2
a118 2
#	i4btrc*	trace data interface(s), one per passive card
#	i4btel*	telephony interface(s)
d129 2
a130 2
#	pcaudio	PCM audio driver
#	socksys	iBCS2 socket system driver
@


1.243.2.23
log
@MFC: 1.268: add unit2minor() and use it where appropriate so that we handle
            units > 255 properly.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.22 2001/03/06 01:04:04 obrien Exp $
a227 6
# Convert a unit number to a minor number.
unit2minor()
{
  echo $(((($1 >> 8) << 16) | ($1 % 256)))
}

d641 1
a641 1
	mknod ${name}${unit} c $chr `unit2minor $unit`
d653 1
a653 1
	mknod ${name}${unit} c $chr `unit2minor $unit`
d664 1
a664 1
	mknod ${name}${unit} c $chr `unit2minor $unit`
d681 1
a681 1
		mknod $dname c $chr `unit2minor $i` root:operator
d699 1
a699 1
		mknod $dname c $chr `unit2minor $i` root:operator
d932 1
a932 1
	mknod iic$unit c 105 `unit2minor $unit`
d937 1
a937 1
	mknod smb$unit c 106 `unit2minor $unit`
d942 1
a942 1
	mknod pcfclock$unit c 140 `unit2minor $unit`
d947 1
a947 1
	mknod ppi$unit c 82 `unit2minor $unit`
d952 1
a952 1
	mknod pps$unit c 89 `unit2minor $unit`
d963 1
a963 1
	mknod usb$unit c 108 `unit2minor $unit` root:operator
d970 1
a970 1
	mknod uhid$unit c 122 `unit2minor $unit` root:operator
d977 1
a977 1
	mknod ums$unit c 111 `unit2minor $unit` root:operator
d983 1
a983 1
	minor=`unit2minor $unit`
d985 1
a985 1
	minor=`unit2minor \`expr $unit + 64\``
d997 1
a997 1
		mknod ugen$unit c 114 `unit2minor $(($unit * 16))` root:operator
d1000 1
a1000 2
			mknod ugen$unit.$i c 114 \
				`unit2minor $(($unit * 16 + $i))` root:operator
d1004 1
a1004 1
		minor=`minor2unit $(($unit * 16 + $endpoint))`
d1013 1
a1013 1
	mknod urio$unit c 143 `minor2unit $unit` root:operator
d1021 1
a1021 1
	minor=`unit2minor $(($unit + 128))` uucp:dialer
d1041 2
a1042 2
	mknod lpt$unit c 16 `unit2minor $unit`
	mknod lpctl$unit c 16 `unit2minor \`expr $unit + 128\``
d1053 1
a1053 1
		mknod ttyv$(printf %01x $i) c $chr `unit2minor $i`
d1063 1
a1063 1
		mknod bpf$unit c 23 `unit2minor $unit`
d1356 1
a1356 2
	# non-blocking for X11
	mknod mse$unit c $chr `unit2minor \`expr $unit '*' 2 + 1\``
d1362 1
a1362 2
	# non-blocking for X11
	mknod psm$unit c $chr `unit2minor \`expr $unit '*' 2 + 1\``
d1410 5
a1414 6
	mknod mixer$unit	c $chr `unit2minor \`expr $unit '*' 16 + 0\``
	mknod sequencer$unit	c $chr `unit2minor \`expr $unit '*' 16 + 1\``
	mknod midi$unit		c $chr `unit2minor \`expr $unit '*' 16 + 2\``
	mknod dsp$unit		c $chr `unit2minor \`expr $unit '*' 16 + 3\``
	mknod audio$unit	c $chr `unit2minor \`expr $unit '*' 16 + 4\``
	mknod dspW$unit		c $chr `unit2minor \`expr $unit '*' 16 + 5\``
d1417 2
a1418 2
	mknod music$unit	c $chr `unit2minor \`expr $unit '*' 16 + 8\``
	mknod pss$unit		c $chr `unit2minor \`expr $unit '*' 16 + 9\``
d1430 4
a1433 4
	mknod gsc${unit} c 47 `unit2minor $unit`
	mknod gsc${unit}p c 47 `unit2minor $(($unit + 8))`
	mknod gsc${unit}d c 47 `unit2minor $(($unit + 32))`
	mknod gsc${unit}pd c 47 `unit2minor $(($unit + 40))`
d1450 1
a1450 1
	mknod card$unit c $chr `unit2minor $unit`
d1485 1
a1485 1
	mknod ctx$unit c 40 `unit2minor $unit`
d1491 1
a1491 1
	mknod meteor$unit c 67 `unit2minor $unit`
d1497 3
a1499 3
	mknod bktr$unit c 92 `unit2minor $unit`
	mknod tuner$unit c 92 `unit2minor $((16 + $unit ))`
	mknod vbi$unit c 92 `unit2minor $((32 + $unit ))`
d1507 1
a1507 1
		mknod tun$unit c 52 `unit2minor $unit` uucp:dialer
d1516 1
a1516 1
		mknod tap$unit c 149 `unit2minor $unit` root:network
d1528 1
a1528 1
	mknod snp$unit c 53 `unit2minor $unit`
d1591 1
a1591 1
	mknod kbd$unit c $chr `unit2minor $unit`
d1604 1
a1604 1
	mknod i4brbch$unit c 57 `unit2minor $unit`
d1610 1
a1610 1
	mknod i4bteld$unit c 56 `unit2minor \`expr $offset + $unit\``
d1615 1
a1615 1
	mknod i4btel$unit c 56 `unit2minor $unit`
d1620 1
a1620 1
	mknod i4btrc$unit c 59 `unit2minor $unit`
d1630 1
a1630 1
	mknod mlx$unit c 130 `unit2minor $unit`
d1644 1
a1644 1
	mknod twe$unit c 146 `unit2minor $unit`
d1649 1
a1649 1
	mknod tw$unit c 19 `unit2minor $unit` root:operator
@


1.243.2.24
log
@MFC: more unit2major fixes
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.23 2001/03/06 01:35:59 obrien Exp $
d1003 1
a1003 2
		mknod ugen$unit c 114 \
				`unit2minor $(($unit * 16))` root:operator
d1011 1
a1011 1
		minor=`unit2minor $(($unit * 16 + $endpoint))`
d1020 1
a1020 1
	mknod urio$unit c 143 `unit2minor $unit` root:operator
d1028 1
a1028 2
	minor=`unit2minor $(($unit + 128))`
	mknod usio$unit c 138 $minor uucp:dialer
d1035 1
a1035 1
	mknod uscanner$unit c 156 `unit2minor $unit` root:operator
d1042 1
a1042 1
	mknod umodem$unit c 124 `unit2minor $unit` uucp:dialer
d1418 1
d1517 1
a1517 1
		mknod tun$unit c 52 `unit2minor $unit`
d1635 1
a1635 1
	mknod aac$unit c 150 `unit2minor $unit`
d1645 1
a1645 1
	mknod amr$unit c 132 `unit2minor $unit`
@


1.243.2.25
log
@MFC: one contraversial and one non-contraversial change.  rwatson and
     I will take the fall for the contraversial one if it looks like
     it has onwonted side-effects. :)
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.24 2001/03/06 01:40:08 obrien Exp $
d257 2
@


1.243.2.26
log
@MFC: back out
@
text
@a256 2
	sh MAKEDEV wd0 wd1 wd2 wd3			# bdev, OLD disk
	sh MAKEDEV wcd0 wfd0 wst0			# bdev, OLD ATAPI devs
@


1.243.2.27
log
@MFC rev 1.295.  Create symlink for afaN device.

Approved by:	jkh
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.26 2001/03/22 10:52:10 jkh Exp $
a1636 1
	ln -s aac$unit afa$unit
@


1.243.2.28
log
@MFC rev 1.296 and 1.297, add the -f flag to ln when creating the afaN device.

Approved by:	jkh
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.27 2001/03/23 08:59:38 scottl Exp $
d1637 1
a1637 1
	ln -fs aac$unit afa$unit
@


1.243.2.29
log
@Add ability to make the console (zs) device for AS8[24]00 (TurboLaser)
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.28 2001/03/27 22:14:53 scottl Exp $
a1183 7
	;;

# Alpha AS8[24]00 (TurboLaser) console.
zs?)
	unit=`expr $i : 'zs.*\(.\)$'`
	m=`ttyminor $unit`
	mknod zs$unit c 135 $m
@


1.243.2.30
log
@MFC 1.303: don't insist on creating rocketport devices in /dev.
@
text
@d23 1
a23 1
# $FreeBSD$
d1300 1
a1300 1
	rm -f ttyR* ttyiR* ttylR*
d1314 3
a1316 3
		   mknod ttyR$Rnum c $major $MINOR
		   mknod ttyiR$Rnum c $major $(($MINOR + 32))
		   mknod ttylR$Rnum c $major $(($MINOR + 64))
d1340 1
a1340 1
	rm -f cuaR* cuaiR* cualR*
d1354 2
a1355 2
		   mknod cuaR$Rnum c  $major $(($MINOR + 128)) uucp:dialer
		   mknod cuaiR$Rnum c $major $(($MINOR + 128 + 32)) \
d1357 1
a1357 1
		   mknod cualR$Rnum c $major $(($MINOR + 128 + 64)) \
@


1.243.2.31
log
@MFC r.1.7 of aac.4 and r.1.304 of MAKEDEV.  Create the hpnX control device
and document it.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.30 2001/07/23 10:11:38 dd Exp $
a1644 1
	ln -fs aac$unit hpn$unit
@


1.243.2.32
log
@create {dsp,dspW,audio}X.[01234] for unit X
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.31 2001/07/30 16:23:26 scottl Exp $
d689 1
a689 1
	done
d707 1
a707 1
	done
a1425 3
	ln -fs dsp$unit.0 dsp$unit
	ln -fs audio$unit.0 audio$unit
	ln -fs dspW$unit.0 dspW$unit
d1430 3
a1432 9

	for chn in 0 1 2 3
	do
		minor=`expr $chn '*' 65536 + $unit '*' 16`
		mknod dsp$unit.$chn	c $chr $(($minor + 3))
		mknod audio$unit.$chn	c $chr $(($minor + 4))
		mknod dspW$unit.$chn	c $chr $(($minor + 5))
	done

@


1.243.2.33
log
@MFC: Add nullmodem terminal driver.

Submitted by:   Doug Ambrisko <ambrisko@@ambrisko.com> (-stable diffs)
Approved by:    murray, julian
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.32 2001/08/01 04:27:16 cg Exp $
a1065 13
	;;

nmdm*)
	units=`expr $i : 'nmdm\(.*\)'`
	chr=18
	i=0
	while [ $i -lt $units ]; do
		minor=`unit2minor $i`
		minor=$(($minor + $minor))
		mknod nmdm${i}A c $chr $minor
		mknod nmdm${i}B c $chr $(($minor + 1))
		i=$(($i + 1))
	done
@


1.243.2.34
log
@Add zs0 to the list of standard devices.  Since we share on MAKEDEV, the
i386 people will just have to live with this weird device name they will
never use.

Approved by:	jkh
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.33 2001/08/11 00:54:13 mp Exp $
a303 1
	sh MAKEDEV zs0					# cdev, big-Alpha serial tty
@


1.243.2.35
log
@Import the latest (1998-era!) unsupported 2.0.0 version of the
stallion driver from ftp.stallion.com (stl(4) and stli(4)).  This adds
support for the "EasyIO" family of PCI multiport serial cards with the
stl driver.

The default device names were changed to allow stl and stli
devices to coexist on a system.
 - stl driver dialin devices are ttyE* as before
 - stli driver dialin devices no longer share the ttyE names, but now use
   ttyF* names.
 - dialout devices are now called cuaE* and cuaF* (cf cue*) in line with the
   rest of the system

PR: 6368, 19890, 22967, 28831
Submitted by: Gregory Bond <gnb@@itga.com.au>,
              Jan L. Peterson <jlp@@flipdog.com>
Approved by: jkh
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.34 2001/08/28 07:17:44 obrien Exp $
a74 4
#	ttyE*	Stallion EasyIO (stl) dialin ports
#	cuaE*	Stallion EasyIO (stl) dialout ports
#	ttyF*	Stallion Brumby (stli) dialin ports
#	cuaF*	Stallion Brumby (stli) dialout ports
a77 3
#	stlN	Stallion EasyIO board N dialin and dialout
#	stliN	Stallion Brumby board N dialin and dialout
#
a233 43
# For the stallion devices tty[EF]
# stallion major letter card iscallout
stallion () {
	major=$1
	letter=$2
	card=$3
	iscallout=$4

	port=0
	maxport=8
	pref=tty
	owner=
	minorbase=0

	if [ $iscallout -gt 0 ]; then
	    pref=cua
	    owner=uucp:dialer
	    minorbase=128
	fi

	case "$card" in 
	[0-7]);;
	*) die 1 "Invalid stl card number $card";;
	esac

	# make the mem interface for extracting stats & loading microcode.
	# 0x1000000 + card number
	mknod staliomem$card c $major 0x0100000$card

	while [ $port -lt $maxport ]; do
	    minor=`expr $minorbase + $card \* 1048576 + $port`
	    if [ $port -ge 32 ]; then
		minor=`expr $minor + 65504`
	    fi
	    unit=`expr $card \* 64 + $port`

	    mknod ${pref}${letter}$unit c $major $minor $owner
	    mknod ${pref}i${letter}$unit c $major `expr $minor + 32` $owner
	    mknod ${pref}l${letter}$unit c $major `expr $minor + 64` $owner
	    port=`expr $port + 1`
	done
}

a1245 47
	;;

# Stallion multi serial cards (stl and stli drivers)
# 
# These drivers reserve 64 minor devices per board, even if the board
# supports only 4 devices.  We default to creating only 8 of the 64 devices
# to keep /dev from getting too large (which => slow).  The last part of the
# arg is the board number to create ports for.  So:
#	ttyE0 will create 8 dialin ports ttyE0-ttyE7, plus ttyiE* and ttylE*
#	cuaE0 will create 8 dialout ports cuaE0-cuaE7, plus cuaiE* and cualE*
#	ttyE1 will create 8 dialin ports ttyE64-ttyE71, plus ttyiE* and ttylE*
#	etc
# If you have EasyConnect 8/32 or 8/64 cards, you will need to change the 
# definition of "maxport" below to get nodes for the full 32 or 64 
# ports per card.
#
# Note that the mapping of minor device numbers (with the hole between
# 32-64k) is a bit odd to keep compatibility with ttyd? for
# lock/initial devices.  
# Minor device field for the ports is
#	card{3} unused{4} unit-msb{1} unused{8} callout{1} lock{1} init{1} unit-lsbs{5}
# for the mem device is
#	0x1000000 + card
# (For stl, there is only 1 mem device per system; for stli, one per board)

ttyE*)
	stallion 72 E `expr $i : 'tty.*\(.\)$'` 0
	;;
cuaE*)
	stallion 72 E `expr $i : 'cua.*\(.\)$'` 1
	;;
stl*)
	card=`expr $i : 'stl\(.\)$'`
	stallion 72 E $card 0
	stallion 72 E $card 1
	;;

ttyF*)
	stallion 75 F `expr $i : 'tty.*\(.\)$'` 0
	;;
cuaF*)
	stallion 75 F `expr $i : 'cua.*\(.\)$'` 1
	;;
stli*)
	card=`expr $i : 'stl\(.\)$'`
	stallion 75 F $card 0
	stallion 75 F $card 1
@


1.243.2.36
log
@Do what rev 1.243.2.34 intended to do -- add zs0 to the list of standard
devices.  Since we share on MAKEDEV, the i386 people will just have to live
with this weird device name they will never use.  In rev 1.243.2.34, I added
zs0 to the `fixit' devices, rather than the `all' devices.

Approved by:	jkh
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.35 2001/08/30 12:29:56 murray Exp $
a315 1
	sh MAKEDEV zs0					# big-Alpha serial tty
d354 1
a354 1
	sh MAKEDEV zs0					# big-Alpha serial tty
@


1.243.2.37
log
@MFC: 1.308; add support for making the Coda /dev/cfsN devices.
@
text
@d23 1
a23 1
# $FreeBSD$
a153 1
#	cfs*	Coda Distributed Filesystem
a1790 5
	;;

cfs*)
	unit=`expr $i : 'cfs\(.*\)'`
	mknod cfs$unit c 93 $unit root:operator
@


1.243.2.38
log
@MFC rev 1.311, 1.313: avoid unnecessary calls to expr(1)
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.37 2001/11/22 13:42:56 iedowse Exp $
d272 1
a272 1
	    minor=$(($minorbase + $card * 1048576 + $port))
d274 1
a274 1
		minor=$(($minor + 65504))
d276 1
a276 1
	    unit=$(($card * 64 + $port))
d279 3
a281 3
	    mknod ${pref}i${letter}$unit c $major $(($minor + 32)) $owner
	    mknod ${pref}l${letter}$unit c $major $(($minor + 64)) $owner
	    port=$(($port + 1))
d423 2
a424 2
	mknod rwt${u}   c 10 $(( 0 + $u)) root:operator
	mknod nrwt${u}  c 10 $(( 4 + $u)) root:operator
d426 12
a437 12
#	mknod rWt${u}   c 10 $((64 + $u)) root:operator
#	mknod nrWt${u}  c 10 $((68 + $u)) root:operator
	mknod rwt${u}b  c 10 $((16 + $u)) root:operator	# 60 megabytes
	mknod nrwt${u}b c 10 $((20 + $u)) root:operator
	mknod rwt${u}c  c 10 $((24 + $u)) root:operator	# 120 megabytes
	mknod nrwt${u}c c 10 $((28 + $u)) root:operator
	mknod rwt${u}d  c 10 $((32 + $u)) root:operator	# 150 megabytes
	mknod nrwt${u}d c 10 $((36 + $u)) root:operator
#	mknod rwt${u}e  c 10 $((40 + $u)) root:operator	# 300 megabytes?
#	mknod nrwt${u}e c 10 $((44 + $u)) root:operator
#	mknod rwt${u}f  c 10 $((48 + $u)) root:operator	# 600 megabytes?
#	mknod nrwt${u}f c 10 $((52 + $u)) root:operator
d527 1
a527 1
		mknod ${name}${unit}   c $chr $(($unit * 64)) root:operator
d537 1
a537 1
		mknod ${name}${unit}.1720  c $chr $(($unit * 64 + 1)) \
d543 1
a543 1
		mknod ${name}${unit}.1480  c $chr $(($unit * 64 + 2)) \
d551 1
a551 1
		mknod ${name}${unit}.1440  c $chr $(($unit * 64 + 3)) \
d561 1
a561 1
		mknod ${name}${unit}.1200  c $chr $(($unit * 64 + 4)) \
d571 1
a571 1
		mknod ${name}${unit}.820  c $chr $(($unit * 64 + 5)) \
d579 1
a579 1
		mknod ${name}${unit}.800  c $chr $(($unit * 64 + 6)) \
d587 1
a587 1
		mknod ${name}${unit}.720  c $chr $(($unit * 64 + 7)) \
d595 1
a595 1
		mknod ${name}${unit}.360  c $chr $(($unit * 64 + 8)) \
d603 1
a603 1
		mknod ${name}${unit}.640  c $chr $(($unit * 64 + 9)) \
d611 1
a611 1
		mknod ${name}${unit}.1232  c $chr $(($unit * 64 + 10)) \
d699 1
a699 1
	unit=$(($unit + 1 - 1))
d711 1
a711 1
	unit=$(($unit + 1 - 1))
d722 1
a722 1
	unit=$(($unit + 1 - 1))
d855 1
a855 1
		mknod rast${unit} c $chr $(($unit * 8 + 0)) root:operator
d857 1
a857 1
		mknod nrast${unit} c $chr $(($unit * 8 + 1)) root:operator
d934 1
a934 1
		mknod ${name}${unit}a	c $chr $(($unit * 8 + 0)) \
d936 1
a936 1
		mknod ${name}${unit}c   c $chr $(($unit * 8 + 2)) \
d942 1
a942 1
		mknod ${name}${unit}la  c $chr $(($unit * 8 + 128)) \
d944 1
a944 1
		mknod ${name}${unit}lc  c $chr $(($unit * 8 + 130)) \
d963 2
a964 2
		mknod wcd${unit}a  c $chr $(($unit * 8 + 0)) root:operator
		mknod wcd${unit}c  c $chr $(($unit * 8 + 2)) root:operator
d982 1
a982 1
		mknod rwst${unit} c $chr $(($unit * 8 + 0)) root:operator
d1044 1
a1044 1
	minor=`unit2minor $(($unit + 64))`
d1104 1
a1104 1
	mknod lpctl$unit c 16 `unit2minor $(($unit + 128))`
d1151 3
a1153 3
	mknod cuaa$unit c 28 $(($m + 128)) uucp:dialer
	mknod cuaia$unit c 28 $(($m + 32 + 128)) uucp:dialer
	mknod cuala$unit c 28 $(($m + 64 + 128)) uucp:dialer
d1161 2
a1162 2
	mknod ttyid$unit c 28 $(($m + 32))
	mknod ttyld$unit c 28 $(($m + 64))
d1174 1
a1174 1
		minor=$(($card * 65536 + $minor))
d1176 3
a1178 3
		mknod cuac$name c $major $(($minor + 128)) uucp:dialer
		mknod cuaic$name c $major $(($minor + 32 + 128)) uucp:dialer
		mknod cualc$name c $major $(($minor + 64 + 128)) uucp:dialer
d1191 1
a1191 1
		minor=$(($card * 65536 + $minor))
d1194 2
a1195 2
		mknod ttyic$name c $major $(($minor + 32))
		mknod ttylc$name c $major $(($minor + 64))
d1205 1
a1205 1
	mknod cuam$unit c 63 $(($m + 128)) uucp:dialer
d1223 1
a1223 1
		minor=$(($port - 1))
d1226 2
a1227 2
		mknod ttyiA$name c $major $(($minor + 65536))
		mknod ttylA$name c $major $(($minor + 131072))
d1240 1
a1240 1
		minor=$(($port - 1))
d1242 2
a1243 2
		mknod cuaA$name c $major $(($minor + 128)) uucp:dialer
		mknod cuaiA$name c $major $(($minor + 128 + 65536)) \
d1245 1
a1245 1
		mknod cualA$name c $major $(($minor + 128 + 131072)) \
d1275 1
a1275 1
		minor=$(($card * 65536 + $minor))
d1278 2
a1279 2
		mknod ttyiD$name c $major $(($minor + 32))
		mknod ttylD$name c $major $(($minor + 64))
d1291 1
a1291 1
		minor=$(($card * 65536 + $minor))
d1293 3
a1295 3
		mknod cuaD$name c $major $(($minor + 128)) uucp:dialer
		mknod cuaiD$name c $major $(($minor + 32 + 128)) uucp:dialer
		mknod cualD$name c $major $(($minor + 64 + 128)) uucp:dialer
d1355 1
a1355 1
		moduleminor=$(($moduleminor % 10 * 16))
d1361 1
a1361 1
			minor=$(($card * 65536 + $minor + $moduleminor))
d1365 2
a1366 2
			mknod ttyiM$name c $major $(($minor + 64))
			mknod ttylM$name c $major $(($minor + 128))
d1380 1
a1380 1
		moduleminor=$(($moduleminor % 10 * 16))
d1386 1
a1386 1
			minor=$(($card * 65536 + $minor + $moduleminor))
d1389 1
a1389 1
			mknod cuaM$name c $major $(($minor + 262144)) \
d1391 1
a1391 1
			mknod cuaiM$name c $major $(($minor + 64 + 262144)) \
d1393 1
a1393 1
			mknod cualM$name c $major $(($minor + 128 + 262144)) \
d1486 1
a1486 1
	mknod mse$unit c $chr `unit2minor $(($unit * 2 + 1))`
d1493 1
a1493 1
	mknod psm$unit c $chr `unit2minor $(($unit * 2 + 1))`
d1543 3
a1545 3
	mknod mixer$unit	c $chr `unit2minor $(($unit * 16 + 0))`
	mknod sequencer$unit	c $chr `unit2minor $(($unit * 16 + 1))`
	mknod midi$unit		c $chr `unit2minor $(($unit * 16 + 2))`
d1549 1
a1549 1
		minor=$(($chn * 65536 + $unit * 16))
d1557 2
a1558 2
	mknod music$unit	c $chr `unit2minor $(($unit * 16 + 8))`
	mknod pss$unit		c $chr `unit2minor $(($unit * 16 + 9))`
d1602 2
a1603 2
	ttyy?)  unit=$(($unit \+ 16));;
	ttyz?)  unit=$(($unit \+ 32));;
d1638 2
a1639 2
	mknod tuner$unit c 92 `unit2minor $((16 + $unit))`
	mknod vbi$unit c 92 `unit2minor $((32 + $unit))`
d1701 1
a1701 1
				mknod $name$unit c 66 $(($offset + $unit))
d1706 1
a1706 1
				mknod $name$i c 66 $(($offset + $i))
d1750 1
a1750 1
	mknod i4bteld$unit c 56 `unit2minor $(($offset + $unit))`
@


1.243.2.39
log
@MFC: Remove "r" from ATAPI tape device names.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.38 2001/11/27 12:12:27 sheldonh Exp $
d855 4
a858 4
		mknod ast${unit} c $chr $(($unit * 8 + 0)) root:operator
		chmod 640 ast${unit}
		mknod nast${unit} c $chr $(($unit * 8 + 1)) root:operator
		chmod 640 nast${unit}
@


1.243.2.40
log
@MFC: Create {ad,da,...}s1[a-h].
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.39 2001/12/06 09:08:06 des Exp $
d657 1
a657 1
		for slicepartname in s0h s1h s2 s3 s4
@


1.243.2.41
log
@MFC: Add the 'ciss' driver, which supports the Compaq SmartRAID 5*
family of RAID controllers (5300, 532, 5i, etc.)

Approved by:	msmith
@
text
@d23 1
a23 1
# $FreeBSD$
a1777 5
	;;

ciss*)
	unit=`expr $i : 'ciss\(.*\)'`
	mknod ciss$unit c 166 `unit2minor $unit`
@


1.243.2.42
log
@MFC rev 1.318: support for nsmb* devices
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.41 2001/12/12 06:38:12 ps Exp $
a154 1
#	nsmb*	SMB/CIFS protocol interface
a336 1
	sh MAKEDEV nsmb0				# cdev, SMB/CIFS
a1801 5
	;;

nsmb*)
	unit=`expr $i : 'nsmb\(.*\)'`
	mknod nsmb$unit c 144 $unit
@


1.243.2.43
log
@MFC 1.320: Fix some stray characters left over from expr(1)-to-$(())
sweeps.

PR:		bin/33158
Submitted by:	Adrian Filipi-Martin <adrian@@ubergeeks.com>
Approved by:	re
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.42 2001/12/26 19:36:54 sheldonh Exp $
d1604 2
a1605 2
	ttyy?)  unit=$(($unit + 16));;
	ttyz?)  unit=$(($unit + 32));;
@


1.243.2.44
log
@MFC 1.322: Remove a mention of the worm(4) device that was missed when
it was removed from MAKEDEV in 1.171.

PR:		misc/35729
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.43 2002/01/01 00:33:21 cjc Exp $
d112 1
@


1.243.2.45
log
@MFC:    the entire ATA driver with all functionality as of 2002-03-18.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.44 2002/03/11 18:57:44 cjc Exp $
a304 1
	sh MAKEDEV ata					# cdev, ATA control
a849 3
ata)
	mknod ata c 159 0 root:operator
	;;
d917 1
a917 6
			case $name in 
			acd)
				ln -f ${dname}a ${dname}c;;
			*)
				mknod ${dname}c c $chr $(($i * 8 + 2)) root:operator;;
			esac
@


1.243.2.46
log
@MFC (MAKEDEV 1.323, sio.c 1.371: support more than 32 sio unit numbers).
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.45 2002/03/18 08:36:22 sos Exp $
d225 2
a226 2
	case $1 in
	[0-9]) m=$1;;
d1157 1
a1157 1
cua?|cuaa?|cuaa??)
d1159 5
a1163 16
	unit_low=`expr $i : 'cua.*\(.\)$'`
	case $i in
	cua?|cuaa?)
		unit_high=""
		m_high=0
		;;
	cuaa??)
		unit_high=`expr $i : 'cuaa\(.\).$'`
		m_high=`ttyminor $unit_high`
		;;
	esac
	unit=$unit_high$unit_low
	m=$(($m_high << 16 | `ttyminor $unit_low`))
	mknod cuaa$unit c 28 $(($m | 128)) uucp:dialer
	mknod cuaia$unit c 28 $(($m | 32 | 128)) uucp:dialer
	mknod cuala$unit c 28 $(($m | 64 | 128)) uucp:dialer
d1167 3
a1169 14
tty?|tty0?|ttyd?|ttyd??)
	unit_low=`expr $i : 'tty.*\(.\)$'`
	case $i in
	tty?|tty0?|ttyd?)
		unit_high=""
		m_high=0
		;;
	ttyd??)
		unit_high=`expr $i : 'ttyd\(.\).$'`
		m_high=`ttyminor $unit_high`
		;;
	esac
	unit=$unit_high$unit_low
	m=$(($m_high << 16 | `ttyminor $unit_low`))
d1171 2
a1172 2
	mknod ttyid$unit c 28 $(($m | 32))
	mknod ttyld$unit c 28 $(($m | 64))
@


1.243.2.47
log
@Add jogdial device to MAKEDEV.  This device node was left out of the fixit
section since I believe it is unnecessary for fixit floppies.  In any case,
this part was forgotten from the original MFC due to the fact that -CURRENT
uses make_dev() instead.  And so, obviously this is not an MFC since it
does not apply to -CURRENT.

Submitted by:	Yoshihiko SARUMARU <mistral@@imasy.or.jp>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.243.2.46 2002/04/08 10:19:17 bde Exp $
a62 1
#	jogdial	Sony VAIO Jogdial
d320 1
a320 1
	sh MAKEDEV mse0 psm0 jogdial sysmouse		# cdev, mouse
a1695 4
	;;

jogdial)
	mknod jogdial c 160 0
@


1.243.2.48
log
@MFC: Bring usb serial support into -stable.
@
text
@d23 1
a23 1
# $FreeBSD$
a101 1
#	ucom*	USB serial devices
d109 1
a1036 9
ucom*)
	umask 7
	unit=`expr $i : 'ucom\(.*\)'`
	minor=$(($unit + 128))
	minor=`unit2minor $(($unit + 128))`
	mknod ucom$unit c 138 $minor uucp:dialer
	umask 77
	;;

d1086 9
@


1.243.2.49
log
@Add pst device for Promise SuperTrak

Sponsored by: Advanis
@
text
@a33 1
#	ast*	ATAPI tape drives
a40 2
#	ad*	ATA disks
#	afd*	ATAPI floppy disks
a51 1
#	pst*	Promise SuperTrak RAID disks
d54 2
d445 1
a445 1
aacd*s*|ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|pst*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
a457 1
	pst*s*) name=pst; chr=168;;
d469 1
a469 1
	afd*s*|fla*s*|pst*s*|wfd*s*)
d629 1
a629 1
aacd*|ad*|ar*|afd*|amrd*|da*|fla*|idad*|md*|mlxd*|pst*|twed*|vn*|wd*|wfd*)
a641 1
	pst*) name=pst; chr=168;;
d651 1
a651 1
	afd*|fla*|pst*|wfd*)
@


1.243.2.50
log
@MFC: 1.326,1.327; permit the creation of just cd0 if desired, and
remove unnecessary sanity checks.

Approved by:	re (jhb)
@
text
@d883 2
a884 2
	if [ -z "${units}" ]; then
		units=0
d886 1
a886 1
	if [ -z "${tracks}" ]; then
d917 2
a918 2
	if [ -z "${units}" ]; then
		units=0
@


1.243.2.51
log
@MFC: elan-mmcr device

Approved by:	re (jhb)
@
text
@a154 1
#	elan-mmcr	AMD Elan support (e.g. mmap MMCR)
a1764 5
	;;

elan*)
	mknod elan-mmcr c 100 0	# XXX local major
	chmod 600 elan-mmcr
@


1.243.2.52
log
@sigh, fix last commit; don't touch code and talk to lawyers at the same time
@
text
@a1765 2
	mknod ipstate c 79 2
	mknod ipauth c 79 3
d1771 2
@


1.243.2.53
log
@"<matcd>  Help! Help, scottl is trying to *BANG* *BANG* *BANG*"
"<CVS>    Hello?  Hello?  Are you still there?"

Approved by:	re (rwatson)
@
text
@d50 1
d316 1
a316 1
	sh MAKEDEV cd0 mcd0 scd0			# bdev, cdrom
d940 30
@


1.243.2.54
log
@MFC: remove mis-used "unit" variable.
@
text
@d1000 2
a1001 2
	mknod usb c 108 255 root:operator
	chmod 0660 usb
@


1.243.2.55
log
@MFC: crypto device
@
text
@a133 1
#	crypto	crypto interface
a341 1
	sh MAKEDEV crypto				# cdev, crypto
a1150 5
	;;

crypto)
	mknod crypto c 70 0 root:operator
	chmod 666 crypto
@


1.243.2.56
log
@MFC: Introduce FireWire userland utility.
- Install header files.
- Make device nodes.
- Add CSR related macros.
@
text
@a1159 12
fwmem*)
	unit=`expr $i : 'fwmem\(.*\)'`
	mknod fwmem$unit c 127 $((1<<24 | $unit)) root:operator
	chmod 660 fwmem$unit
	;;

fw*)
	unit=`expr $i : 'fw\(.*\)'`
	mknod fw$unit c 127 $unit root:operator
	chmod 660 fw$unit
	;;

@


1.243.2.57
log
@Add firewire devices in 'all' entry.
@
text
@a343 1
	sh MAKEDEV fw0 fw1 fw2 fw3 fwmem0		# cdev, firewire
@


1.243.2.58
log
@Make the ucom0 device in 'MAKEDEV all' for consistency with all the other
flavours of USB device.

Submitted by:	Yoshihiko Sarumaru <mistral@@imasy.or.jp>
PR:		conf/48326
@
text
@d331 1
a331 1
	sh MAKEDEV urio0 uscanner0 umodem0 ucom0	# cdev, USB devices too
@


1.243.2.59
log
@MFC: merge ufm entry from current now moribund MAKEDEV file.

PR: 46413
@
text
@a1022 7
ufm*)
	umask 7
	unit=`expr $i : 'ufm\(.*\)'`
	mknod ufm$unit c 200 `unit2minor $unit` root:operator
	umask 77
	;;

@


1.243.2.60
log
@Sync with -current:
- Improve DMA channel allocation
- Some workarounds to detect memory map failure.
- Change device name convention.
- Disable T_RBC faking (sbp)
@
text
@d344 1
a344 1
	sh MAKEDEV fw0					# cdev, firewire
d1168 10
a1177 12
fw?)
	unit=`expr $i : 'fw\(.\)$'`
	for sub in 0 1 2 3
	do
		minor=$(($unit << 16 | $sub))
		mknod fw$unit.$sub c 127 $minor root:operator
		chmod 660 fw$unit.$sub
		mknod fwmem$unit.$sub c 127 $((1<<24 | $minor)) root:operator
		chmod 660 fwmem$unit.$sub
	done
	ln -sf fw$unit.0 fw$unit
	ln -sf fwmem$unit.0 fwmem$unit
@


1.243.2.61
log
@Add dcons.
@
text
@a344 1
	sh MAKEDEV dcons				# cdev, dcons
a1179 5
	;;

dcons)
	mknod dcons c 184 0 root:wheel
	chmod 600 dcons
@


1.243.2.62
log
@Add /usr/bin to PATH for the case when MAKEDEVPATH is empty
in order to find printf which is used several times.
@
text
@d164 1
a164 1
	PATH=/sbin:/bin:/usr/bin
@


1.243.2.63
log
@Backout previous commit. On RELENG_4 we have printf as a shell builtin
(not so in HEAD). If you want to build/install RELENG_4 on HEAD, you
have to set MAKEDEVPATH to include /usr/bin (at least as long HEAD's
/bin/sh has no printf builtin).

Explained by:	bde
@
text
@d164 1
a164 1
	PATH=/sbin:/bin
@


1.243.2.64
log
@1. Add making all Cronyx-Sigma devices (cx?, cuax?, cuay?, cuaz?, ttyx?, ttyy?
   ttyz?)
2. Remove old control device /dev/cronyx in favour of /dev/cx? (it is safe to
   do it befor rm cxconfig, cause it is not linked to system build process.)

Approved by:	imp (mentor)
@
text
@a82 6
#	ttyx*	Cronyx/Sigma serial ports (dialout)
#	ttyy*	Cronyx/Sigma serial ports (dialout)
#	ttyz*	Cronyx/Sigma serial ports (dialout)
#	cuax*	Cronyx/Sigma serial ports (dialin)
#	cuay*	Cronyx/Sigma serial ports (dialin)
#	cuaz*	Cronyx/Sigma serial ports (dialin)
a158 1
#	cx*	Control devices for Cronyx/Sigma adapters
a345 1
	sh MAKEDEV cx ttyx ttyy ttyz cuax cuay cuaz	# cdev, Cronyx/Sigma
a1142 5
cuax|cuay|cuaz)
	sh MAKEDEV ${i}0 ${i}1 ${i}2 ${i}3 ${i}4 ${i}5 ${i}6 ${i}7
	sh MAKEDEV ${i}8 ${i}9 ${i}a ${i}b ${i}c ${i}d ${i}e ${i}f
	;;

a1187 5
ttyx|ttyy|ttyz)
	sh MAKEDEV ${i}0 ${i}1 ${i}2 ${i}3 ${i}4 ${i}5 ${i}6 ${i}7
	sh MAKEDEV ${i}8 ${i}9 ${i}a ${i}b ${i}c ${i}d ${i}e ${i}f
	;;
	
a1635 31
cx*)
	unit=`expr $i : 'c.\(.*\)'`
	if [ ! $unit ]; then
		unit=0
		while [ $unit -lt 48 ]
		do
			mknod /dev/${i}${unit} c 42 $(($unit + 64))
			chmod 644 /dev/${i}${unit}
			unit=$(($unit + 1))
		done
	else 
			mknod /dev/${i} c 42 $(($unit + 64))
			chmod 644 /dev/${i}
	fi
	;;
	
cuax?|cuay?|cuaz?)
	case $i in
	*0) unit=0;;	*1) unit=1;;	*2) unit=2;;	*3) unit=3;;
	*4) unit=4;;	*5) unit=5;;	*6) unit=6;;	*7) unit=7;;
	*8) unit=8;;	*9) unit=9;;	*a) unit=10;;	*b) unit=11;;
	*c) unit=12;;	*d) unit=13;;	*e) unit=14;;	*f) unit=15;;
	esac
	case $i in
	cuax?)  unit=$(($unit + 128));;
	cuay?)  unit=$(($unit + 144));;
	cuaz?)  unit=$(($unit + 160));;
	esac
	mknod $i c 42 $unit
	;;

d1648 4
@


1.243.2.65
log
@Unbreak MAKEDEV all (MAKEDEV cx)

Pointed by:	nyan
@
text
@d1660 2
a1661 2
			mknod ${i}${unit} c 42 $(($unit + 64))
			chmod 644 ${i}${unit}
d1665 2
a1666 2
			mknod ${i} c 42 $(($unit + 64))
			chmod 644 ${i}
@


1.243.2.66
log
@umodem driver is no longer used /dev/umodem* device node.
Now it's used /dev/ucom* device node.
@
text
@d109 1
a109 1
#	ucom*	USB serial and modem devices
d113 1
d338 1
a338 1
	sh MAKEDEV urio0 uscanner0 ucom0		# cdev, USB devices too
d1095 7
@


1.243.2.67
log
@MFC: Add ct control devices for Cronyx Tau.
@
text
@a163 1
#	ct*	Control devices for Cronyx/Tau adapters
a351 1
	sh MAKEDEV ct					# cdev, Cronyx/Tau
a1645 16
ct*)
	unit=`expr $i : 'c.\(.*\)'`
	if [ ! $unit ]; then
		unit=0
		while [ $unit -lt 6 ]
		do
			mknod ${i}${unit} c 99 $unit
			chmod 644 ${i}${unit}
			unit=$(($unit + 1))
		done
	else 
			mknod ${i} c 99 $unit
			chmod 644 ${i}
	fi
	;;
	
@


1.243.2.68
log
@MFC:	Add cp(4) driver for Cronyx Tau-PCI adapters.
Requested by:	Cronyx users.
@
text
@a163 1
#	cp*	Control devices for Cronyx/Tau-PCI adapters
a352 1
	sh MAKEDEV cp					# cdev, Cronyx/Tau-PCI
a1647 16
cp*)
	unit=`expr $i : 'c.\(.*\)'`
	if [ ! $unit ]; then
		unit=0
		while [ $unit -lt 20 ]
		do
			mknod ${i}${unit} c 134 $unit
			chmod 644 ${i}${unit}
			unit=$(($unit + 1))
		done
	else 
			mknod ${i} c 134 $unit
			chmod 644 ${i}
	fi
	;;
	
@


1.243.2.69
log
@Added the pbio(4) 8255 parallel peripheral interface basic I/O driver.
The driver is designed for performing I/O under program control using
peripherals such as the Advantech PCL-724 card, which emulates the Intel
8255A PPI in mode 0.  Other 8255A-based peripherals such as the BMC
Messsysteme PIO24II card have also been reported to work.

PR:	i386/46238
Approved by:	re (kensmith)
@
text
@a142 1
#	pbio*	8255 PPI (e.g. Advantech PCL-724)
a1930 8
	;;

pbio*)
	unit=`expr $i : 'pbio\(.*\)'`
	mknod pbio${unit}a c 188 $(($unit * 4 + 0)) root:operator
	mknod pbio${unit}b c 188 $(($unit * 4 + 1)) root:operator
	mknod pbio${unit}ch c 188 $(($unit * 4 + 2)) root:operator
	mknod pbio${unit}cl c 188 $(($unit * 4 + 3)) root:operator
@


1.243.2.69.2.1
log
@Merge the ips driver bits.  Tags were slid on the files that were added to
the RELENG_4 branch.  This commit covers the files that existed and were
merely changed.

Approved by: re
@
text
@d463 1
a463 1
aacd*s*|ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|ipsd*s*|md*s*|mlxd*s*|pst*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
a473 1
	ipsd*s*) name=ipsd; chr=176;;
d483 1
a483 1
	aacd*s*|amrd*s*|idad*s*|ips*s*|mlxd*s*|twed*s*)
d648 1
a648 1
aacd*|ad*|ar*|afd*|amrd*|da*|fla*|idad*|ips*|md*|mlxd*|pst*|twed*|vn*|wd*|wfd*)
a658 1
	ipsd*) name=ipsd; char=176;;
d668 1
a668 1
	aacd*|amrd*|idad*|ipsd*|mlxd*|twed*)
a1894 5
ips*)
	unit=`expr $i : 'ips\(.*\)'`
	mknod ips$unit c 175 `unit2minor $unit`
	;;

@


1.243.2.70
log
@Add the ips and ipsd device nodes.
@
text
@d463 1
a463 1
aacd*s*|ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|ipsd*s*|md*s*|mlxd*s*|pst*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
a473 1
	ipsd*s*) name=ipsd; chr=176;;
d483 1
a483 1
	aacd*s*|amrd*s*|idad*s*|ips*s*|mlxd*s*|twed*s*)
d648 1
a648 1
aacd*|ad*|ar*|afd*|amrd*|da*|fla*|idad*|ips*|md*|mlxd*|pst*|twed*|vn*|wd*|wfd*)
a658 1
	ipsd*) name=ipsd; char=176;;
d668 1
a668 1
	aacd*|amrd*|idad*|ipsd*|mlxd*|twed*)
a1894 5
ips*)
	unit=`expr $i : 'ips\(.*\)'`
	mknod ips$unit c 175 `unit2minor $unit`
	;;

@


1.243.2.71
log
@(direct commit, since MAKEDEV is gone in HEAD and RELENG_5):

Create the twa devices that communicate with the twa driver.
@
text
@a55 1
#	twa*	3ware 9000 series RAID controller
a1920 5
twa*)
	unit=`expr $i : 'twa\(.*\)'`
	mknod twa$unit c 187 `unit2minor $unit`
	;;

@


1.243.2.72
log
@MFC:
	Add support for Cronyx Tau32-PCI adapters.
	Connect to the system.
@
text
@a168 1
#	ce*	Control devices for Cronyx/Tau32-PCI adapters
a358 1
	sh MAKEDEV ce					# cdev, Cronyx/Tau32-PCI
a1653 16
ce*)
	unit=`expr $i : 'c.\(.*\)'`
	if [ ! $unit ]; then
		unit=0
		while [ $unit -lt 128 ]
		do
			mknod ${i}${unit} c 185 $unit
			chmod 644 ${i}${unit}
			unit=$(($unit + 1))
		done
	else 
			mknod ${i} c 185 $unit
			chmod 644 ${i}
	fi
	;;
	
@


1.243.2.73
log
@Add support for making mfi and mfid devices.
@
text
@a51 2
#	mfi*	MegaSAS RAID controllers
#	mfid*	MegaSAS RAID disk volumes
d466 1
a466 1
aacd*s*|ad*s*|ar*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|ipsd*s*|md*s*|mfid*s*|mlxd*s*|pst*s*|twed*s*|vn*s*|wd*s*|wfd*s*)
a478 1
	mfid*s*) name=mfid; chr=178;;
d487 1
a487 1
	aacd*s*|amrd*s*|idad*s*|ips*s*|mfid*s*|mlxd*s*|twed*s*)
d652 1
a652 1
aacd*|ad*|ar*|afd*|amrd*|da*|fla*|idad*|ips*|md*|mfid*|mlxd*|pst*|twed*|vn*|wd*|wfd*)
a664 1
	mfid*) name=mfid; chr=178;;
d673 1
a673 1
	aacd*|amrd*|idad*|ipsd*|mfid*|mlxd*|twed*)
a1920 5
mfi*)
	unit=`expr $i : 'mfi\(.*\)'`
	mknod mfi$unit c 177 `unit2minor $unit`
	;;

@


1.243.2.74
log
@Switch importer
@
text
@d23 1
a23 1
# $FreeBSD: stable/4/etc/MAKEDEV 164729 2006-11-28 21:59:47Z jhb $
@


1.242
log
@Modify MAKEDEV to create four bpf devices instead of one when doing a
MAKEDEV all, making DHCP on multiple interfaces happier, and allowing use
of tcpdump to to debug DHCP, without creating more devices.
(we need devfs)

Modify MAKEDEV to create four tun devices in MAKEDEV all as well, since
we're being gratuitous with network pseudo-devices.
(we need devfs)

Approved by:	The Hubbard
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.241 2000/02/12 21:16:01 n_hibma Exp $
d44 1
a44 1
#	ida*	Compaq Smart-2 RAID
d363 1
a363 1
ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|ida*s*|md*s*|mlxd*s*|vn*s*|wd*s*|wfd*s*)
d371 1
a371 1
	ida*s*) name=ida; chr=109;;
d379 1
a379 1
	amrd*s*|mlxd*s*)
d384 1
a384 1
	afd*s*|fla*s*|ida*s*|wfd*s*)
d554 1
a554 1
ad*|afd*|amrd*|da*|fla*|ida*|md*|mlxd*|vn*|wd*|wfd*)
d562 1
a562 1
	ida*) name=ida; chr=109;;
d570 1
a570 1
	amrd*|mlxd*)
d573 1
a573 1
	afd*|fla*|ida*|wfd*)
@


1.241
log
@Add the uhid device.

Approved by:   jhk
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.240 2000/02/09 22:08:12 rwatson Exp $
d252 2
a253 1
	sh MAKEDEV bpf0 ipl tun0			# cdev, network
@


1.240
log
@Remove /dev/console from the jail /dev environment.  It's probably not
strictly a security hole, but neither is it a very good idea.  Replace
it with a symlink to /dev/null to happify programs that expect it.

It is suggested that users of the jail environment modify the jail's
syslog.conf to not send stuff to /dev/console, but instead syslog
it somewhere else.  Such as a loghost, potentially even to the host
environment's syslog.

Approved by:	jkh
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.239 2000/01/29 10:32:49 bde Exp $
d92 1
d251 1
a251 1
	sh MAKEDEV usb usb0 ums0 ulpt0 ugen0		# cdev, USB devices
d909 5
@


1.239
log
@Fixed chgrp lossage in rev.1.233.  Most floppy devices and all slices for disk
devices because accessible by group wheel instead of group operator.

Didn't fix fishy group for rsa*.ctl.  This device should have group operator
if that is safe, or mode 600 and group wheel.

Removed ssc and uk*.

Removed bogus (redundant) chmod's to 600.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.238 2000/01/23 11:40:10 n_hibma Exp $
d322 1
a322 1
	rm mem kmem pci io klog		# for security
d325 1
@


1.238
log
@Add the unlpt\d+ device to MAKEDEV. It is the same as ulpt\d+, except
that it does not reset the printer when opened. This fixes the problem
of printing a document almost till the end and then resetting the
printer when the next print job is started.

Submitted by:   Christopher Masto <chris@@netmonger.net>

Also, remove all but the ums0 device from the fixit target 'to save
precious i-nodes on the fixit floppy'.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.237 2000/01/21 09:42:20 n_hibma Exp $
a97 1
#	ssc	The ``super scsi'' device
d400 2
a401 2
			mknod  $name$unit$slicename c $chr $minor
			mknod r$name$unit$slicename c $chr $minor
d442 2
a443 2
		mknod ${name}${unit}   c $chr `expr $unit '*' 64`
		mknod r${name}${unit}  c $chr `expr $unit '*' 64`
d452 4
a455 2
		mknod ${name}${unit}.1720  c $chr `expr $unit '*' 64 + 1`
		mknod r${name}${unit}.1720 c $chr `expr $unit '*' 64 + 1`
d459 4
a462 2
		mknod ${name}${unit}.1480  c $chr `expr $unit '*' 64 + 2`
		mknod r${name}${unit}.1480 c $chr `expr $unit '*' 64 + 2`
d468 4
a471 2
		mknod ${name}${unit}.1440  c $chr `expr $unit '*' 64 + 3`
		mknod r${name}${unit}.1440 c $chr `expr $unit '*' 64 + 3`
d479 4
a482 2
		mknod ${name}${unit}.1200  c $chr `expr $unit '*' 64 + 4`
		mknod r${name}${unit}.1200 c $chr `expr $unit '*' 64 + 4`
d490 4
a493 2
		mknod ${name}${unit}.820  c $chr `expr $unit '*' 64 + 5`
		mknod r${name}${unit}.820 c $chr `expr $unit '*' 64 + 5`
d499 4
a502 2
		mknod ${name}${unit}.800  c $chr `expr $unit '*' 64 + 6`
		mknod r${name}${unit}.800 c $chr `expr $unit '*' 64 + 6`
d508 4
a511 2
		mknod ${name}${unit}.720  c $chr `expr $unit '*' 64 + 7`
		mknod r${name}${unit}.720 c $chr `expr $unit '*' 64 + 7`
d517 4
a520 2
		mknod ${name}${unit}.360  c $chr `expr $unit '*' 64 + 8`
		mknod r${name}${unit}.360 c $chr `expr $unit '*' 64 + 8`
d526 4
a529 2
		mknod ${name}${unit}.640  c $chr `expr $unit '*' 64 + 9`
		mknod r${name}${unit}.640 c $chr `expr $unit '*' 64 + 9`
a612 4
ssc*)
	mknod ssc c 49 0
	;;

d668 1
a668 1
pass*|uk*)
a1480 1
	chmod 600 ipl
a1481 1
	chmod 600 ipnat
a1482 1
	chmod 600 ipstate
a1483 1
	chmod 600 ipauth
a1493 1
	chmod 600 i4b
a1497 1
	chmod 600 i4bctl
a1502 1
	chmod 600 i4brbch$unit
a1508 1
	chmod 600 i4bteld$unit
a1513 1
	chmod 600 i4btel$unit
a1518 1
	chmod 600 i4btrc$unit
a1523 1
	chmod 600 mlx$unit
@


1.237
log
@Group of usb and usb\d+ is now operator and permissions are 0660.

Might need to be revisted to make it 0640 and limit the access to usb
and usb\d+ (in sys/dev/usb/usb.c) to 'retrieve info' only for operator.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.236 2000/01/19 18:16:24 jkh Exp $
d284 1
a284 1
	sh MAKEDEV usb usb0 ums0 ulpt0 ugen0		# cdev, USB devices
d903 4
a906 1
	mknod ulpt$unit c 113 $unit
@


1.236
log
@Add device entries for new parallel port radio clock driver.

We were supposed to get these in far earlier and didn't, hence
the commit after feature freeze.  A promise is a promise. :)

Submitted by:	Sascha Schumann <sascha@@schumann.cx>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.235 2000/01/15 21:04:13 mjacob Exp $
d886 2
a887 1
	mknod usb$unit c 108 255
d892 2
a893 1
	mknod usb$unit c 108 $unit
@


1.235
log
@add SES driver
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.234 2000/01/13 20:27:22 guido Exp $
d84 1
d868 5
@


1.234
log
@Readd ipfilter devices

PR:		16093
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.233 2000/01/07 16:20:25 obrien Exp $
d101 2
d611 11
@


1.233
log
@Remove usage of chgrp(1) and wrap long lines.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.232 2000/01/06 17:51:48 obrien Exp $
d134 1
d249 1
a249 1
	sh MAKEDEV bpf0 tun0				# cdev, network
d1440 11
@


1.232
log
@The previous commit closes

PR:		14300
Submitted by:	Chris Emerson <cemerson+freebsd@@chiark.greenend.org.uk>
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.231 2000/01/06 10:56:46 msmith Exp $
d182 1
a182 1
	case $# in 
d292 14
a305 14
	mknod console	c 0 0;	chmod 600 console
	mknod kmem	c 2 1;	chmod 640 kmem;		chgrp kmem kmem
	mknod mem	c 2 0;	chmod 640 mem;		chgrp kmem mem
	mknod null	c 2 2;	chmod 666 null
	mknod random	c 2 3;	chmod 644 random
	mknod urandom	c 2 4;	chmod 644 urandom
	mknod zero	c 2 12;	chmod 666 zero
	mknod io	c 2 14;	chmod 600 io
	mknod tty	c 1 0;	chmod 666 tty
	mknod klog	c 7 0;	chmod 600 klog
	mknod stdin	c 22 0; chmod 666 stdin
	mknod stdout	c 22 1; chmod 666 stdout
	mknod stderr	c 22 2; chmod 666 stderr
	mknod pci	c 78 0; chmod 644 pci
d337 16
a352 15
	mknod rwt${u}   c 10 `expr  0 + $u`	# default density, 512b blocks
	mknod nrwt${u}  c 10 `expr  4 + $u`
#	mknod rWt${u}   c 10 `expr 64 + $u`	# default density, 1024b blocks
#	mknod nrWt${u}  c 10 `expr 68 + $u`
	mknod rwt${u}b  c 10 `expr 16 + $u`	# 60 megabytes
	mknod nrwt${u}b c 10 `expr 20 + $u`
	mknod rwt${u}c  c 10 `expr 24 + $u`	# 120 megabytes
	mknod nrwt${u}c c 10 `expr 28 + $u`
	mknod rwt${u}d  c 10 `expr 32 + $u`	# 150 megabytes
	mknod nrwt${u}d c 10 `expr 36 + $u`
#	mknod rwt${u}e  c 10 `expr 40 + $u`	# 300 megabytes?
#	mknod nrwt${u}e c 10 `expr 44 + $u`
#	mknod rwt${u}f  c 10 `expr 48 + $u`	# 600 megabytes?
#	mknod nrwt${u}f c 10 `expr 52 + $u`
	chgrp operator r[Ww]t$u nr[Ww]t$u r[Ww]t$u[a-f] nr[Ww]t$u[a-f]
d409 1
a409 1
					      c $chr $minor
d411 1
a411 1
					      c $chr $minor
a419 2
			chgrp operator $name$unit$slicename* \
				      r$name$unit$slicename*
d514 4
a517 2
		mknod ${name}${unit}.1232  c $chr `expr $unit '*' 64 + 10`
		mknod r${name}${unit}.1232 c $chr `expr $unit '*' 64 + 10`
a521 2

		chgrp operator ${name}${unit}* r${name}${unit}*
d581 2
a582 2
			mknod  $name$unit$partname c $chr $minor
			mknod r$name$unit$partname c $chr $minor
a583 1
		chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
d698 6
a703 5
			mknod rsa${unit}.${m} c $chr `saminor 0 ${unit} ${m} 0`
			mknod nrsa${unit}.${m} c $chr `saminor 0 ${unit} ${m} 1`
			mknod ersa${unit}.${m} c $chr `saminor 0 ${unit} ${m} 2`
			chgrp operator rsa${unit}.${m} nrsa${unit}.${m} \
				ersa${unit}.${m}
d724 1
a724 2
		mknod ${name}${unit}	c $chr $unit
		chgrp operator ${name}${unit}
d739 1
a739 2
		mknod rast${unit} c $chr `expr $unit '*' 8 + 0`
		chgrp operator rast${unit}
d741 1
a741 2
		mknod nrast${unit} c $chr `expr $unit '*' 8 + 1`
		chgrp operator nrast${unit}
d786 8
a793 5
		mknod ${name}${unit}a	c $chr `expr $unit '*' 8 + 0`
		mknod ${name}${unit}c   c $chr `expr $unit '*' 8 + 2`
		mknod r${name}${unit}a	c $chr `expr $unit '*' 8 + 0`
		mknod r${name}${unit}c  c $chr `expr $unit '*' 8 + 2`
		chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
d796 8
a803 5
		mknod ${name}${unit}la  c $chr `expr $unit '*' 8 + 128`
		mknod ${name}${unit}lc  c $chr `expr $unit '*' 8 + 130`
		mknod r${name}${unit}la c $chr `expr $unit '*' 8 + 128`
		mknod r${name}${unit}lc c $chr `expr $unit '*' 8 + 130`
		chgrp operator ${name}${unit}l[a-h] r${name}${unit}l[a-h]
d819 4
a822 5
		mknod wcd${unit}a  c $chr `expr $unit '*' 8 + 0`
		mknod rwcd${unit}a c $chr `expr $unit '*' 8 + 0`
		mknod wcd${unit}c  c $chr `expr $unit '*' 8 + 2`
		mknod rwcd${unit}c c $chr `expr $unit '*' 8 + 2`
		chgrp operator wcd${unit}[a-h] rwcd${unit}[a-h]
d838 1
a838 2
		mknod rwst${unit} c $chr `expr $unit '*' 8 + 0`
		chgrp operator rwst${unit}
d911 1
a911 2
	mknod tw$unit c 19 $unit
	chgrp operator tw$unit
d1037 4
a1040 2
		mknod cuaiA$name c $major `expr $minor + 128 + 65536` uucp:dialer
		mknod cualA$name c $major `expr $minor + 128 + 131072` uucp:dialer
d1129 6
a1134 3
			mknod cuaM$name c $major `expr $minor + 262144` uucp:dialer
			mknod cuaiM$name c $major `expr $minor + 64 + 262144` uucp:dialer
			mknod cualM$name c $major `expr $minor + 128 + 262144` uucp:dialer
d1208 4
a1211 2
		   mknod /dev/cualR$Rnum c $major $(($MINOR + 128 + 32)) uucp:dialer
		   mknod /dev/cuaiR$Rnum c $major $(($MINOR + 128 + 64)) uucp:dialer
d1307 1
a1307 2
	mknod apm c 39 0
	chgrp operator apm
d1312 1
a1312 2
	mknod apmctl c 39 8
	chgrp operator apmctl
d1342 2
a1343 3
	mknod joy0 c 51 0
	mknod joy1 c 51 1
	chgrp operator joy0 joy1
d1437 1
a1437 2
	mknod perfmon c 2 32
	chgrp kmem perfmon
@


1.231
log
@Now that chown is no longer available, we shouldn't try to use it.

Improve the internal mknod() to understand being passed an (optional)
user:group specification.

Don't apply root:wheel to nodes explicitly anywhere, it's the default.

Remove an odd looking uucp:wheel assignment, as it's inconsistent with
all the other tty?? devices.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.230 1999/12/29 01:11:29 msmith Exp $
@


1.230
log
@Add support for building the 'mlx?' devices, which will be used by the
upcoming 'mlxcontrol' utility.
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.229 1999/12/28 07:38:38 kato Exp $
d182 5
a186 2
	/sbin/mknod "$@@" || die 2 "/sbin/mknod $@@ failed"
	chown root:wheel "$1" || exit 1
a312 1
	chown -R root:wheel fd
d636 1
a636 2
		mknod $dname c $chr $i
		chown root:operator $dname
d654 1
a654 2
		mknod $dname c $chr $i
		chown root:operator $dname
d771 4
a774 5
			mknod ${dname}a c $chr $(($i * 8))
			mknod ${dname}c c $chr $(($i * 8 + 2))
			mknod r${dname}a c $chr $(($i * 8))
			mknod r${dname}c c $chr $(($i * 8 + 2))
			chown root:operator ${dname}* r${dname}*
d946 3
a948 4
	mknod cuaa$unit c 28 `expr $m + 128`
	mknod cuaia$unit c 28 `expr $m + 32 + 128`
	mknod cuala$unit c 28 `expr $m + 64 + 128`
	chown uucp:dialer cua*a$unit
d971 3
a973 4
		mknod cuac$name c $major `expr $minor + 128`
		mknod cuaic$name c $major `expr $minor + 32 + 128`
		mknod cualc$name c $major `expr $minor + 64 + 128`
		chown uucp:dialer cuac$name cuaic$name cualc$name
d1000 1
a1000 2
	mknod cuam$unit c 63 `expr $m + 128`
	chown uucp:dialer cuam$unit
d1037 3
a1039 4
		mknod cuaA$name c $major `expr $minor + 128`
		mknod cuaiA$name c $major `expr $minor + 128 + 65536`
		mknod cualA$name c $major `expr $minor + 128 + 131072`
		chown uucp:dialer cuaA$name cuaiA$name cualA$name
d1079 3
a1081 4
		mknod cuaD$name c $major `expr $minor + 128`
		mknod cuaiD$name c $major `expr $minor + 32 + 128`
		mknod cualD$name c $major `expr $minor + 64 + 128`
		chown uucp:dialer cua*D$name
a1105 1
			chown root:wheel tty*M$name
d1128 3
a1130 4
			mknod cuaM$name c $major `expr $minor + 262144`
			mknod cuaiM$name c $major `expr $minor + 64 + 262144`
			mknod cualM$name c $major `expr $minor + 128 + 262144`
			chown uucp:dialer cua*M$name
d1203 3
a1205 3
		   mknod /dev/cuaR$Rnum c  $major $(($MINOR + 128))
		   mknod /dev/cualR$Rnum c $major $(($MINOR + 128 + 32))
		   mknod /dev/cuaiR$Rnum c $major $(($MINOR + 128 + 64))
a1213 1
	chown uucp:dialer /dev/cuaR*
a1330 1
	chown uucp:wheel $i
d1373 1
a1373 2
		mknod tun$unit c 52 $unit
		chown uucp:dialer tun$unit
a1446 1
	chown root:wheel i4b
a1451 1
	chown root:wheel i4bctl
a1457 1
	chown root:wheel i4brbch$unit
a1464 1
	chown root:wheel i4bteld$unit
a1470 1
	chown root:wheel i4btel$unit
a1476 1
	chown root:wheel i4btrc$unit
a1482 1
	chown root:wheel mlx$unit
@


1.229
log
@Added following modes:
 5in     HD 2 heads, 77 cylinders, 8 sectors/track, 1024 bytes/sector
 5/3.5in DD 2 heads, 80 cylinders, 8 sectors/track, 512 bytes/sector

Meanings of the rogrammer-readeble fd name were explained by Brian
Fundakowski Feldman and Peter Wemm in hackers list and NOKUBI
Hirotaka.

Reviewed by:	nyan
@
text
@d23 1
a23 1
# $FreeBSD: src/etc/MAKEDEV,v 1.228 1999/12/26 15:24:58 bde Exp $
d48 2
a49 1
#	mlxd*   Mylex DAC960 RAID
d1495 7
@


1.228
log
@Moved $FreeBSD$ to its usual place after the CSRG id.

Fixed some style bugs for cam (superflous umask and missing newline).

Fixed bogons for apm.  The pattern "apm*" matched too many things; apm
and apmctl were both made twice by `MAKEDEV all'.  Hopefully no one
depends on `MAKEDEV apm0' making apm or on `MAKEDEV apm' making apmctl.
@
text
@d23 1
a23 1
# $FreeBSD$
d504 14
@


1.227
log
@Remove all vestiges of /usr programs (awk, sed, grep...) from MAKEDEV.
MAKEDEV can now run (with /sbin/chown and /bin/chgrp, still) without
any /usr.  The default PATH for MAKEDEV is now "/sbin:/bin" to prevent
against further spammage of /usr programs in MAKEDEV.  In the event
of an emergency, the variable "MAKEDEVPATH" can be used to replace
PATH, but I don't know what that emergency could be.
   Let me know if you have any problems.  I've tested it as well as
I could, which basically means everything except for RocketPorts.

Reviewed in principle by:	peter
@
text
@d23 1
a134 2
# $FreeBSD: src/etc/MAKEDEV,v 1.226 1999/12/14 22:36:03 joerg Exp $
#
a607 1
	umask 077
d624 1
a626 1
	umask 077
d1294 2
a1295 4
apm*)
	chr=39
	mknod apm c $chr 0
	mknod apmctl c $chr 8
d1297 5
a1302 1
	chmod 660 apm
@


1.226
log
@The target `all' evoluted into a kitchen-sink these days...  It's no
longer really suitable as a default to create the various /dev nodes
to be contained on the fixit floppy, since all our proud new devide
nodes finally made the fixit floppy run over...

So instead create a new target titled `fixit' which creates just the
dev nodes for a single unit per each default driver; whoever needs
more of them is free to create whatever he needs, perhaps after
killing unused nodes before.  There were more than 700 /dev nodes on
the floppy before that action, and it's still around 350 now.  I doubt
all the various /dev/ugen* entries are really useful on such a tool,
so people, please check, and if you feel like more could be eliminated
from that floppy, kill'em.

While i was at it, removed traces of ft(8) that still survived even
though the driver has long since been dead.

That's step #1.  #2 will follow...
@
text
@d134 1
a134 1
# $FreeBSD: src/etc/MAKEDEV,v 1.225 1999/11/27 21:17:02 msmith Exp $
d137 5
a141 1
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
d304 6
a309 3
	(cd fd && eval `echo "" | awk ' BEGIN { \
		for (i = 0; i < 64; i++) \
			printf("mknod %d c 22 %d;", i, i)}'`)
d617 8
a624 7
	eval `echo ${chr} ${units} ${name} |awk \
		'{ c=$1; n=$2; name=$3;} END {
		for (i = 0; i < n; i++)
			printf("rm -f %s%d r%s%d; mknod %s%d c %d %d; \
				chgrp operator %s%d;", \
				name, i, name, i, name, i, c, i, \
				name, i); }'`
d636 8
a643 7
	eval `echo ${chr} ${units} ${name} |awk \
		'{ c=$1; n=$2; name=$3;} END {
		for (i = 0; i < n; i++)
			printf("rm -f %s%d r%s%d; mknod %s%d c %d %d; \
				chgrp operator %s%d;", \
				name, i, name, i, name, i, c, i, \
				name, i); }'`
d660 1
d663 9
a671 11
		umask 0
		eval `echo $offset $name | awk ' { b=0+$1; n=$2 } END { \
			for (i = 0; i < 32; i++) {
				c = substr("0123456789abcdefghijklmnopqrstuv", i + 1, 1); \
				printf("mknod tty%s%s c 5 %d; \
					mknod pty%s%s c 6 %d;", \
					n, c, b+i, \
					n, c, b+i); \
			} \
		}'`
		umask 77
d674 1
d754 11
a764 15
		eval `echo ${chr} ${units} ${name} |awk \
			'{ c=$1; n=$2; name=$3;} END{
			for (i = 0; i < n; i++){
				printf("rm -f %s%d* r%s%d*; \
					mknod %s%da c %d %d; \
					mknod %s%dc c %d %d; \
					mknod r%s%da c %d %d; \
					mknod r%s%dc c %d %d; \
					chgrp operator %s%d* r%s%d*;",
					name, i, name, i,
					name, i, c, (i * 8),
					name, i, c, (i * 8) + 2,
					name, i, c, (i * 8),
					name, i, c, (i * 8) + 2,
					name, i, name, i); }}'`
d879 6
a884 4
	eval `echo ${unit} | awk ' { u=0+$1 } END {
		printf("mknod ugen%d c 114 %d;", u, u*16+0);
		for (i = 1; i < 16; i++)
			printf("mknod ugen%d.%d c 114 %d;", u, i, u*16+i); }'`
d886 1
a886 1
		minor=`expr $unit \* 16 + $endpoint`
d909 5
a913 3
	eval `echo ${chr} ${units} | awk ' { c=0+$1; n=0+$2 } END {
		for (i = 0; i < n; i++)
			printf("mknod ttyv%01x c %d %d;", i, c, i); }'`
d922 1
a922 1
		unit=`expr $unit + 1`
d1014 1
a1014 1
		port=`expr $port + 1`
d1032 1
a1032 1
		port=`expr $port + 1`
d1133 22
a1154 7
	BOARD=1; MINOR=65536; Rnum=0
	MINOR=`expr $BOARD \* 65536`
	dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
	controllers=`awk '{print $1}' < /tmp/rp_list`
	rm -f /dev/ttyR*; rm -f /dev/ttyiR*; rm -f /dev/ttylR*
	for i in $controllers;do
 	   ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
d1156 2
a1157 1
	   for dev in `jot $ndevices 0`;do
d1159 5
a1163 4
		   mknod /dev/ttylR$Rnum c $major `expr $MINOR + 32`
		   mknod /dev/ttyiR$Rnum c $major `expr $MINOR + 64`
		   Rnum=`expr $Rnum + 1`
		   MINOR=`expr $MINOR + 1`
d1165 2
a1166 2
		BOARD=`expr $BOARD + 1`
		MINOR=`expr $BOARD \* 65536`
d1173 22
a1194 7
	BOARD=1; MINOR=65536; Rnum=0
	MINOR=`expr $BOARD \* 65536`
	dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
	controllers=`awk '{print $1}' < /tmp/rp_list`
	rm -f /dev/cuaR*; rm -f /dev/cuaiR*; rm -f /dev/cualR*
	for i in $controllers;do
 	   ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
d1196 8
a1203 6
	   for dev in `jot $ndevices 0`;do
		   mknod /dev/cuaR$Rnum c  $major `expr $MINOR + 128`
		   mknod /dev/cualR$Rnum c $major `expr $MINOR + 128 + 32`
		   mknod /dev/cuaiR$Rnum c $major `expr $MINOR + 128 + 64`
		   Rnum=`expr $Rnum + 1`
		   MINOR=`expr $MINOR + 1`
d1205 2
a1206 2
		BOARD=`expr $BOARD + 1`
		MINOR=`expr $BOARD \* 65536`
d1370 1
a1370 1
		unit=`expr $unit + 1`
@


1.225
log
@As promised long ago, remove the last evidence of the 'sd' driver.
SCSI disks are only known as 'da' now.
@
text
@a34 2
#	ft*	QIC-40/QIC-80 3M cartridge tape (interfaced
#		via the floppy disk controller)
d134 1
a134 1
# $FreeBSD: src/etc/MAKEDEV,v 1.224 1999/11/26 20:45:26 phk Exp $
d228 1
a228 1
	sh MAKEDEV ft0 sa0 wt0				# bdev, tape
d250 34
a502 19
		;;
	esac
	umask 77
	;;

ft*)
	umask $tape_umask
	unit=`expr $i : '..\(.*\)'`
	name=ft; chr=9
	case $unit in
	0|1|2|3)
		mknod ${name}${unit}   c $chr `expr $unit '*' 64 + 32`
		mknod r${name}${unit}  c $chr `expr $unit '*' 64 + 32`
		ln -f ${name}${unit} ${name}${unit}a
		ln -f r${name}${unit} r${name}${unit}a
		chgrp operator ${name}${unit}* r${name}${unit}*
		;;
	*)
		echo bad unit for tape in: $i
@


1.224
log
@Do not create bdev nodes anymore.  Instead create cdev nodes with the
same names:

        rover# ls -l /dev/*wd0a
        crw-r-----  1 root  operator    3,   0 Nov 26 20:20 /dev/rwd0a
        crw-r-----  1 root  operator    3,   0 Nov 26 20:20 /dev/wd0a

Notice: Over time, no earlier than FreeBSD 5.0, the "r*" names may
be discontinued.  A fair number of programs and scripts need to
(un)learn some tricks before then.

This will take no effect until you either run MAKEDEV by hand or
reinstall your system.

WARNING:  Kernels older than approx November 22 will not be happy
about a /dev created with MAKEDEV after this commit.  Please update
your /kernel.good etc.
@
text
@a50 1
#	sd*	SCSI disk, antiquated, use da* instead
d136 1
a136 1
# $FreeBSD: src/etc/MAKEDEV,v 1.223 1999/11/24 21:05:59 n_hibma Exp $
d315 1
a315 1
ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|ida*s*|md*s*|mlxd*s*|sd*s*|vn*s*|wd*s*|wfd*s*)
a325 1
	sd*s*) name=sd;  chr=13;;
d495 1
a495 1
ad*|afd*|amrd*|da*|fla*|ida*|md*|mlxd*|sd*|vn*|wd*|wfd*)
a505 1
	sd*) name=sd; chr=13;;
@


1.223
log
@Make the devices for the endpoints 0-15, not only for 0. This creates
ugen0 and ugen0.1 - ugen0.15, not only ugen0 (control endpoint).
@
text
@d137 1
a137 1
# $FreeBSD: src/etc/MAKEDEV,v 1.222 1999/11/24 19:14:11 phk Exp $
d319 12
a330 12
	ad*s*) name=ad; blk=30; chr=116;;
	afd*s*) name=afd; blk=32; chr=118;;
	amrd*s*) name=amrd; blk=35; chr=133;;
	da*s*) name=da; blk=4;  chr=13;;
	fla*s*) name=fla; blk=28; chr=102;;
	ida*s*) name=ida; blk=29; chr=109;;
	md*s*) name=md; blk=22;  chr=95;;
	mlxd*s*) name=mlxd; blk=27; chr=131;;
	sd*s*) name=sd; blk=4;  chr=13;;
	vn*s*) name=vn; blk=15; chr=43;;
	wd*s*) name=wd; blk=0;  chr=3;;
	wfd*s*) name=wfd; blk=1; chr=87;;
d357 1
a357 1
			mknod  $name$unit$slicename b $blk $minor
d369 1
a369 1
					      b $blk $minor
d398 1
a398 1
	name=fd; blk=2; chr=9
d401 1
a401 1
		mknod ${name}${unit}   b $blk `expr $unit '*' 64`
d411 1
a411 1
		mknod ${name}${unit}.1720  b $blk `expr $unit '*' 64 + 1`
d416 1
a416 1
		mknod ${name}${unit}.1480  b $blk `expr $unit '*' 64 + 2`
d423 1
a423 1
		mknod ${name}${unit}.1440  b $blk `expr $unit '*' 64 + 3`
d432 1
a432 1
		mknod ${name}${unit}.1200  b $blk `expr $unit '*' 64 + 4`
d441 1
a441 1
		mknod ${name}${unit}.820  b $blk `expr $unit '*' 64 + 5`
d448 1
a448 1
		mknod ${name}${unit}.800  b $blk `expr $unit '*' 64 + 6`
d455 1
a455 1
		mknod ${name}${unit}.720  b $blk `expr $unit '*' 64 + 7`
d462 1
a462 1
		mknod ${name}${unit}.360  b $blk `expr $unit '*' 64 + 8`
d481 1
a481 1
	name=ft; blk=2; chr=9
d484 1
a484 1
		mknod ${name}${unit}   b $blk `expr $unit '*' 64 + 32`
d500 12
a511 12
	ad*) name=ad; blk=30; chr=116;;
	afd*) name=afd; blk=32; chr=118;;
	amrd*) name=amrd; blk=35; chr=133;;
	da*) name=da; blk=4;  chr=13;;
	fla*) name=fla; blk=28; chr=102;;
	ida*) name=ida; blk=29; chr=109;;
	md*) name=md; blk=22; chr=95;;
	mlxd*) name=mlxd; blk=27; chr=131;;
	sd*) name=sd; blk=4; chr=13;;
	vn*) name=vn; blk=15; chr=43;;
	wd*) name=wd; blk=0;  chr=3;;
	wfd*) name=wfd; blk=1; chr=87;;
d541 1
a541 1
	blk=21; chr=74
d549 1
a549 1
			mknod  $name$unit$partname b $blk $minor
d726 4
a729 4
	acd*) units=`expr $i : '...\(.*\)'`; name=acd; blk=31; chr=117;;
	cd*) units=`expr $i : '..\(.*\)'`; name=cd; blk=6; chr=15;;
	mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;;
	scd*) units=`expr $i : '...\(.*\)'`; name=scd; blk=16; chr=45;;
d735 2
a736 2
		eval `echo ${chr} ${blk} ${units} ${name} |awk \
			'{ c=$1; b=$2; n=$3; name=$4;} END{
d739 2
a740 2
					mknod %s%da b %d %d; \
					mknod %s%dc b %d %d; \
d745 2
a746 2
					name, i, b, (i * 8),
					name, i, b, (i * 8) + 2,
d759 1
a759 1
	matcd*) unit=`expr $i : '.....\(.*\)'`; name=matcd; blk=17; chr=46;;
d763 2
a764 2
		mknod ${name}${unit}a	b $blk `expr $unit '*' 8 + 0`
		mknod ${name}${unit}c   b $blk `expr $unit '*' 8 + 2`
d770 2
a771 2
		mknod ${name}${unit}la  b $blk `expr $unit '*' 8 + 128`
		mknod ${name}${unit}lc  b $blk `expr $unit '*' 8 + 130`
a786 1
	blk=19
d790 1
a790 1
		mknod wcd${unit}a  b $blk `expr $unit '*' 8 + 0`
d792 1
a792 1
		mknod wcd${unit}c  b $blk `expr $unit '*' 8 + 2`
@


1.222
log
@Remove /dev/drum
@
text
@d137 1
a137 1
# $FreeBSD: src/etc/MAKEDEV,v 1.221 1999/11/24 19:07:31 phk Exp $
d864 5
a868 3
	if [ -z "${endpoint}" ]; then
		minor=`expr $unit \* 16`
		mknod ugen$unit c 114 $minor
@


1.221
log
@Remove leftover reference to the "od" devices.
@
text
@d137 1
a137 1
# $FreeBSD: src/etc/MAKEDEV,v 1.220 1999/11/17 23:02:34 n_hibma Exp $
a254 1
	mknod drum	c 4 0;	chmod 640 drum;		chgrp kmem drum
d279 1
a279 1
	rm mem kmem drum pci io klog	# for security
a281 1
	ln -sf null drum		# --//--
@


1.220
log
@Add the entry for usb (as opposed to usb<number>). It's minor is equivalent
to usb255 and will be used for the event queue of the usb daemon.
@
text
@d137 1
a137 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.219 1999/11/09 12:53:01 sos Exp $
d499 1
a499 1
ad*|afd*|amrd*|da*|fla*|ida*|md*|mlxd*|od*|sd*|vn*|wd*|wfd*)
a509 1
	od*) name=od; blk=4; chr=13;;
@


1.219
log
@cleanup the IDE cases a bit, add the ad driver to the all: target.
@
text
@d137 1
a137 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.218 1999/11/01 19:45:59 nik Exp $
d243 1
a243 1
	sh MAKEDEV usb0 ums0 ulpt0 ugen0		# cdev, USB devices
d840 4
@


1.218
log
@Document the ch* devices.

PR:             docs/14401
Submitted by:   Crist J. Clark <cjc@@cc942873-a.ewndsr1.nj.home.com>
@
text
@d137 1
a137 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.217 1999/10/30 07:00:12 obrien Exp $
d224 5
a228 2
	sh MAKEDEV da0 da1 da2 da3 wd0 wd1 wd2 wd3	# bdev, ordinary disk
	sh MAKEDEV wfd0					# bdev, LS-120 floppy
d230 2
a231 2
	sh MAKEDEV cd0 matcd0 mcd0 scd0 wcd0		# bdev, cdrom
	sh MAKEDEV ft0 sa0 wst0 wt0			# bdev, tape
d715 3
@


1.217
log
@Fix ownership of /dev/fd/*.  We still had a bin:bin hangover from pre-3.0.

Noticed by:	bde
@
text
@d97 1
d137 1
a137 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.216 1999/10/15 16:20:58 brian Exp $
@


1.216
log
@Fix ``MAKEDEV acd''

Spotted by: Mark Knight <mkn@@FreeBSD.org.uk>
@
text
@d136 1
a136 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.215 1999/10/12 15:51:58 gibbs Exp $
d269 1
a269 1
	chown -R bin:bin fd
@


1.215
log
@Remove references to the od driver.  These devices are no attached by
the da driver and using the same major/minor scheme with the old name
only leads to confusion.

PR: misc/14279
@
text
@d136 1
a136 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.214 1999/10/10 15:13:48 peter Exp $
d727 1
a727 1
	if [ -z "${units}" -o ${units} -le 0 ]; then
@


1.214
log
@remove ipl hooks
@
text
@a49 1
#	od*	optical disks
d136 1
a136 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.213 1999/10/07 02:37:04 msmith Exp $
a223 1
	sh MAKEDEV od0					# bdev, optical disk
d314 1
a314 1
ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|ida*s*|md*s*|mlxd*s*|od*s*|sd*s*|vn*s*|wd*s*|wfd*s*)
a324 1
	od*s*) name=od; blk=4;  chr=13;;
@


1.213
log
@Add entries for the 'amrd' and 'mlxd' disk nodes used by the AMI MegaRAID
and Myles drivers respectively.
@
text
@a134 1
#	ipl	ipfilter control devices (ipl, ipnat, ipstate, ipauth)
d137 1
a137 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.212 1999/09/21 11:11:26 phk Exp $
d242 1
a242 1
	sh MAKEDEV bpf0 ipl tun0			# cdev, network
a1373 7
	;;

ipl)
	mknod ipl c 79 0
	mknod ipnat c 79 1
	mknod ipstate c 79 2
	mknod ipauth c 79 3
@


1.212
log
@Add support for md driver.

sort some comments
@
text
@d40 1
d49 1
d138 1
a138 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.211 1999/09/13 16:15:58 bde Exp $
d317 1
a317 1
ad*s*|afd*s*|da*s*|fla*s*|ida*s*|md*s*|od*s*|sd*s*|vn*s*|wd*s*|wfd*s*)
d322 1
d327 1
d335 5
d499 1
a499 1
ad*|afd*|da*|fla*|ida*|md*|od*|sd*|vn*|wd*|wfd*)
d504 1
d509 1
d517 3
@


1.211
log
@Fixed some disordering (mainly of case lists for disks).

Fixed bitrot in the `wcd*)' case.
@
text
@d39 3
a41 2
#	wd*	"Winchester" disk drives (ST506,IDE,ESDI,RLL,...)
#	wfd*	IDE floppy disk drives (LS-120)
d43 3
a45 3
#	da*	SCSI Direct Access Devices
#	cd*	SCSI CD-ROM disks
#	sd*	SCSI disk, antiquated, use da* instead
d47 2
d50 1
a50 2
#	matcd*	Matsushita (Panasonic) CD-ROM disks
#	acd*	ATAPI CD-ROM disks
d52 2
a53 3
#	od*	optical disks
#	fla*	M-Systems DiskOnChip
#	ida*	Compaq Smart-2 RAID
d136 1
a136 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.210 1999/09/13 15:44:19 sheldonh Exp $
d315 1
a315 1
ad*s*|afd*s*|da*s*|fla*s*|ida*s*|od*s*|sd*s*|vn*s*|wd*s*|wfd*s*)
d323 1
d490 1
a490 1
ad*|afd*|da*|fla*|ida*|od*|sd*|vn*|wd*|wfd*)
d498 1
@


1.210
log
@Apply a consistent style to most of the etc scripts.  Particularly, use
case instead of test where appropriate, since case allows case is a sh
builtin and (as a side-effect) allows case-insensitivity.

Changes discussed on freebsd-hackers.

Submitted by:	Doug Barton <Doug@@gorean.org>
@
text
@d135 1
a135 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.209 1999/08/27 23:23:56 peter Exp $
a174 5
# Convert tape (ctrl, unit, mode, access) to minor number
saminor()
{
	echo $(($1 << 29 | ($2 / 16) << 16 | ($2 % 16) << 4 | $3 << 2 | $4))
}
d183 6
d227 1
a227 1
	sh MAKEDEV ft0 sa0 wt0 wst0			# bdev, tape
d314 1
a314 1
ad*s*|od*s*|sd*s*|da*s*|vn*s*|wd*s*|afd*s*|wfd*s*|fla*s*|ida*s*)
d319 2
a321 1
	fla*s*) name=fla; blk=28; chr=102;;
a323 1
	da*s*) name=da; blk=4;  chr=13;;
d329 1
a329 1
	afd*s*|ida*s*|fla*s*|wfd*s*)
d488 1
a488 1
ad*|sd*|od*|da*|vn*|wd*|afd*|wfd*|fla*|ida*)
d493 2
d496 1
a496 1
	fla*) name=fla; blk=28; chr=102;;
a497 2
	od*) name=od; blk=4; chr=13;;
	da*) name=da; blk=4;  chr=13;;
d503 1
a503 1
	afd*|ida*|fla*|wfd*)
d767 1
a767 1
wcd?)
@


1.209
log
@$Id$ -> $FreeBSD$
@
text
@d135 1
a135 1
# $FreeBSD$
d280 1
a280 1
	
d293 1
a293 1
	if [ x$u = x ]; then u=0; fi
d532 1
a532 1
			minor=`dkminor 0 $unit 0 $part` 
d555 1
a555 1
	if [ "X${unit}" = "X" ]; then
d567 1
a567 1
	if [ "X${unit}" = "X" ]; then
d582 1
a582 1
	if [ "X${units}" = "X" ]; then
d600 1
a600 1
	if [ "X${units}" = "X" ]; then
d713 1
a713 1
	if [ "X${units}" = "X" -o ${units} -le 0 ]; then
a731 1
		
d839 2
a840 2
	if [ "x$unit" = "x" ]; then
		echo $i - Invalid unit number 
d842 2
a843 2
	if [ "x$endpoint" = "x" ]; then
		minor=`expr $unit \* 16` 
d846 1
a846 1
		minor=`expr $unit \* 16 + $endpoint` 
d968 1
a968 1
		name=`expr $port + 1000 | cut -c 3-4` 
d985 1
a985 1
		name=`expr $port + 1000 | cut -c 3-4` 
d1100 1
a1100 1
		   mknod /dev/ttyR$Rnum c $major $MINOR 
d1102 1
a1102 1
		   mknod /dev/ttyiR$Rnum c $major `expr $MINOR + 64` 
d1125 1
a1125 1
		   mknod /dev/cuaiR$Rnum c $major `expr $MINOR + 128 + 64` 
d1333 1
a1333 1
	if [ "X${unit}" = "X" ]; then
@


1.208
log
@added usb0 to 'all' target for usbd(8)
@
text
@d135 1
a135 1
#	$Id: MAKEDEV,v 1.207 1999/08/16 16:00:21 sheldonh Exp $
@


1.207
log
@Use a colon (:) instead of a period (.) to distinguish the group name
from the user name when using chown(8).

PR:	13157
Reported by:	Patrick Powell <papowell@@astart.com>
@
text
@d89 1
d135 1
a135 1
#	$Id: MAKEDEV,v 1.206 1999/07/10 18:02:40 iwasaki Exp $
d238 1
a238 1
	sh MAKEDEV ums0 ulpt0 ugen0			# cdev, USB devices
@


1.206
log
@Put apmd configuration and rc files in /etc.
Update some files for apmd.
@
text
@d134 1
a134 1
#	$Id: MAKEDEV,v 1.205 1999/07/09 21:35:17 phk Exp $
d184 1
a184 1
	chown root.wheel "$1" || exit 1
d267 1
a267 1
	chown -R bin.bin fd
d895 1
a895 1
	chown uucp.dialer cua*a$unit
d921 1
a921 1
		chown uucp.dialer cuac$name cuaic$name cualc$name
d949 1
a949 1
	chown uucp.dialer cuam$unit
d989 1
a989 1
		chown uucp.dialer cuaA$name cuaiA$name cualA$name
d1032 1
a1032 1
		chown uucp.dialer cua*D$name
d1057 1
a1057 1
			chown root.wheel tty*M$name
d1083 1
a1083 1
			chown uucp.dialer cua*M$name
d1133 1
a1133 1
	chown uucp.dialer /dev/cuaR*
d1249 1
a1249 1
	chown uucp.wheel $i
d1293 1
a1293 1
		chown uucp.dialer tun$unit
@


1.205
log
@Add a pseudo target called "jail" which DTRT for a jail(2)'ed /dev
@
text
@d112 1
d134 1
a134 1
#	$Id: MAKEDEV,v 1.204 1999/07/09 13:37:58 sheldonh Exp $
d240 1
a240 1
	sh MAKEDEV apm card0 card1 card2 card3		# cdev, laptop
d1223 1
d1225 1
d1227 1
@


1.204
log
@Fix typo in previous commit.

Reported by:	bde
@
text
@d27 1
d133 1
a133 1
#	$Id: MAKEDEV,v 1.203 1999/07/09 12:52:02 sheldonh Exp $
d271 8
@


1.203
log
@Add the pps (Pulse per second timing interface) device.

PR:	12568
Submitted by:	Craig Leres <leres@@ee.lbl.gov>
@
text
@d132 1
a132 1
#	$Id: MAKEDEV,v 1.202 1999/07/07 12:00:42 bde Exp $
d808 1
a808 1
	mknod ppi$unit c 89 $unit
@


1.202
log
@Removed bogus quotes in descriptions of disk devices.  Only "Winchester"
disk devices are so-called.
@
text
@d81 1
d132 1
a132 1
#	$Id: MAKEDEV,v 1.201 1999/07/05 09:18:57 msmith Exp $
d804 5
@


1.201
log
@Add support for the 'ida' driver.
@
text
@d39 13
a51 13
#	wfd*	"IDE floppy" disk drives (LS-120)
#	fd*	"floppy" disk drives (3 1/2", 5 1/4")
#	da*	"SCSI Direct Access Devices"
#	cd*	"SCSI CD-ROM disks"
#	sd*	"SCSI disk", antiquated, use da* instead
#	mcd*	"Mitsumi CD-ROM disks"
#	scd*	"Sony CD-ROM disks"
#	matcd*	"Matsushita (Panasonic) CD-ROM disks"
#	acd*	"ATAPI CD-ROM disks"
#	vn*	"vnode disks"
#	od*	"optical disks"
#	fla*	"M-Systems DiskOnChip"
#	ida*	"Compaq Smart-2 RAID"
d131 1
a131 1
#	$Id: MAKEDEV,v 1.200 1999/07/05 08:39:00 jkh Exp $
@


1.200
log
@Bump the number of vtys created to compensate for new demands created
by /etc/ttys.

Forgotten by:   des
@
text
@d51 1
d131 1
a131 1
#	$Id: MAKEDEV,v 1.199 1999/05/29 19:36:55 phk Exp $
d301 1
a301 1
ad*s*|od*s*|sd*s*|da*s*|vn*s*|wd*s*|afd*s*|wfd*s*|fla*s*)
d306 1
d316 1
a316 1
	afd*s*|fla*s*|wfd*s*)
d475 1
a475 1
ad*|sd*|od*|da*|vn*|wd*|afd*|wfd*|fla*)
d480 1
d490 1
a490 1
	afd*|fla*|wfd*)
@


1.199
log
@Fix my DOC2k CHRDEV goof
@
text
@d130 1
a130 1
#	$Id: MAKEDEV,v 1.198 1999/05/24 18:01:03 hm Exp $
d222 1
a222 1
	sh MAKEDEV vty4					# cdev, virtual tty
@


1.198
log
@Fix i4bteld entry, the section of the sh case for "i4teld*)" should be
BEFORE the case for "i4tel*)". (match the longest prefix first!)
Recognized by: Harry Starr
@
text
@d130 1
a130 1
#	$Id: MAKEDEV,v 1.197 1999/05/20 10:06:52 hm Exp $
d305 1
a305 1
	fla*s*) name=fla; blk=28; chr=101;;
d478 1
a478 1
	fla*) name=fla; blk=28; chr=101;;
@


1.197
log
@upgrade isdn4bsd from version 0.71 to the just released version 0.81
@
text
@d130 1
a130 1
#	$Id: MAKEDEV,v 1.196 1999/05/04 17:03:58 hosokawa Exp $
a1368 7
i4btel*)
	unit=`expr $i : 'i4btel\(.*\)'`
	mknod i4btel$unit c 56 $unit
	chown root:wheel i4btel$unit
	chmod 600 i4btel$unit
	;;

d1375 7
@


1.196
log
@added card1 and card2 to 'all' target.
(for machines with more than two PC-card slots)
@
text
@d104 1
d130 1
a130 1
#	$Id: MAKEDEV,v 1.195 1999/04/24 20:57:39 peter Exp $
d239 2
a240 1
	sh MAKEDEV i4brbch0 i4brbch1 i4btel0 i4btel1	# cdev, ISDN
d1374 8
@


1.195
log
@Zap default creation of /dev/lkm - it doesn't point to anything anymore
@
text
@d129 1
a129 1
#	$Id: MAKEDEV,v 1.194 1999/04/08 21:23:18 msmith Exp $
d235 1
a235 1
	sh MAKEDEV apm card0 card1			# cdev, laptop
@


1.194
log
@Make the USB devices by default, comment them.
@
text
@d129 1
a129 1
#	$Id: MAKEDEV,v 1.193 1999/03/16 13:34:00 sos Exp $
a255 1
	mknod lkm	c 32 0;	chmod 644 lkm
@


1.193
log
@Rewert the atapi CDROM driver's name to wcd.
This is to avoid confusion with the new system.
Also provide real entires in MAKEDEV for the new system.
@
text
@d85 5
d129 1
a129 1
#	$Id: MAKEDEV,v 1.192 1999/03/05 23:08:45 gibbs Exp $
d232 1
@


1.192
log
@Add targ.ctl, a device node for allocating and configuring instances
of the "targ" processor target target mode emulator.
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.191 1999/03/02 16:04:27 roger Exp $
d214 1
a214 1
	sh MAKEDEV cd0 matcd0 mcd0 scd0 acd0		# bdev, cdrom
d293 1
a293 1
od*s*|sd*s*|da*s*|vn*s*|wd*s*|wfd*s*|fla*s*)
d296 2
d307 1
a307 1
	fla*s*|wfd*s*)
d466 1
a466 1
sd*|od*|da*|vn*|wd*|wfd*|fla*)
d469 2
d480 1
a480 1
	fla*|wfd*)
d666 18
a683 1
cd*|mcd*|scd*)
d686 1
d745 1
a745 1
acd?|wcd?)
d752 6
a757 10
		mknod acd${unit}a  b $blk `expr $unit '*' 8 + 0`
		ln -fs acd${unit}a wcd${unit}a 
		mknod racd${unit}a c $chr `expr $unit '*' 8 + 0`
		ln -fs racd${unit}a rwcd${unit}a
		mknod acd${unit}c  b $blk `expr $unit '*' 8 + 2`
		ln -fs acd${unit}c wcd${unit}c
		mknod racd${unit}c c $chr `expr $unit '*' 8 + 2`
		ln -fs racd${unit}c rwcd${unit}c
		chgrp operator acd${unit}[a-h] racd${unit}[a-h]
		chmod 640 acd${unit}[a-h] racd${unit}[a-h]
@


1.191
log
@Put back the bktr update to generate /dev/vbi
which I managed to delete yesterday.
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.190 1999/03/01 12:13:24 roger Exp $
d546 1
@


1.190
log
@Updated the bktr entry to generate bktr*, tuner* and now vbi*
/dev/vbi will allow vbi capture from the bt848 card for software
teletext decoding.
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.189 1999/02/26 16:14:22 roger Exp $
d1236 2
a1237 1
	chmod 444 bktr$unit tuner$unit
@


1.189
log
@Updated the bktr entry to add vbi*
bktr now makes bktr, tuner and vbi
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.188 1999/02/18 21:17:16 n_hibma Exp $
d1236 1
a1236 2
	mknod vbi$unit c 92 $((32 + $unit ))
	chmod 444 bktr$unit tuner$unit vbi$unit
@


1.188
log
@Change to a proper numbering scheme for the ugen device. It requires
a unit and endpoint number. This is combined into a minor number.
The naming of the devices in /dev is now /dev/ugen<unit>.<endpoint>
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.187 1999/02/14 19:41:36 jkh Exp $
d1236 2
a1237 1
	chmod 444 bktr$unit tuner$unit
@


1.187
log
@DTRT for acd/wcd backwards compatibility
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.186 1999/02/05 22:54:37 mjacob Exp $
d792 12
a803 2
	unit=`expr $i : 'ugen\(.*\)'`
	mknod ugen$unit c 114 $unit
@


1.186
log
@Bruce gently nudged me into doing this right
@
text
@d47 1
a47 1
#	wcd*	"IDE CD-ROM disks"
d124 1
a124 1
#	$Id: MAKEDEV,v 1.185 1999/02/04 20:35:07 mjacob Exp $
d214 1
a214 1
	sh MAKEDEV cd0 matcd0 mcd0 scd0 wcd0		# bdev, cdrom
d722 1
a722 1
wcd*)
d729 10
a738 6
		mknod wcd${unit}a  b $blk `expr $unit '*' 8 + 0`
		mknod rwcd${unit}a c $chr `expr $unit '*' 8 + 0`
		mknod wcd${unit}c  b $blk `expr $unit '*' 8 + 2`
		mknod rwcd${unit}c c $chr `expr $unit '*' 8 + 2`
		chgrp operator wcd${unit}[a-h] rwcd${unit}[a-h]
		chmod 640 wcd${unit}[a-h] rwcd${unit}[a-h]
@


1.185
log
@add back ctl for sa and add more units
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.184 1999/01/24 13:51:26 markm Exp $
d164 5
d622 3
a624 9
	[0-9]|[1-9][0-9]|[1-9][0-9][0-9])
		if [ $unit -gt 15 ]; then
			mult=65536
		else
			mult=16
		fi
		rm -f rsa${unit} nrsa${unit} ersa${unit} rsa${unit}.ctl
		mknod rsa${unit}.ctl c $chr `expr $unit '*' $mult + 536870912`
		for mode in 0 1 2 3
d626 5
a630 7
			rm -f rsa${unit}.${mode} nrsa${unit}.${mode} ersa${unit}.${mode}
			mknod rsa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 0`
			mknod nrsa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 1`
			mknod ersa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 2`
			chgrp operator	rsa${unit}.${mode}\
					nrsa${unit}.${mode} \
					ersa${unit}.${mode}
a631 1

@


1.184
log
@Replace a bunch of "ln foo bar"'s with "ln -f foo bar".
This means that if(when) you go "sh MAKEDEV all" in /dev
the devices get remade; you don't get errors.
A lot of the changes are for info only; they are commented out.

Not exactly shot to pieces by:	bde
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.183 1999/01/12 01:31:13 n_hibma Exp $
d617 8
a624 1
	0|1|2|3|4|5|6)
d627 4
a630 3
			mknod rsa${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 0`
			mknod nrsa${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 1`
			mknod ersa${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 2`
@


1.183
log
@Take cdev major # 114 for ugen
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.182 1999/01/11 00:03:58 n_hibma Exp $
d368 2
a369 2
			ln ${name}${unit} ${name}${unit}$i
			ln r${name}${unit} r${name}${unit}$i
d375 2
a376 2
		# ln ${name}${unit}.1720 ${name}${unit}135hs21
		# ln r${name}${unit}.1720 r${name}${unit}135hs21
d380 4
a383 4
		# ln ${name}${unit}.1480 ${name}${unit}135hs18
		# ln r${name}${unit}.1480 r${name}${unit}135hs18
		# ln ${name}${unit}.1480 ${name}${unit}96hs18
		# ln r${name}${unit}.1480 r${name}${unit}96hs18
d387 6
a392 6
		# ln ${name}${unit}.1440 ${name}${unit}135
		# ln r${name}${unit}.1440 r${name}${unit}135
		# ln ${name}${unit}.1440 ${name}${unit}135ds18
		# ln r${name}${unit}.1440 r${name}${unit}135ds18
		# ln ${name}${unit}.1440 ${name}${unit}96ds18
		# ln r${name}${unit}.1440 r${name}${unit}96ds18
d396 6
a401 6
		# ln ${name}${unit}.1200 ${name}${unit}96
		# ln r${name}${unit}.1200 r${name}${unit}96
		# ln ${name}${unit}.1200 ${name}${unit}96ds15
		# ln r${name}${unit}.1200 r${name}${unit}96ds15
		# ln ${name}${unit}.1200 ${name}${unit}135ds15
		# ln r${name}${unit}.1200 r${name}${unit}135ds15
d405 4
a408 4
		# ln ${name}${unit}.820 ${name}${unit}96hs10
		# ln r${name}${unit}.820 r${name}${unit}96hs10
		# ln ${name}${unit}.820 ${name}${unit}135hs10
		# ln r${name}${unit}.820 r${name}${unit}135hs10
d412 4
a415 4
		# ln ${name}${unit}.800 ${name}${unit}96ds10
		# ln r${name}${unit}.800 r${name}${unit}96ds10
		# ln ${name}${unit}.800 ${name}${unit}135ds10
		# ln r${name}${unit}.800 r${name}${unit}135ds10
d419 4
a422 4
		# ln ${name}${unit}.720 ${name}${unit}96ds9
		# ln r${name}${unit}.720 r${name}${unit}96ds9
		# ln ${name}${unit}.720 ${name}${unit}135ds9
		# ln r${name}${unit}.720 r${name}${unit}135ds9
d426 4
a429 4
		# ln ${name}${unit}.360 ${name}${unit}48
		# ln r${name}${unit}.360 r${name}${unit}48
		# ln ${name}${unit}.360 ${name}${unit}48ds9
		# ln r${name}${unit}.360 r${name}${unit}48ds9
d448 2
a449 2
		ln ${name}${unit} ${name}${unit}a
		ln r${name}${unit} r${name}${unit}a
d628 3
a630 3
		ln rsa${unit}.0 rsa${unit}
		ln nrsa${unit}.0 nrsa${unit}
		ln ersa${unit}.0 ersa${unit}
@


1.183.2.1
log
@MFC: pull 1.184->1.185 change to RELENG_3
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.183 1999/01/12 01:31:13 n_hibma Exp $
d617 1
a617 8
	[0-9]|[1-9][0-9]|[1-9][0-9][0-9])
		if [ $unit -gt 15 ]; then
			mult=65536
		else
			mult=16
		fi
		rm -f rsa${unit} nrsa${unit} ersa${unit} rsa${unit}.ctl
		mknod rsa${unit}.ctl c $chr `expr $unit '*' $mult + 536870912`
d620 3
a622 4
			rm -f rsa${unit}.${mode} nrsa${unit}.${mode} ersa${unit}.${mode}
			mknod rsa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 0`
			mknod nrsa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 1`
			mknod ersa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 2`
@


1.183.2.2
log
@MFC: force the links to go through.

OK'ed by:	jkh
@
text
@d124 1
a124 1
#	$Id$
d368 2
a369 2
			ln -f ${name}${unit} ${name}${unit}$i
			ln -f r${name}${unit} r${name}${unit}$i
d375 2
a376 2
		# ln -f ${name}${unit}.1720 ${name}${unit}135hs21
		# ln -f r${name}${unit}.1720 r${name}${unit}135hs21
d380 4
a383 4
		# ln -f ${name}${unit}.1480 ${name}${unit}135hs18
		# ln -f r${name}${unit}.1480 r${name}${unit}135hs18
		# ln -f ${name}${unit}.1480 ${name}${unit}96hs18
		# ln -f r${name}${unit}.1480 r${name}${unit}96hs18
d387 6
a392 6
		# ln -f ${name}${unit}.1440 ${name}${unit}135
		# ln -f r${name}${unit}.1440 r${name}${unit}135
		# ln -f ${name}${unit}.1440 ${name}${unit}135ds18
		# ln -f r${name}${unit}.1440 r${name}${unit}135ds18
		# ln -f ${name}${unit}.1440 ${name}${unit}96ds18
		# ln -f r${name}${unit}.1440 r${name}${unit}96ds18
d396 6
a401 6
		# ln -f ${name}${unit}.1200 ${name}${unit}96
		# ln -f r${name}${unit}.1200 r${name}${unit}96
		# ln -f ${name}${unit}.1200 ${name}${unit}96ds15
		# ln -f r${name}${unit}.1200 r${name}${unit}96ds15
		# ln -f ${name}${unit}.1200 ${name}${unit}135ds15
		# ln -f r${name}${unit}.1200 r${name}${unit}135ds15
d405 4
a408 4
		# ln -f ${name}${unit}.820 ${name}${unit}96hs10
		# ln -f r${name}${unit}.820 r${name}${unit}96hs10
		# ln -f ${name}${unit}.820 ${name}${unit}135hs10
		# ln -f r${name}${unit}.820 r${name}${unit}135hs10
d412 4
a415 4
		# ln -f ${name}${unit}.800 ${name}${unit}96ds10
		# ln -f r${name}${unit}.800 r${name}${unit}96ds10
		# ln -f ${name}${unit}.800 ${name}${unit}135ds10
		# ln -f r${name}${unit}.800 r${name}${unit}135ds10
d419 4
a422 4
		# ln -f ${name}${unit}.720 ${name}${unit}96ds9
		# ln -f r${name}${unit}.720 r${name}${unit}96ds9
		# ln -f ${name}${unit}.720 ${name}${unit}135ds9
		# ln -f r${name}${unit}.720 r${name}${unit}135ds9
d426 4
a429 4
		# ln -f ${name}${unit}.360 ${name}${unit}48
		# ln -f r${name}${unit}.360 r${name}${unit}48
		# ln -f ${name}${unit}.360 ${name}${unit}48ds9
		# ln -f r${name}${unit}.360 r${name}${unit}48ds9
d448 2
a449 2
		ln -f ${name}${unit} ${name}${unit}a
		ln -f r${name}${unit} r${name}${unit}a
d636 3
a638 3
		ln -f rsa${unit}.0 rsa${unit}
		ln -f nrsa${unit}.0 nrsa${unit}
		ln -f ersa${unit}.0 ersa${unit}
@


1.183.2.3
log
@MFC: proper acd handling.
@
text
@d47 1
a47 1
#	acd*	"ATAPI CD-ROM disks"
d124 1
a124 1
#	$Id: MAKEDEV,v 1.183.2.2 1999/02/05 10:50:29 markm Exp $
d209 1
a209 1
	sh MAKEDEV cd0 matcd0 mcd0 scd0 acd0		# bdev, cdrom
d726 1
a726 1
acd?|wcd?)
d733 6
a738 10
		mknod acd${unit}a  b $blk `expr $unit '*' 8 + 0`
		ln -fs acd${unit}a wcd${unit}a 
		mknod racd${unit}a c $chr `expr $unit '*' 8 + 0`
		ln -fs racd${unit}a rwcd${unit}a
		mknod acd${unit}c  b $blk `expr $unit '*' 8 + 2`
		ln -fs acd${unit}c wcd${unit}c
		mknod racd${unit}c c $chr `expr $unit '*' 8 + 2`
		ln -fs racd${unit}c rwcd${unit}c
		chgrp operator acd${unit}[a-h] racd${unit}[a-h]
		chmod 640 acd${unit}[a-h] racd${unit}[a-h]
@


1.183.2.4
log
@Updated the bktr entry to generate /dev/vbi
This is for VBI capture from the bt848 driver allowing
software teletext decoding.
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.183.2.3 1999/02/14 19:42:23 jkh Exp $
d1230 1
a1230 2
	mknod vbi$unit c 92 $((32 + $unit ))
	chmod 444 bktr$unit tuner$unit vbi$unit
@


1.183.2.5
log
@MFC: Add targ.ctl.
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.183.2.4 1999/03/02 16:50:55 roger Exp $
a540 1
	mknod ${name}.ctl c $chr 0xffff00ff
@


1.183.2.6
log
@MFC: Move the cleaner versions that Bruce had encouraged me to do back into
the mainstream.
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.183.2.5 1999/03/07 00:37:59 gibbs Exp $
a163 5
# Convert tape (ctrl, unit, mode, access) to minor number
saminor()
{
	echo $(($1 << 29 | ($2 / 16) << 16 | ($2 % 16) << 4 | $3 << 2 | $4))
}
d618 9
a626 3
	[0-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9])
		mknod rsa${unit}.ctl c $chr `saminor 1 ${unit} 0 0`
		for m in 0 1 2 3
d628 7
a634 5
			mknod rsa${unit}.${m} c $chr `saminor 0 ${unit} ${m} 0`
			mknod nrsa${unit}.${m} c $chr `saminor 0 ${unit} ${m} 1`
			mknod ersa${unit}.${m} c $chr `saminor 0 ${unit} ${m} 2`
			chgrp operator rsa${unit}.${m} nrsa${unit}.${m} \
				ersa${unit}.${m}
d636 1
@


1.183.2.7
log
@Fix my chrdev goof in doc2k (MFC)
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.183.2.6 1999/05/11 04:46:34 mjacob Exp $
d296 1
a296 1
	fla*s*) name=fla; blk=28; chr=102;;
d467 1
a467 1
	fla*) name=fla; blk=28; chr=102;;
@


1.183.2.8
log
@MFC: bump the number of vtys.

Forgotten by:	jkh ;P
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.183.2.7 1999/05/29 19:49:28 phk Exp $
d216 1
a216 1
	sh MAKEDEV vty12				# cdev, virtual tty
@


1.183.2.9
log
@MFC: Add pps device.
@
text
@a79 1
#	pps*	Pulse per second timing interface
d124 1
a124 1
#	$Id: MAKEDEV,v 1.183.2.8 1999/07/05 09:08:05 des Exp $
a774 5
	;;

pps*)
	unit=`expr $i : 'pps\(.*\)'`
	mknod ppi$unit c 89 $unit
@


1.183.2.10
log
@MFC: Fix typo in previous commit.
@
text
@d125 1
a125 1
#	$Id: MAKEDEV,v 1.183.2.9 1999/07/09 12:57:59 sheldonh Exp $
d780 1
a780 1
	mknod pps$unit c 89 $unit
@


1.183.2.11
log
@MFC: Use colon as username:group separator for chown(8).
@
text
@d125 1
a125 1
#	$Id: MAKEDEV,v 1.183.2.10 1999/07/09 13:40:27 sheldonh Exp $
d175 1
a175 1
	chown root:wheel "$1" || exit 1
d257 1
a257 1
	chown -R bin:bin fd
d847 1
a847 1
	chown uucp:dialer cua*a$unit
d873 1
a873 1
		chown uucp:dialer cuac$name cuaic$name cualc$name
d901 1
a901 1
	chown uucp:dialer cuam$unit
d941 1
a941 1
		chown uucp:dialer cuaA$name cuaiA$name cualA$name
d984 1
a984 1
		chown uucp:dialer cua*D$name
d1009 1
a1009 1
			chown root:wheel tty*M$name
d1035 1
a1035 1
			chown uucp:dialer cua*M$name
d1085 1
a1085 1
	chown uucp:dialer /dev/cuaR*
d1198 1
a1198 1
	chown uucp:wheel $i
d1242 1
a1242 1
		chown uucp:dialer tun$unit
@


1.183.2.12
log
@MFC: from rev 1.194, 1.208

Make the USB devices by default
@
text
@a85 6
# USB devices:
#	usb*	USB bus control device
#	ums*	mouse
#	ulpt*	printer
#	ugen*	generic USB device
#
d125 1
a125 1
#	$Id$
a227 1
	sh MAKEDEV usb0 ums0 ulpt0 ugen0		# cdev, USB devices
@


1.183.2.13
log
@MFC:
	etc/Makefile:			1.200->1.201
	etc/apmd.conf:			added to RELENG_3
	etc/rc.resume:			added to RELENG_3
	etc/rc.suspend:			added to RELENG_3
	etc/defaults/rc.conf:		1.18->1.20
	etc/etc.i386/MAKEDEV:		1.205->1.206
	etc/etc.i386/rc.i386:		1.39->1.42
	share/man/man5/rc.conf.5:	1.42->1.43
	usr.sbin/Makefile:		1.156->1.157
	usr.sbin/apmd:			added to RELENG_3

The apmd package provides a means of handling various APM events from
userland code.  Using apmd.conf, the apmd(8) configuration file, you
can select the APM events to be handled from userland and specify the
commands for a given event, allowing APM behaviour to be configured
flexibly.
@
text
@a109 1
#	apmctl	APM BIOS control device
d131 1
a131 1
#	$Id: MAKEDEV,v 1.183.2.12 1999/08/25 16:50:43 gehenna Exp $
d237 1
a237 1
	sh MAKEDEV apm apmctl card0 card1		# cdev, laptop
a1181 1
	mknod apmctl c $chr 8
a1182 1
	chgrp operator apmctl
a1183 1
	chmod 660 apmctl
@


1.183.2.14
log
@$Id$ -> $FreeBSD$
@
text
@d132 1
a132 1
# $FreeBSD$
@


1.183.2.15
log
@MFC: Remove references to the od driver.
@
text
@d49 1
d132 1
a132 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.183.2.14 1999/08/29 14:19:11 peter Exp $
d219 1
d302 1
a302 1
sd*s*|da*s*|vn*s*|wd*s*|wfd*s*|fla*s*)
d306 1
@


1.183.2.16
log
@MFC: Synchronise I4B (0.83) from -CURRENT, and enable PPPoISDN.
@
text
@a104 1
#	i4bteld* telephony dialout interface(s)
d131 1
a131 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.183.2.15 1999/10/12 15:58:11 gibbs Exp $
d239 1
a239 2
	sh MAKEDEV i4btel0 i4btel1 i4bteld0 i4bteld1	# cdev, ISDN
	sh MAKEDEV i4brbch0 i4brbch1			# cdev, ISDN
a1345 8
	;;

i4bteld*)
	offset=64
	unit=`expr $i : 'i4bteld\(.*\)'`
	mknod i4bteld$unit c 56 `expr $offset + $unit `
	chown root:wheel i4bteld$unit
	chmod 600 i4bteld$unit
@


1.182
log
@Added file handling to ulpt (USB printer) driver
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.181 1999/01/08 16:03:57 hm Exp $
d781 5
@


1.181
log
@add generation of ISDN (i4b) devicefiles
@
text
@d124 1
a124 1
#	$Id: MAKEDEV,v 1.180 1999/01/06 16:18:05 yokota Exp $
d776 5
@


1.180
log
@Added kbd*.
@
text
@d94 7
d124 1
a124 1
#	$Id: MAKEDEV,v 1.179 1999/01/03 16:48:03 n_hibma Exp $
d226 2
d229 1
d1293 33
@


1.179
log
@Corrected the major number for usb and added ums as major 111
@
text
@d115 1
d117 1
a117 1
#	$Id: MAKEDEV,v 1.178 1998/11/12 22:48:16 nsouch Exp $
d208 1
d1277 6
@


1.178
log
@Arrg, ppi*) corrected
@
text
@d116 1
a116 1
#	$Id: MAKEDEV,v 1.177 1998/11/12 22:45:24 nsouch Exp $
d754 10
@


1.177
log
@Add ppi*) iic*) and smb*)
@
text
@d116 1
a116 1
#	$Id: MAKEDEV,v 1.176 1998/10/31 05:27:02 obrien Exp $
d753 1
a753 1
	mknod smb$unit c 82 $unit
@


1.176
log
@Backout rev 1.175.
@
text
@d77 7
a83 2
# Printers:
#	lpt*	stock lp
d116 1
a116 1
#	$Id: MAKEDEV,v 1.174 1998/10/29 22:16:29 obrien Exp $
d210 3
d739 15
@


1.175
log
@``MAKEDEV ccd3'' is now consistant with many of the other devices in that
*ccd{0,1,2}* will be created.
@
text
@d476 16
a491 20
	nccd=`expr $i : '...\(.*\)'`
	unit=0
	while [ $unit -le $nccd ]; do
		case $unit in
		[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
			for part in 0 1 2 3 4 5 6 7
			do
				minor=`dkminor 0 $unit 0 $part` 
				partname=`dkitop $part`
				mknod  $name$unit$partname b $blk $minor
				mknod r$name$unit$partname c $chr $minor
			done
			chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
			;;
		*)
			echo bad unit for disk in: $i
			;;
		esac
		unit=`expr $unit + 1`
	done
@


1.174
log
@``MAKEDEV bpf3'' is now consistant with many of the other devices in that
bpf{0,1,2} will be created.
@
text
@d111 1
a111 1
#	$Id: MAKEDEV,v 1.173 1998/10/02 22:33:52 obrien Exp $
d476 20
a495 16
	unit=`expr $i : '...\(.*\)'`
	case $unit in
	[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
		for part in 0 1 2 3 4 5 6 7
		do
			minor=`dkminor 0 $unit 0 $part` 
			partname=`dkitop $part`
			mknod  $name$unit$partname b $blk $minor
			mknod r$name$unit$partname c $chr $minor
		done
		chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
@


1.173
log
@Re-enable creating sd*s* devices.
Add note, that one should use da*s* however.
@
text
@d111 1
a111 1
#	$Id: MAKEDEV,v 1.172 1998/09/16 00:10:26 ken Exp $
d758 6
a763 2
	unit=`expr $i : 'bpf\(.*\)'`
	mknod bpf$unit c 23 $unit
@


1.172
log
@Change the permissions for the transport layer (xpt) and passthrough (pass)
devices from 644 to 600.

Reviewed by:	imp, gibbs
@
text
@d43 1
d111 1
a111 1
#	$Id: MAKEDEV,v 1.171 1998/09/15 10:21:35 gibbs Exp $
d268 1
a268 1
od*s*|da*s*|vn*s*|wd*s*|wfd*s*|fla*s*)
@


1.171
log
@Update for CAM.
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.170 1998/09/10 18:47:20 phk Exp $
d524 1
a524 1
	umask $disk_umask
a538 1
	umask 077
d542 1
a542 1
	umask $disk_umask
a556 1
	umask 077
@


1.170
log
@make the fla stuff actually work.
@
text
@d33 1
a33 2
#	st*	"NEW type scsi tapes" (old driver uses the
#		block devices of the disks to get access)
d41 1
a41 1
#	sd*	"SCSI disks"
a80 1
#	uk*	"unknown" device (supports ioctl calls only)
d83 1
d110 1
a110 1
#	$Id: MAKEDEV,v 1.169 1998/09/09 18:59:46 sos Exp $
a180 3
# Control bit for SCSI
scsictl=$((1 << 29))

d191 1
a191 1
	sh MAKEDEV sd0 sd1 sd2 sd3 wd0 wd1 wd2 wd3	# bdev, ordinary disk
d195 2
a196 2
	sh MAKEDEV cd0 matcd0 mcd0 scd0 wcd0 wst0	# bdev, cdrom
	sh MAKEDEV ft0 st0 wt0				# bdev, tape
d207 1
d267 1
a267 1
od*s*|sd*s*|vn*s*|wd*s*|wfd*s*|fla*s*)
d271 1
a271 1
	od*s*) name=od; blk=20; chr=70;;
d273 1
d438 1
a438 1
od*|sd*|vn*|wd*|wfd*|fla*)
d442 3
a444 2
	od*) name=od; blk=20; chr=70;;
	sd*) name=sd; blk=4;  chr=13;;
a462 7
		case $name in
		od|sd)
			minor=`dkminor 0 $unit 0 0`
			mknod r${name}${unit}.ctl c $chr $(($minor | $scsictl))
			chmod 600 r${name}${unit}.ctl
			;;
		esac
d498 5
a502 8
uk*)
	unit=`expr $i : 'uk\(.*\)'`
	mknod uk$unit c 31 $unit
	;;

worm*)
	umask $disk_umask
	unit=`expr $i : 'worm\(.*\)'`
d506 2
a507 8
	chr=62
	blk=23
	name=worm
	mknod ${name}${unit} b $blk ${unit}
	mknod r${name}${unit} c $chr ${unit}
	chgrp operator ${name}${unit} r${name}${unit}
	umask 077
	mknod r${name}${unit}.ctl c $chr `expr $unit + $scsictl `
d510 5
a514 5
# SCSI processor type driver
pt[0-9]*)
	chr=61
	name=pt
	unit=`expr $i : 'pt\([0-9][0-9]*\)'`
a519 1
	mknod ${name}${unit}.ctl c $chr `expr $unit + $scsictl `
d522 38
d592 1
a592 1
st*)
d601 6
a606 9
			mknod rst${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 0`
			mknod nrst${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 1`
			mknod erst${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 2`
			mknod st${unit}ctl.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 3`
			chgrp operator	rst${unit}.${mode}\
					nrst${unit}.${mode} \
					erst${unit}.${mode} \
					st${unit}ctl.${mode}
			chmod 600	st${unit}ctl.${mode}
a607 2
		mknod rst${unit}.ctl c $chr `expr $unit '*' 16 + $scsictl `
		chmod 600 rst${unit}.ctl
d609 3
a611 3
		ln rst${unit}.0 rst${unit}
		ln nrst${unit}.0 nrst${unit}
		ln erst${unit}.0 erst${unit}
d628 1
a628 1
		mknod ${name}${unit}	c $chr `expr $unit '*' 16 + 0`
a629 2
		mknod r${name}${unit}.ctl c $chr `expr $unit '*' 16 + $scsictl `
		chmod 600 r${name}${unit}.ctl
d641 3
a643 21
	cd*) unit=`expr $i : '..\(.*\)'`; name=cd; blk=6; chr=15;;
	mcd*) unit=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;;
	scd*) unit=`expr $i : '...\(.*\)'`; name=scd; blk=16; chr=45;;
	esac
	case $unit in
	0|1|2|3|4|5|6)
		mknod ${name}${unit}a	b $blk `expr $unit '*' 8 + 0`
		mknod ${name}${unit}c	b $blk `expr $unit '*' 8 + 2`
		mknod r${name}${unit}a	c $chr `expr $unit '*' 8 + 0`
		mknod r${name}${unit}c	c $chr `expr $unit '*' 8 + 2`
		chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
		case $name in
		cd)
			mknod r${name}${unit}.ctl c $chr `expr $unit '*' 8 + $scsictl `
			chmod 600 r${name}${unit}.ctl
			;;
		esac
		;;
	*)
		echo bad unit for disk in: $i
		;;
d645 23
@


1.169
log
@Add the wst device (ATAPI tape)
Allow 8 wcd devices instead of 4.
@
text
@d111 1
a111 1
#	$Id: MAKEDEV,v 1.168 1998/08/14 06:21:34 phk Exp $
d273 1
d276 1
a277 1
	vn*s*) name=vn; blk=15; chr=43;;
a278 1
	fla*s*) name=fla; blk=28; chr=101;;
d281 1
a281 1
	wfd*s*)
d443 1
a448 1
	fla*) name=fla; blk=28; chr=101;;
d451 1
a451 1
	wfd*)
@


1.168
log
@A long time ago, in a galaxy far, far away, someone made the (bonehead)
decision to limit the sound driver to one device.  With Luigi's pcm
driver, the unit number for the PnP detected cards is nearly always 1,
and so you can't create the symlinks that will make your sound work.

PR:		7564
Submitted by:	Doug White <dwhite@@resnet.uoregon.edu>
@
text
@d111 1
a111 1
#	$Id: MAKEDEV,v 1.167 1998/08/10 10:17:46 phk Exp $
d199 1
a199 1
	sh MAKEDEV cd0 matcd0 mcd0 scd0 wcd0		# bdev, cdrom
d687 1
a687 1
	0|1|2|3)
d697 14
@


1.167
log
@Add devices for M-systems DiskOnChip
@
text
@d111 1
a111 1
#	$Id: MAKEDEV,v 1.166 1998/08/04 21:45:20 brian Exp $
d1031 7
a1037 9
	if [ $unit = "0" ] ; then
		ln -fs mixer$unit mixer
		ln -fs sequencer$unit sequencer
		ln -fs dsp$unit dsp
		ln -fs audio$unit audio
		ln -fs dspW$unit dspW
		ln -fs music$unit music
		ln -fs pss$unit pss
	fi
@


1.166
log
@dgm uses devices cuaM* and ttyM*
Submitted by:   "IBS / Andre Oppermann" <andre@@pipeline.ch>
@
text
@d50 1
d111 1
a111 1
#	$Id: MAKEDEV,v 1.165 1998/07/03 15:43:20 des Exp $
d270 1
a270 1
od*s*|sd*s*|vn*s*|wd*s*|wfd*s*)
d278 1
d440 1
a440 1
od*|sd*|vn*|wd*|wfd*)
d448 1
@


1.165
log
@Not so fast, that was one '0+' too many.

PR:		7124
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.164 1998/07/02 07:39:01 des Exp $
d877 52
@


1.164
log
@Make sure the node count is an integer when mknod'ing pty, tty and vty.

PR:		misc/7124
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.163 1998/03/27 04:35:10 peter Exp $
d555 1
a555 1
		eval `echo $offset $name | awk ' { b=0+$1; n=0+$2 } END { \
@


1.163
log
@Hmm, silly me.  I should have read what everything else was doing.
The initial/lock devices for cua are owned by uucp.dialer as well.

Also, remove redundant chmod on si_control
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.162 1998/03/27 04:19:30 peter Exp $
d555 1
a555 1
		eval `echo $offset $name | awk ' { b=$1; n=$2 } END { \
d717 1
a717 1
	eval `echo ${chr} ${units} | awk ' { c=$1; n=$2 } END {
@


1.162
log
@Fix permissions on initial/lock specialix cua device nodes.

PR: 6137
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.161 1998/03/22 13:18:07 peter Exp $
a819 1
	chmod 600 si_control
a830 2
		chown uucp.dialer cuaA$name
		umask 77
d833 1
a833 1
		umask 7
@


1.161
log
@I misunderstood Bruce's hint.  The chown/chmod are unneeded.

Submitted by: bde
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.160 1998/03/22 11:42:03 peter Exp $
d832 2
d836 1
a836 1
		chown uucp.dialer cuaA$name cuaiA$name cualA$name
@


1.160
log
@Fix alphabetical ordering and and excessive cut/pasting.

Submitted by: bde
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.159 1998/03/21 14:26:02 peter Exp $
a1154 2
	chown root:wheel ipl ipnat ipstate ipauth
	chmod 600 ipl ipnat ipstate ipauth
@


1.159
log
@/dev nodes for ipfilter
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.158 1998/03/12 12:00:26 bde Exp $
d207 1
a207 1
	sh MAKEDEV bpf0 tun0 ipl			# cdev, network
d1154 1
a1154 1
	mknod ipstate c 79 3
@


1.158
log
@Improved comments and order for the `all' case:
- fixed comment about vn0.
- improved other comments.
- sorted lists alphabetically within lines.
- split up and sorted lines more logically.
@
text
@d108 1
d110 1
a110 1
#	$Id: MAKEDEV,v 1.157 1998/03/01 22:18:28 steve Exp $
d207 1
a207 1
	sh MAKEDEV bpf0 tun0				# cdev, network
d1148 9
@


1.157
log
@Create the cuaiA* and cualA* devices.

PR:		5872
Submitted by:	Adam Baran <badam@@mw.mil.pl>
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.156 1998/02/20 03:59:53 ahasty Exp $
d191 18
a208 16
	sh MAKEDEV std						# standard
	sh MAKEDEV fd0 fd1					# floppies
	sh MAKEDEV wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3		# bdev, disk
	sh MAKEDEV od0						# bdev, ODD
	sh MAKEDEV wfd0						# bdev, LS-120
	sh MAKEDEV vn0						# cdev
	sh MAKEDEV cd0 mcd0 scd0 matcd0 wcd0			# bdev, cdrom
	sh MAKEDEV ft0 wt0 st0					# bdev, tape
	sh MAKEDEV ttyd0 ttyd1 ttyd2 ttyd3			# cdev, serial
	sh MAKEDEV cuaa0 cuaa1 cuaa2 cuaa3			# cdev, serial
	sh MAKEDEV lpt0 lpt1 lpt2				# cdev, printer
	sh MAKEDEV pty0 ch0 tw0 bpf0				# cdev
	sh MAKEDEV perfmon speaker pcaudio psm0	mse0 sysmouse	# cdev
	sh MAKEDEV vty4						# cdev
	sh MAKEDEV tun0						# cdev
	sh MAKEDEV apm card0 card1				# cdev, laptop
@


1.156
log
@Reserve Major device  92 for the bktr (Bt848 video capture driver)
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.155 1998/02/18 13:54:45 msmith Exp $
d829 3
a831 1
		chown uucp.dialer cuaA$name
@


1.155
log
@Remove qcam entries
Submitted by:	pst
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.154 1998/02/17 15:28:29 jkh Exp $
d1069 2
a1070 2
	mknod bktr$unit c 79 $unit
	mknod tuner$unit c 79 $((16 + $unit ))
@


1.154
log
@New rocketport device entries, merged again (gack).
@
text
@a104 1
#	qcam*	Connectix QuickCam(tm) parallel port camera
d109 1
a109 1
#	$Id: MAKEDEV,v 1.153 1998/02/13 22:40:32 pst Exp $
a1058 6
	;;

qcam?)
	unit=`expr $i : 'qcam\(.*\)'`
	mknod qcam$unit c 73 $unit
	chmod 444 qcam$unit
@


1.153
log
@Change wfd major block device to 1 as part of the effort to make wfd's
bootable.
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.152 1998/02/09 08:41:49 cwt Exp $
a877 3
# Rocketport multiport serial card.
#
#
d880 2
a881 2
	Rnum=0; IRnum=32; LRnum=64
	unit=1; minor=0
d884 14
a897 20

	for i in $controllers; do
	  ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
	  echo -n "Creating $ndevices devices for $i: "
	  for dev in `jot $ndevices 0`; do
		name=ttyR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $Rnum 
		name=ttylR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $LRnum 
		name=ttyiR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $IRnum 
		Rnum=`expr $Rnum + 1`
		LRnum=`expr $LRnum + 1`
		IRnum=`expr $IRnum + 1`
	  done
	  unit=`expr $unit + 1`
	  echo " "
d903 2
a904 2
	Rnum=0; CUnum=128; ICUnum=160; LCUnum=192
	unit=1; minor=0
d907 14
a920 22

	umask 7
	for i in $controllers; do
	  ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
	  echo -n "Creating $ndevices devices for $i: "
	  for dev in `jot $ndevices 0`; do
		name=cuaR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $CUnum 
		name=cualR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $LCUnum 
		name=cuaiR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $ICUnum 
		Rnum=`expr $Rnum + 1`
		CUnum=`expr $CUnum + 1`
		LCUnum=`expr $LCUnum + 1`
		ICUnum=`expr $ICUnum + 1`
	  done
	  unit=`expr $unit + 1`
	  echo " "
a922 1
	umask 77
@


1.152
log
@Adjustments for ccd devices:

1) Resulting special files now in group operator.  (Reviewed by bde)
2) Use $disk_umask when creating ccd device specials.  (Suggested by
   bde)
3) No longer create rccd{n}.ctl; ccd's are not necessarily scsi.
   (Suggested by bde)
4) No need to split short lines.  (Suggested by bde)
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.151 1998/01/22 21:26:22 jkh Exp $
d274 1
a274 1
	wfd*s*) name=wfd; blk=24; chr=87;;
d443 1
a443 1
	wfd*) name=wfd; blk=24; chr=87;;
@


1.151
log
@Add wfd to all target, reorder devs to put like with like since we lost
all pretense of an alphabetical ordering some time back.
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.150 1998/01/16 22:12:49 pst Exp $
d475 1
a475 1
	umask 37
a480 3
		minor=`dkminor 0 $unit 0 0`
		mknod r${name}${unit}.ctl c $chr $(($minor | $scsictl))
		chmod 600 r${name}${unit}.ctl
d485 2
a486 4
			mknod  $name$unit$partname \
			      b $blk $minor
			mknod r$name$unit$partname \
			      c $chr $minor
d488 1
@


1.150
log
@Bring in IDE ATAPI floppy support.
This is Junichi's v1.0 driver.

NOTE: Major device numbers have been changed to avoid conflict with other
      FreeBSD 3.0 devices.  The new numbers should be considered "official."
      This driver is still considered "beta" quality, although we have been
      playing with it.  Please submit bugs to junichi and myself.

Submitted by:	junichi@@astec.co.jp
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.149 1998/01/09 18:32:51 steve Exp $
d193 5
a197 1
	sh MAKEDEV wd0 wd1 wd2 wd3 fd0 fd1 sd0 sd1 sd2 sd3	# bdev, disk
a198 1
	sh MAKEDEV od0						# bdev, ODD
@


1.149
log
@Fix generation of Comtrol RocketPort devices.

PR:		5468
Submitted by:	Steve Gericke <steveg@@comtrol.com>
@
text
@d40 1
d110 1
a110 1
#	$Id: MAKEDEV,v 1.148 1998/01/03 11:53:52 jkh Exp $
d264 1
a264 1
od*s*|sd*s*|vn*s*|wd*s*)
d271 13
a284 3
	unit=`expr $i : '..\([0-9]*\)s'`
	slice=`expr $i : '..[0-9]*s\([0-9]*\)'`
	part=`expr $i : '..[0-9]*s[0-9]*\(.*\)'`
d433 1
a433 1
od*|sd*|vn*|wd*)
d440 9
a449 1
	unit=`expr $i : '..\(.*\)'`
@


1.148
log
@strengthen mknod().
Submitted by:	bde
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.147 1998/01/02 22:16:15 jkh Exp $
d894 1
a894 1
	CUnum=128; ICUnum=160; LCUnum=192
d913 1
@


1.147
log
@Fix jkh typo in VTY rule.

PR:		5411
Submitted by:	Brian Tao <taob@@netcom.ca>
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.146 1997/12/29 09:45:23 jkh Exp $
d150 1
a150 1
# call mknod with rm -f first.
d153 2
a154 2
	/sbin/mknod $* || die 2 "/sbin/mknod $* failed"
	chown root.wheel "$1"
@


1.146
log
@Normalize default owner/group handling, fix bogons in a couple of
printf arg lists.
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.145 1997/12/29 00:10:20 jkh Exp $
d699 1
a699 1
			printf("mknod ttyv%01x c %d %d;", i, i, c); }'`
@


1.145
log
@Yet another slight bogon that I just noticed needed cleaning up.  The for
loop was sloppily written, taking advantage of a default for argument
handling which few are probably aware of rather than stating its purpose
more explicitly.  Can't also help but notice that the fd* entry also contains
far more comment lines than actual statements - can we please clean that
up?  The wt* entry could use a bit of the same.
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.144 1997/12/29 00:03:36 jkh Exp $
d152 3
a154 2
	rm -f $1 || die 1 "error removing $1, errno = $?"
	/sbin/mknod $* || die 2 "/sbin/mknod $* failed, errno = $?"
d206 16
a221 16
	mknod console	c 0 0;	chmod 600 console;	chown root.wheel console
	mknod drum	c 4 0;	chmod 640 drum;		chown root.kmem drum
	mknod kmem	c 2 1;	chmod 640 kmem;		chown root.kmem kmem
	mknod mem	c 2 0;	chmod 640 mem;		chown root.kmem mem
	mknod null	c 2 2;	chmod 666 null;		chown root.wheel null
	mknod random	c 2 3;	chmod 644 random;	chown root.wheel random
	mknod urandom	c 2 4;	chmod 644 urandom;	chown root.wheel urandom
	mknod zero	c 2 12;	chmod 666 zero;		chown root.wheel zero
	mknod io	c 2 14;	chmod 600 io;		chown root.wheel io
	mknod tty	c 1 0;	chmod 666 tty;		chown root.wheel tty
	mknod klog	c 7 0;	chmod 600 klog;		chown root.wheel klog
	mknod stdin	c 22 0; chmod 666 stdin;	chown root.wheel stdin
	mknod stdout	c 22 1; chmod 666 stdout;	chown root.wheel stdout
	mknod stderr	c 22 2; chmod 666 stderr;	chown root.wheel stderr
	mknod lkm	c 32 0;	chmod 644 lkm;		chown root.wheel lkm
	mknod pci	c 78 0; chmod 644 pci;		chown root.wheel pci
d258 1
a258 1
	chown root.operator r[Ww]t$u nr[Ww]t$u r[Ww]t$u[a-f] nr[Ww]t$u[a-f]
d539 1
a539 3
					mknod pty%s%s c 6 %d; \
					chown root.wheel tty%s%s pty%s%s;", \
					n, c, n, c, \
d541 1
a541 2
					n, c, b+i, \
					n, c, n, c); \
a682 2
	chown root.wheel lpt$unit
	chown root.wheel lpctl$unit
d688 1
a688 1
	chown root.operator tw$unit
d699 1
a699 3
			printf("mknod ttyv%01x c %d %d; \
				chown root.wheel ttyv%01x;", \
				i, i, c, i, i); }'`
a705 1
	chown root.wheel bpf$unit
a709 1
	chown root.wheel speaker
a728 1
	chown root.wheel tty*d$unit
a762 1
		chown root.wheel ttyc$name ttyic$name ttylc$name
a780 1
	chown root.wheel ttym$unit
a793 1
		chown root.wheel ttyA$name
a794 1
		chown root.wheel ttyiA$name
a795 1
		chown root.wheel ttylA$name
a800 1
	chown root.wheel si_control
a838 1
		chown root.wheel tty*D$name
a889 1
	chown root.wheel /dev/ttyR*
a927 1
	chown root.wheel mse$unit
a933 1
	chown root.wheel psm$unit
a946 1
	chown root.wheel pcaudio pcaudioctl
a952 1
	chown root.wheel socksys nfsd spx
a997 1
	chown root.wheel vatio
a1007 1
	chown root.wheel gsc${unit}*
d1013 1
a1013 1
	chown root.operator apm
a1021 1
	chown root.wheel card$unit
a1040 1
	chown root.wheel cronyx
d1046 1
a1046 1
	chown root.operator joy0 joy1
a1069 1
	chown root.wheel meteor$unit
a1076 1
	chown root.wheel bktr$unit tuner$unit
a1092 1
	chown root.wheel sysmouse consolectl
a1097 1
	chown root.wheel snp$unit
d1147 1
a1147 1
	chown root.kmem perfmon
@


1.144
log
@Whoops - one small tweak:  I eliminated the deprecated isdn case,
so also remove mention of it in the comments.
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.143 1997/12/29 00:02:18 jkh Exp $
d186 1
a186 2
for i
do
@


1.143
log
@Remove all explicit rm's (with and without wildcards) and replace them
with a function which does the rm/mknod in one step, eliminating the
gratuitous device node removal behavior of before.

Reviewed by:	bde
@
text
@a104 1
#	isdn*	ISDN devices
d109 1
a109 1
#	$Id: MAKEDEV,v 1.142 1997/12/19 14:14:18 brian Exp $
@


1.142
log
@The ``super scsi'' device is /dev/scc.
I'm not sure it's fully functional though !
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.141 1997/08/28 12:14:14 jkh Exp $
d116 6
d151 6
a206 2
	rm -f console drum mem kmem null random urandom zero io tty klog
	rm -f stdin stdout stderr lkm pci
d223 1
a223 2
	rm -f fd/*
	mkdir fd > null 2>&1
a244 1
	rm -f r[Ww]t$u nr[Ww]t$u r[Ww]t$u[a-f] nr[Ww]t$u[a-f]
a281 1
			rm -f  $name$unit$slicename* r$name$unit$slicename*
a324 1
	rm -f $name$unit* r$name$unit*
a407 1
	rm -f $name$unit* r$name$unit*
a439 1
			rm -f r${name}${unit}.ctl
a459 1
		rm -f r${name}${unit}.ctl
a480 1
	rm -f ssc
a485 1
	rm -f uk$unit
a497 1
	rm -f ${name}${unit}
a498 1
	rm -f r${name}${unit}
a501 1
	rm -f r${name}${unit}.ctl
a513 1
	rm -f ${name}${unit}
a514 1
	rm -f ${name}${unit}.ctl
d539 1
a539 2
				printf("rm -f tty%s%s pty%s%s; \
					mknod tty%s%s c 5 %d; \
a557 8
	#remove old stype names
	rm -f [hml]rst[0123456] [hml][en]rst[0123456] [hml]enrst[0123456]
	#remove new style names
	rm -f rst${unit} [en]rst${unit} enrst${unit}
	rm -f rst${unit}.[0123] nrst${unit}.[0123]\
		erst${unit}.[0123] st${unit}ctl.[0123]
	#remove control device

a571 1
		rm -f rst${unit}.ctl
a591 1
	rm -f $name$unit
a595 1
		rm -f r${name}${unit}.ctl
a612 1
	rm -f $name$unit? r$name$unit?
a621 1
			rm -f r${name}${unit}.ctl
a638 1
	rm -f $name$unit? r$name$unit? $name$unit?? r$name$unit??
a666 1
	rm -f wcd$unit? rwcd$unit?
a684 2
	rm -f lpt$unit
	rm -f lpctl$unit
a692 1
	rm -f tw$unit
d705 1
a705 1
			printf("rm -f ttyv%01x; mknod ttyv%01x c %d %d; \
a712 1
	rm -f bpf$unit
a717 1
	rm -f speaker
a724 1
	rm -f cua*a$unit
a734 1
	rm -f tty*d$unit
a752 1
		rm -f cuac$name cuaic$name cualc$name
a770 1
		rm -f ttyc$name ttyic$name ttylc$name
a782 1
	rm -f cuam$unit
a790 1
	rm -f ttym$unit
a805 1
		rm -f tty*A$name
a814 1
	rm -f si_control
a827 1
		rm -f cuaA$name
a852 1
		rm -f tty*D$name
a869 1
		rm -f cua*D$name
a887 4
	rm -f /dev/ttyR*
	rm -f /dev/ttyiR*
	rm -f /dev/ttylR*

a918 4
	rm -f /dev/cuaR*
	rm -f /dev/cuaiR*
	rm -f /dev/cualR*

a945 1
	rm -f mse$unit
a952 1
	rm -f psm$unit
d962 1
a962 2
	rm -f mouse
	ln -s $name mouse
a965 1
	rm -f pcaudio pcaudioctl
a971 1
	rm -f socksys nfsd spx
d974 1
a974 1
	ln -s socksys nfsd
d996 7
a1002 7
		rm -f mixer     ; ln -s mixer$unit mixer
		rm -f sequencer ; ln -s sequencer$unit sequencer
		rm -f dsp       ; ln -s dsp$unit dsp
		rm -f audio     ; ln -s audio$unit audio
		rm -f dspW      ; ln -s dspW$unit dspW
		rm -f music	; ln -s music$unit music
		rm -f pss       ; ln -s pss$unit pss
a1004 1
	rm -f mixer$unit	# Mixer	[ Control ]
a1005 2

	rm -f sequencer$unit	# Sequencer [ FM Synth and MIDI output ]
a1006 2

	rm -f midi midi$unit	# Midi 0
a1007 2

	rm -f dsp$unit		# DSP [ Digitized voice ]
a1008 2

	rm -f audio$unit	# SPARC audio [ Not fully implemented ]
a1009 2

	rm -f dspW$unit		# Wide DSP (each sample is 16 bits)
a1010 2

	rm -f sndstat		# Status Device [ Debugging interface, only 1 ]
a1011 1

a1012 2

	rm -f music$unit	# Sequencer level 2
a1013 2

	rm -f pss$unit		# PSS and programmable devices
a1014 1

a1019 1
	rm -f vatio
a1026 1
	rm -f gsc${unit}*
a1035 1
	rm -f apm
a1044 1
	rm -f card$unit
a1060 1
	rm -f $i
a1065 1
	rm -f cronyx
a1070 1
	rm -f joy0 joy1
a1077 1
	rm -f spigot
a1083 1
	rm -f ctx$unit
a1089 1
	rm -f qcam$unit
a1095 1
	rm -f meteor$unit
a1102 1
	rm -f bktr$unit tuner$unit
a1112 1
		rm -f tun$unit
a1119 1
	rm -f sysmouse consolectl
a1126 1
	rm -f snp$unit
a1130 51
# Valid arguments to isdn:
#	none	makes all the node but nic0
#	5000	makes nic0 for Niccy 5000
#	3008	makes nic0 for Niccy 3008
#	3009	makes nic0 for Niccy 3009
#	1000	makes nodes for Niccy 1000
#	tel*	makes nodes for TELES S0
#
isdn*)
	type=`expr $i : 'isdn\(.*\)'`
	if [ "X${type}" = "X" ]; then
		type=none
	fi
	unit=54
	rm -f nic0 snic0 n?ic0 isdn isdn? ity?? itel?? ispy
	mknod n8ic0 c $unit 0
	mknod snic0 c `expr $unit + 4` 0
	mknod n9ic0 c `expr $unit + 6` 0
	mknod isdn c `expr $unit + 1` 0
	mknod isdn1 c `expr $unit + 1` 1
	mknod isdn2 c `expr $unit + 1` 2
	mknod ity00 c `expr $unit + 2` 0
	mknod ity01 c `expr $unit + 2` 1
	mknod ityo0 c `expr $unit + 2` 130
	mknod ityo1 c `expr $unit + 2` 131
	mknod itel00 c `expr $unit + 3` 0
	mknod itel01 c `expr $unit + 3` 1
	mknod ispy c `expr $unit + 5` 0
	chown root.wheel n8ic0 n9ic0 snic0 isdn isdn? ity?? itel?? ispy
	chown uucp.wheel ityo[01]
	case $type in
	5000)
		ln snic0 nic0
		chown root.wheel nic0
		;;
	3008)
		ln n8ic0 nic0
		chown root.wheel nic0
		;;
	3009)
		ln n9ic0 nic0
		chown root.wheel nic0
		;;
	1000|tel*|TEL*|none)
		;;
	*)
		echo "No such ISDN device subtype: $type"
		;;
	esac
	;;

d1153 1
a1153 2
		echo "Don't understand that labpc name"
		exit
a1160 1
				rm -f $name$unit
a1165 1
				rm -f $name$i
a1176 1
	rm -f perfmon
@


1.141
log
@Add entries for Comtrol Rocketport driver.
Submitted by:	Amir Farah <amir@@comtrol.com>
@
text
@d79 1
d110 1
a110 1
#	$Id: MAKEDEV,v 1.140 1997/05/11 00:34:36 jmg Exp $
d475 5
@


1.140
log
@add a bktrX target (for Bt848 based cards)
@
text
@d68 2
d109 1
a109 1
#	$Id: MAKEDEV,v 1.139 1997/03/10 02:10:58 danny Exp $
d905 73
@


1.139
log
@Update MAKEDEV to handle lots of tun devices, consistent with the tun device
selection code in usr.sbin/ppp/os.c (tun0-tun127, rather than tuna and tunb).
Also, make it make all devices up to and including the requested one.
@
text
@d100 1
d107 1
a107 1
#	$Id: MAKEDEV,v 1.138 1997/03/05 14:04:00 joerg Exp $
d1097 9
@


1.138
log
@Now that we can read from a worm device, handle their permissions as
we do for other disk devices, too.
@
text
@d106 1
a106 1
#	$Id: MAKEDEV,v 1.137 1997/03/03 16:13:35 bde Exp $
d1098 9
a1106 5
tun?)
	unit=`expr $i : 'tun\(.*\)'`
	rm -f tun$unit
	mknod tun$unit c 52 $unit
	chown uucp.dialer tun$unit
@


1.137
log
@Merged Cortex frame grabber entry from 2.2.
@
text
@d106 1
a106 1
#	$Id$
d480 1
d492 2
@


1.136
log
@Revert $FreeBSD$ to $Id$
@
text
@d98 1
d1071 7
@


1.135
log
@Add worm(4)'s bdev entry.
@
text
@d105 1
a105 1
#	$FreeBSD$
@


1.134
log
@Use shifts instead of multiplications and `|' instead of `+' to simplify
dkminor().  Use $((1 << 29)) instead of a mysterious decimal number for
$scisctl.  Use dkminor() instead of repeating part of it for special cases.
Shortened some long lines.
@
text
@d484 1
d486 2
@


1.133
log
@Change to use some unused bits in the 'type' field to extend the unit field
to 9 bits (512 units) for disk devices.
@
text
@d137 1
a137 1
	echo $((512 * 65536 * $1 + $2 / 32 * 2097152 + $2 % 32 * 8 + 65536 * $3 + $4))
d164 1
a164 1
scsictl=536870912
d431 2
a432 1
			mknod r${name}${unit}.ctl c $chr `expr $unit / 32 '*' 2097152 + $unit % 32 '*' 8 + $scsictl `
d452 2
a453 1
		mknod r${name}${unit}.ctl c $chr `expr $unit / 32 '*' 2097152 + $unit % 32 '*' 8 + $scsictl `
@


1.132
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d137 1
a137 1
	echo $((32 * 65536 * $1 + 8 * $2 + 65536 * $3 + $4))
d263 1
a263 1
	[0-9]|[1-2][0-9]|30|31)
d423 1
a423 1
	[0-9]|[1-2][0-9]|30|31)
d431 1
a431 1
			mknod r${name}${unit}.ctl c $chr `expr $unit '*' 8 + $scsictl `
d449 1
a449 1
	[0-9]|[1-2][0-9]|30|31)
d451 1
a451 1
		mknod r${name}${unit}.ctl c $chr `expr $unit '*' 8 + $scsictl `
@


1.131
log
@Added apm and card[01] devices to all target.

Suggested by:	bde
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.130 1996/12/30 20:51:36 joerg Exp $
@


1.130
log
@While being here, also create all the gsc device nodes as described in
the gsc(4) man page, and allow for more than one unit number.
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.129 1996/12/13 07:54:57 jkh Exp $
d187 1
@


1.129
log
@Close PR#2198:

	I've added an installation from optical disk drive facility.
	This enables FreeBSD to be installed from an optical disk, which
	may be formatted in "super floppy" style or sliced into MSDOS-FS
	and UFS partitions.

	Note:  ncr.c should be reviewed by Stefan Esser <se@@freebsd.org>
	and cd.c by Joerg Wunsch <joerg@@freebsd.org> before bringing this
	into 2.2.

Submitted-By: Shunsuke Akiyama <akiyama@@kme.mei.co.jp>
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.128 1996/11/14 14:28:26 andreas Exp $
d1003 8
a1010 4
	rm -f gsc0
	mknod gsc0 c 47 0
	chmod 666 gsc0
	chown root.wheel gsc0
@


1.128
log
@Added $PATH to the end of PATH. Otherwise the command 'expr' can't be
found by the shell when running MAKEDEV from the fixit floppy environment.
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.127 1996/11/01 08:49:13 bde Exp $
d178 1
@


1.127
log
@Fixed cualc and cualD minor numbers which I broke in the previous commit.
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.126 1996/10/25 15:01:33 bde Exp $
d108 1
a108 1
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
@


1.127.2.1
log
@YAMFC
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.128 1996/11/14 14:28:26 andreas Exp $
d108 1
a108 1
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
@


1.127.2.2
log
@YAMFC
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.127.2.1 1996/11/16 21:03:15 phk Exp $
a177 1
	sh MAKEDEV od0						# bdev, ODD
@


1.127.2.3
log
@YAMFC (rev 1.130: make all the gsc devs)
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.127.2.2 1996/12/14 11:36:00 joerg Exp $
d1003 4
a1006 8
	unit=`expr $i : 'gsc\(.*\)'`
	rm -f gsc${unit}*
	mknod gsc${unit} c 47 $unit
	mknod gsc${unit}p c 47 $(($unit + 8))
	mknod gsc${unit}d c 47 $(($unit + 32))
	mknod gsc${unit}pd c 47 $(($unit + 40))
	chmod 666 gsc${unit}*
	chown root.wheel gsc${unit}*
@


1.127.2.4
log
@Bring in the apm & pccard devices into 2.2.
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.127.2.3 1996/12/30 20:52:22 joerg Exp $
a186 1
	sh MAKEDEV apm card0 card1				# cdev, laptop
@


1.127.2.5
log
@Add entry for the Cortex frame grabber.
Requested-By: Mark Taylor <mtaylor@@cybernet.com>
@
text
@a97 1
#	ctx*    Cortex-I video acquisition card
d105 1
a105 1
#	$Id: MAKEDEV,v 1.127.2.4 1997/01/14 17:19:38 nate Exp $
a1064 7
	;;

ctx?)
	unit=`expr $i : 'ctx\(.*\)'`
	rm -f ctx$unit
	mknod ctx$unit c 40 $unit
	chmod 444 ctx$unit
@


1.127.2.6
log
@YAMFC (extend the unit field to 9 bits for disk devices).
@
text
@d106 1
a106 1
#	$Id$
d138 1
a138 1
	echo $(($1 << 25 | ($2 / 32) << 21 | ($2 % 32) << 3 | $3 << 16 | $4))
d165 1
a165 1
scsictl=$((1 << 29))
d264 1
a264 1
	[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
d424 1
a424 1
	[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
d432 1
a432 2
			minor=`dkminor 0 $unit 0 0`
			mknod r${name}${unit}.ctl c $chr $(($minor | $scsictl))
d450 1
a450 1
	[0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
d452 1
a452 2
		minor=`dkminor 0 $unit 0 0`
		mknod r${name}${unit}.ctl c $chr $(($minor | $scsictl))
@


1.127.2.7
log
@YAMFC (rev 1.135: add bdev entries for worm(4))
@
text
@d106 1
a106 1
#	$Id: MAKEDEV,v 1.127.2.6 1997/03/03 16:07:30 bde Exp $
a484 1
	blk=23
a485 2
	rm -f ${name}${unit}
	mknod ${name}${unit} b $blk ${unit}
@


1.127.2.8
log
@YAMFC (rev 1.138: fix permissions of worm devices)
@
text
@d106 1
a106 1
#	$Id: MAKEDEV,v 1.127.2.7 1997/03/05 13:58:16 joerg Exp $
a479 1
	umask $disk_umask
a490 2
	chgrp operator ${name}${unit} r${name}${unit}
	umask 077
@


1.127.2.9
log
@YAMFC (rev 1.139: add more tun devices)
@
text
@d106 1
a106 1
#	$Id: MAKEDEV,v 1.127.2.8 1997/03/05 14:05:38 joerg Exp $
d1098 5
a1102 9
tun*)
	ntun=`expr $i : 'tun\(.*\)$'`
	unit=0
	while [ $unit -le $ntun ]; do
		rm -f tun$unit
		mknod tun$unit c 52 $unit
		chown uucp.dialer tun$unit
		unit=`expr $unit + 1`
	done
@


1.127.2.10
log
@Make one vn device in "all" rule.
@
text
@d106 1
a106 1
#	$Id: MAKEDEV,v 1.127.2.9 1997/03/11 11:15:39 joerg Exp $
a187 1
	sh MAKEDEV vn0						# cdev
@


1.127.2.11
log
@Add the Brooktree BT848 tv driver.
@
text
@a99 1
#	bktr*	Bt848 based video acquisition card (pci) 
d106 1
a106 1
#	$Id: MAKEDEV,v 1.127.2.10 1997/04/15 18:07:06 jkh Exp $
a1098 9
bktr?)  
	unit=`expr $i : 'bktr\(.*\)'`
	rm -f bktr$unit tuner$unit
	mknod bktr$unit c 79 $unit
	mknod tuner$unit c 79 $((16 + $unit ))
	chown root.wheel bktr$unit tuner$unit
	chmod 444 bktr$unit tuner$unit
	;;
 
@


1.127.2.12
log
@MFC: Make the super scsi device available (/dev/ssc).
@
text
@a76 1
#	ssc	The ``super scsi'' device
d107 1
a107 1
#	$Id: MAKEDEV,v 1.127.2.11 1997/09/09 10:47:51 markm Exp $
a472 5
	;;

ssc*)
	rm -f ssc
	mknod ssc c 49 0
@


1.127.2.13
log
@Bring in v1.0 of Junichi's ATAPI floppy driver (LS-120 floppy support).

NOTE: The major device numbers have been changed to avoid conflicts with
      devices present in 2.2 and later kernel releases.
Submitted by:	junichi@@astech.co.jp
@
text
@a39 1
#	wfd*	"IDE floppy" disk drives (LS-120)
d108 1
a108 1
#	$Id: MAKEDEV,v 1.127.2.12 1997/12/30 03:46:39 brian Exp $
d255 1
a255 1
od*s*|sd*s*|vn*s*|wd*s*|wfd*s*)
a261 13
	wfd*s*) name=wfd; blk=24; chr=87;;
	esac
	case $i in
	wfd*s*)
		unit=`expr $i : '...\([0-9]*\)s'`
		slice=`expr $i : '...[0-9]*s\([0-9]*\)'`
		part=`expr $i : '...[0-9]*s[0-9]*\(.*\)'`
		;;
	*)
		unit=`expr $i : '..\([0-9]*\)s'`
		slice=`expr $i : '..[0-9]*s\([0-9]*\)'`
		part=`expr $i : '..[0-9]*s[0-9]*\(.*\)'`
		;;
d263 3
d417 1
a417 1
od*|sd*|vn*|wd*|wfd*)
a423 9
	wfd*) name=wfd; blk=24; chr=87;;
	esac
	case $i in
	wfd*)
		unit=`expr $i : '...\(.*\)'`
		;;
	*)
		unit=`expr $i : '..\(.*\)'`
		;;
d425 1
@


1.127.2.14
log
@MFC: reorder all target.
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.127.2.13 1998/01/16 22:28:32 pst Exp $
d180 2
a181 2
	sh MAKEDEV fd0 fd1					# floppies
	sh MAKEDEV wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3		# bdev, disk
a182 3
	sh MAKEDEV wfd0						# bdev, LS-120
	sh MAKEDEV vn0						# cdev
	sh MAKEDEV cd0 mcd0 scd0 matcd0 wcd0			# bdev, cdrom
d191 1
@


1.127.2.15
log
@Merge from -current: Block device of wfd changed from 24 to 1
@
text
@d109 1
a109 1
#	$Id: MAKEDEV,v 1.127.2.14 1998/01/22 21:30:01 jkh Exp $
d265 1
a265 1
	wfd*s*) name=wfd; blk=1; chr=87;;
d437 1
a437 1
	wfd*) name=wfd; blk=1; chr=87;;
@


1.127.2.16
log
@MFC: selected improvements for etc files *not* including periodic changes,
     security tweaks or other kerberbos related stuff.  I expect that
     stuff to occur as a side-effect of what others will be doing in etc,
     if at all.
@
text
@a68 2
#	ttyR*	Rocketport dialin ports
#	cuaR*	Rocketport dialout ports
d102 1
a102 1
#	bktr*	Bt848 based video acquisition card (pci)
d104 1
d109 1
a109 1
#	$Id: MAKEDEV,v 1.127.2.15 1998/02/13 22:50:00 pst Exp $
a114 6
# Usage: die exitcode msg
die() {
	echo $2
	exit $1
}

a143 7
# Override mknod(2) to add extra handling to it.
mknod() {
	rm -f "$1" || exit 1
	/sbin/mknod "$@@" || die 2 "/sbin/mknod $@@ failed"
	chown root.wheel "$1" || exit 1
}

d174 2
a175 1
for i in $*; do
d197 20
a216 17
	mknod console	c 0 0;	chmod 600 console
	mknod drum	c 4 0;	chmod 640 drum;		chgrp kmem drum
	mknod kmem	c 2 1;	chmod 640 kmem;		chgrp kmem kmem
	mknod mem	c 2 0;	chmod 640 mem;		chgrp kmem mem
	mknod null	c 2 2;	chmod 666 null
	mknod random	c 2 3;	chmod 644 random
	mknod urandom	c 2 4;	chmod 644 urandom
	mknod zero	c 2 12;	chmod 666 zero
	mknod io	c 2 14;	chmod 600 io
	mknod tty	c 1 0;	chmod 666 tty
	mknod klog	c 7 0;	chmod 600 klog
	mknod stdin	c 22 0; chmod 666 stdin
	mknod stdout	c 22 1; chmod 666 stdout
	mknod stderr	c 22 2; chmod 666 stderr
	mknod lkm	c 32 0;	chmod 644 lkm
	mknod pci	c 78 0; chmod 644 pci
	mkdir -p fd
d238 1
d253 1
a253 1
	chgrp operator r[Ww]t$u nr[Ww]t$u r[Ww]t$u[a-f] nr[Ww]t$u[a-f]
d286 1
d330 1
d414 1
d455 1
d470 1
a470 1
	umask $disk_umask
d476 4
d484 4
a487 2
			mknod  $name$unit$partname b $blk $minor
			mknod r$name$unit$partname c $chr $minor
a488 1
		chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
d498 1
d504 1
d517 1
d519 1
d523 1
d536 1
d538 1
d563 6
a568 2
				printf("mknod tty%s%s c 5 %d; \
					mknod pty%s%s c 6 %d;", \
d570 1
a570 1
					n, c, b+i); \
d583 8
d605 1
d626 1
d631 1
d649 1
d659 1
d677 1
d706 1
d725 2
d729 2
d735 1
d737 1
a737 1
	chgrp operator tw$unit
d748 3
a750 1
			printf("mknod ttyv%01x c %d %d;", i, c, i); }'`
d756 1
d758 1
d762 1
d764 1
d770 1
d781 1
d786 1
d800 1
d819 1
d823 1
d832 1
d841 1
d844 1
d857 1
d859 1
d861 1
d863 1
d867 1
d870 1
d881 1
d907 1
d911 1
d925 1
a933 65
# Rocketport multiport serial card.
#
#
ttyR?)
	major=81
	Rnum=0; IRnum=32; LRnum=64
	unit=1; minor=0
	dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
	controllers=`awk '{print $1}' < /tmp/rp_list`

	for i in $controllers; do
	  ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
	  echo -n "Creating $ndevices devices for $i: "
	  for dev in `jot $ndevices 0`; do
		name=ttyR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $Rnum 
		name=ttylR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $LRnum 
		name=ttyiR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $IRnum 
		Rnum=`expr $Rnum + 1`
		LRnum=`expr $LRnum + 1`
		IRnum=`expr $IRnum + 1`
	  done
	  unit=`expr $unit + 1`
	  echo " "
	done
	;;

cuaR?)
	major=81
	Rnum=0; CUnum=128; ICUnum=160; LCUnum=192
	unit=1; minor=0
	dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
	controllers=`awk '{print $1}' < /tmp/rp_list`

	umask 7
	for i in $controllers; do
	  ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
	  echo -n "Creating $ndevices devices for $i: "
	  for dev in `jot $ndevices 0`; do
		name=cuaR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $CUnum 
		name=cualR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $LCUnum 
		name=cuaiR$Rnum
		echo -n "$name "
		mknod /dev/$name c $major $ICUnum 
		Rnum=`expr $Rnum + 1`
		CUnum=`expr $CUnum + 1`
		LCUnum=`expr $LCUnum + 1`
		ICUnum=`expr $ICUnum + 1`
	  done
	  unit=`expr $unit + 1`
	  echo " "
	done
	chown uucp.dialer /dev/cuaR*
	umask 77
	;;

d937 1
d939 1
d945 1
d947 1
d955 2
a956 1
	ln -fs $name mouse
d960 1
d963 1
d967 1
d970 2
a971 1
	ln -fs socksys nfsd
d992 7
a998 7
		ln -fs mixer$unit mixer
		ln -fs sequencer$unit sequencer
		ln -fs dsp$unit dsp
		ln -fs audio$unit audio
		ln -fs dspW$unit dspW
		ln -fs music$unit music
		ln -fs pss$unit pss
d1001 1
d1003 2
d1006 2
d1009 2
d1012 2
d1015 2
d1018 2
d1021 1
d1023 2
d1026 2
d1029 1
d1035 1
d1037 1
d1043 1
d1049 1
d1053 1
d1056 1
a1056 1
	chgrp operator apm
d1063 1
d1066 1
d1080 1
d1086 1
d1088 1
d1092 1
d1095 1
a1095 1
	chgrp operator joy0 joy1
d1100 1
d1107 1
d1114 1
d1121 1
d1123 1
d1127 1
a1127 1
bktr?)
d1129 1
d1132 1
d1135 1
a1135 1

d1140 1
d1148 1
d1151 1
d1156 1
d1158 52
d1234 2
a1235 1
		die 3 "Don't know LabPC type $i"
d1243 1
d1249 1
d1261 1
d1263 1
a1263 1
	chgrp kmem perfmon
@


1.127.2.17
log
@MFC: Use major 92 for the bktr driver
@
text
@d110 1
a110 1
#	$Id$
d1094 2
a1095 2
	mknod bktr$unit c 92 $unit
	mknod tuner$unit c 92 $((16 + $unit ))
@


1.127.2.18
log
@MFC: rocketport entries.  As Bruce notes, this rule needs a complete
rewrite so I'm going to sync it first with -current and then decide
how to rip it to bits.
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.127.2.17 1998/02/20 10:36:18 markm Exp $
d878 3
d883 2
a884 2
	BOARD=1; MINOR=65536; Rnum=0
	MINOR=`expr $BOARD \* 65536`
d887 20
a906 14
	rm -f /dev/ttyR*; rm -f /dev/ttyiR*; rm -f /dev/ttylR*
	for i in $controllers;do
 	   ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
	   echo -n "Creating $ndevices devices for $i: "
	   for dev in `jot $ndevices 0`;do
		   mknod /dev/ttyR$Rnum c $major $MINOR 
		   mknod /dev/ttylR$Rnum c $major `expr $MINOR + 32`
		   mknod /dev/ttyiR$Rnum c $major `expr $MINOR + 64` 
		   Rnum=`expr $Rnum + 1`
		   MINOR=`expr $MINOR + 1`
	   done
		BOARD=`expr $BOARD + 1`
		MINOR=`expr $BOARD \* 65536`
	   echo " "
d912 2
a913 2
	BOARD=1; MINOR=65536; Rnum=0
	MINOR=`expr $BOARD \* 65536`
d916 22
a937 14
	rm -f /dev/cuaR*; rm -f /dev/cuaiR*; rm -f /dev/cualR*
	for i in $controllers;do
 	   ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
	   echo -n "Creating $ndevices devices for $i: "
	   for dev in `jot $ndevices 0`;do
		   mknod /dev/cuaR$Rnum c  $major `expr $MINOR + 128`
		   mknod /dev/cualR$Rnum c $major `expr $MINOR + 128 + 32`
		   mknod /dev/cuaiR$Rnum c $major `expr $MINOR + 128 + 64` 
		   Rnum=`expr $Rnum + 1`
		   MINOR=`expr $MINOR + 1`
	   done
		BOARD=`expr $BOARD + 1`
		MINOR=`expr $BOARD \* 65536`
	   echo " "
d940 1
@


1.127.2.19
log
@MFC: create the cuaiA* and cualA* devices.
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.127.2.18 1998/02/27 20:59:44 jkh Exp $
d830 1
a830 3
		mknod cuaiA$name c $major `expr $minor + 128 + 65536`
		mknod cualA$name c $major `expr $minor + 128 + 131072`
		chown uucp.dialer cuaA$name cuaiA$name cualA$name
@


1.127.2.20
log
@MFC: force conversion of unit count from string to integer to avoid
endless loop.

PR:		misc/7124
Reviewed by:	Well, bde bickered a little :)
@
text
@d110 1
a110 1
#	$Id: MAKEDEV,v 1.127.2.19 1998/03/01 22:20:11 steve Exp $
d715 1
a715 1
	eval `echo ${chr} ${units} | awk ' { c=$1; n=0+$2 } END {
@


1.127.2.21
log
@$Id$ -> $FreeBSD$
@
text
@d110 1
a110 1
# $FreeBSD$
@


1.126
log
@Restored order of cuac above ttyc.

Fixed some style bugs for cua* and tty*.

Removed superfluous chmod for consolectl.

FIxed a tiny security bug for perfmon and changed the style for
perfmon to match the style of the non-std devices.
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.125 1996/10/22 20:41:03 se Exp $
d763 1
a763 1
		mknod cualc$name c $major `expr $minor + 64 + 192`
d888 1
a888 1
		mknod cualD$name c $major `expr $minor + 64 + 192`
@


1.125
log
@Add character device (78,0): pci

Submitted by:	wollman
@
text
@d105 1
a105 1
#	$Id: MAKEDEV,v 1.124 1996/10/13 01:12:01 davidg Exp $
d749 4
a752 2
ttyc?)
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v"
d754 1
a754 2
	card=`expr $i : 'tty.*\(.\)$'`

d760 5
a764 5
		rm -f ttyc$name ttyic$name ttylc$name
		mknod ttyc$name c $major $minor
		mknod ttyic$name c $major `expr $minor + 32`
		mknod ttylc$name c $major `expr $minor + 64`
		chown root.wheel ttyc$name ttyic$name ttylc$name
d766 1
d769 3
a771 2
cuac?)
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v"
d773 1
a773 3
	card=`expr $i : 'cua.*\(.\)$'`
	umask 7

d779 5
a783 5
		rm -f cuac$name cuaic$name cualc$name
		mknod cuac$name c $major `expr $minor + 128`
		mknod cuaic$name c $major `expr $minor + 160`
		mknod cualc$name c $major `expr $minor + 192`
		chown uucp.dialer cuac$name cuaic$name cualc$name
a784 1
	umask 77
d832 1
a861 1

d874 1
d876 1
a879 2
	umask 7

d887 2
a888 2
		mknod cuaiD$name c $major `expr $minor + 160`
		mknod cualD$name c $major `expr $minor + 192`
a1087 1
	chmod 600 sysmouse consolectl
d1197 4
a1200 1
	mknod perfmon	c 2 32;	chmod 640 perfmon;	chown root.kmem perfmon
@


1.124
log
@Changed ttyc? and cuac? specifications to support multiple controllers.
A "MAKEDEV ttyc0" now creates 32 units for controller 0, ttyc1 for
controller 1, etc..
@
text
@d103 1
d105 1
a105 1
#	$Id: MAKEDEV,v 1.123 1996/09/09 18:47:19 sos Exp $
d189 1
a189 1
	rm -f stdin stdout stderr lkm
d205 1
@


1.123
log
@Fix for the problem that moused hangs if it is started from /etc/rc
Introduces the /dev/consolectl device for controlling various
console related things (given syscons is used).
@
text
@d104 1
a104 1
#	$Id: MAKEDEV,v 1.122 1996/09/09 00:02:44 ache Exp $
d747 18
d766 3
d770 12
a781 7
	unit=`expr $i : 'cua.*\(.\)$'`
	rm -f cua*c$unit
	m=`ttyminor $unit`
	mknod cuac$unit c 48 `expr $m + 128`
	mknod cuaic$unit c 48 `expr $m + 32 + 128`
	mknod cualc$unit c 48 `expr $m + 64 + 128`
	chown uucp.dialer cua*c$unit
a782 10
	;;

ttyc?)
	unit=`expr $i : 'tty.*\(.\)$'`
	rm -f tty*c$unit
	m=`ttyminor $unit`
	mknod ttyc$unit c 48 $m
	mknod ttyic$unit c 48 `expr $m + 32`
	mknod ttylc$unit c 48 `expr $m + 64`
	chown root.wheel tty*c$unit
@


1.122
log
@Use the same perm/owner for sysmouse as for others mouse devices
@
text
@d104 1
a104 1
#	$Id: MAKEDEV,v 1.121 1996/09/08 23:56:27 ache Exp $
d1066 1
a1066 1
	rm -f sysmouse
d1068 3
a1070 1
	chown root.wheel sysmouse
@


1.121
log
@Make sysmouse device for syscons
@
text
@d104 1
a104 1
#	$Id: MAKEDEV,v 1.120 1996/07/02 23:11:06 wosch Exp $
d1068 1
a1068 1
	chmod 644 sysmouse
@


1.120
log
@update comment for tun*
add comment for snp*
@
text
@d56 1
d104 1
a104 1
#	$Id: MAKEDEV,v 1.119 1996/06/07 15:47:15 ache Exp $
d182 1
a182 1
	sh MAKEDEV perfmon speaker pcaudio psm0 mse0		# cdev
d1063 6
@


1.119
log
@IDE cd fixes:
wcd?a is missing
wrong partition number was used for wcd?c
@
text
@d94 2
a95 1
#	tun	Tunneling IP device
d103 1
a103 1
#	$Id: MAKEDEV,v 1.118 1996/05/03 05:37:34 asami Exp $
@


1.118
log
@Bring in ccd support.

Entry to create ccd devices.
@
text
@d102 1
a102 1
#	$Id: MAKEDEV,v 1.117 1996/05/02 09:15:57 jkh Exp $
d665 4
a668 2
		mknod wcd${unit}c  b $blk `expr $unit '*' 8 + 0`
		mknod rwcd${unit}c c $chr `expr $unit '*' 8 + 0`
@


1.117
log
@Add wcd0 to `all' target.  The fate of the IDE CDROM support in 2.2
is becoming clearer.. :-)
@
text
@d102 1
a102 1
#	$Id: MAKEDEV,v 1.116 1996/03/26 21:04:54 wollman Exp $
d429 27
@


1.116
log
@Provide for creation of /dev/perfmon.
@
text
@d102 1
a102 1
#	$Id: MAKEDEV,v 1.115 1996/03/19 03:48:53 jkh Exp $
d174 1
a174 1
	sh MAKEDEV cd0 mcd0 scd0 matcd0				# bdev, cdrom
@


1.115
log
@Fix Nate's spamming of this file - every backquote needs a matching one.. :-)
@
text
@d100 1
d102 1
a102 1
#	$Id: MAKEDEV,v 1.114 1996/03/18 20:28:27 nate Exp $
d180 1
a180 1
	sh MAKEDEV speaker pcaudio psm0 mse0			# cdev
d1138 4
@


1.114
log
@Added some comments regarding the apm device, and added support to
create the PC-CARD devices.

Note: The APM character special device is named /dev/apm and not apm0 as
was prvioiusly since only one APM device can exist in a system at a time
according to the the APM specifications.
@
text
@d101 1
a101 1
#	$Id: MAKEDEV,v 1.113 1996/02/02 19:25:15 pst Exp $
d967 1
a967 1
	unit=`expr $i : 'card\(.*\)'
@


1.113
log
@Add support for Connectix QuickCam(tm)
@
text
@d80 3
d84 1
d101 1
a101 1
#	$Id: MAKEDEV,v 1.112 1996/01/31 15:02:51 mpp Exp $
d959 14
a972 4
	rm -f apm0
	mknod apm0 c 39 0
	chown root.operator apm0
	chmod 660 apm0
@


1.112
log
@Another round of spelling fixes.
@
text
@d93 1
d97 1
a97 1
#	$Id: MAKEDEV,v 1.111 1996/01/28 19:10:37 bde Exp $
d995 7
@


1.111
log
@Use umask disk_umask=037 for all (writable) disks.  Use umask
tape_umask=017 for all tapes.  This has a significant effect only
for ft and st (they were created with the wrong umask 002 and then
chmod'ed to mode 640; now they are created with mode 660).

Chmod the st control devices (mode 3) to 600.  These need to be
more secure than the st i/o devices, but were less secure.

Use the default umask of 077 for joy0.  002 gave mode 664, which
is insecure.

Use umask 037 for ch*.  Cosmetic.

Removed redundant chmod's.

Sorted case lists for disks.
@
text
@d39 1
a39 1
#	wd*	"winchester" disk drives (ST506,IDE,ESDI,RLL,...)
d41 6
a46 6
#	sd*	"scsi disks"
#	cd*	"scsi cdrom disks"
#	mcd*	"mitsumi cdrom disks"
#	scd*	"sony cdrom disks"
#	matcd*	"Matsushita (panasonic) cdrom disks"
#	wcd*	"IDE cdrom disks"
d91 2
a92 2
#	spigot	Video Spigot video aquisition card
#	meteor*	Matrox Meteor video aquisition card (pci)
d96 1
a96 1
#	$Id: MAKEDEV,v 1.110 1995/12/31 09:30:30 joerg Exp $
d883 1
a883 1
# minor		linux			freebsd
@


1.110
log
@Restrict /dev/io perms to 0600.
@
text
@d96 1
a96 1
#	$Id: MAKEDEV,v 1.109 1995/12/03 17:26:21 markm Exp $
d157 4
d216 1
a216 1
	umask 7
d239 2
a240 2
sd*s*|vn*s*|wd*s*|od*s*)
	umask 37
d242 1
a245 1
	od*s*) name=od; blk=20; chr=70;;
d298 1
a298 1
	umask 2
a372 1
		chmod 640 ${name}${unit}* r${name}${unit}*
a380 1

d382 1
a382 1
	umask 2
a392 1
		chmod 640 ${name}${unit}* r${name}${unit}*
d401 2
a402 2
sd*|vn*|wd*|od*)
	umask 37
d404 1
d406 1
a407 2
	vn*) name=vn; blk=15; chr=43;;
	od*) name=od; blk=20; chr=70;;
d417 1
a417 1
		sd|od)
a447 1
	chmod 600 r${name}${unit}.ctl
a462 1
	chmod 600 ${name}${unit}.ctl
d502 1
a502 1
	umask 2
d526 1
a526 4
			chmod 640	rst${unit}.${mode}\
					nrst${unit}.${mode} \
					erst${unit}.${mode}
			chmod 660	st${unit}ctl.${mode}
d544 1
a544 1
	umask 2
a553 1
		chmod 640 ${name}${unit}
d566 1
a566 1
	umask 2
a579 1
		chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]
d956 1
a956 1
	chown root.wheel apm0
a982 1
	umask 2
d1000 1
@


1.109
log
@Move the creation of the *random devices to the same "target" as the
rest of the memory group - std. Also correct the permissions so as not
to force a security hole. If /dev/*random have the permission 640 and
ownership bin.kmem, it forces applications that need random numbers
to be at least SGID. Picture the scene of a SGID PGP being able to
read /dev/kmem!
@
text
@d96 1
a96 1
#	$Id: MAKEDEV,v 1.108 1995/10/29 15:52:31 bde Exp $
d185 1
a185 1
	mknod io	c 2 14;	chmod 640 io;		chown root.kmem io
@


1.108
log
@Add random and urandom.
@
text
@d96 1
a96 1
#	$Id: MAKEDEV,v 1.107 1995/10/17 16:26:54 bde Exp $
d175 2
a176 2
	rm -f console drum mem kmem null zero io tty klog stdin stdout stderr
	rm -f lkm
d182 2
a874 10
	;;

random)
	rm -f random
	mknod random	c 2 3;	chmod 660 random;	chown root.kmem random
	;;

urandom)
	rm -f urandom
	mknod urandom	c 2 4;	chmod 660 urandom;	chown root.kmem urandom
@


1.107
log
@Update Digiboard entries.

Submitted by:	"Serge A. Babkin" <babkin@@hq.icb.chel.su>
@
text
@d96 1
a96 1
#	$Id: MAKEDEV,v 1.106 1995/09/22 20:42:11 peter Exp $
d873 10
@


1.106
log
@Update the /dev naming for the Specialix driver..  I've changed it to do
the same sort of thing as the Digiboard driver (ttyD*), as creating 96
/dev entries one by one was very painful.
@
text
@d96 1
a96 1
#	$Id: MAKEDEV,v 1.105 1995/09/16 23:15:01 ats Exp $
d800 1
a800 1
#       unused{14} CARD{2} major{8} CALLOUT{1} LOCK{1} INIT{1} unused{1} PORT{4}
a801 1
#   PORT bitfield in future versions may be extended to 5 bits.
d803 3
d807 1
a807 1
	nports=16
d810 6
a815 4
	port=0
	while [ $port -lt $nports ]; do
		minor=`expr $card \* 65536 + $port`
		name=`expr $card \* 100 + $port + 1000 | cut -c 2-4` 
a817 1
		chown root.wheel ttyD$name
a818 1
		chown root.wheel ttyiD$name
d820 1
a820 2
		chown root.wheel ttylD$name
		port=`expr $port + 1`
d824 1
a824 1
	nports=16
d828 6
a833 4
	port=0
	while [ $port -lt $nports ]; do
		minor=`expr $card \* 65536 + $port`
		name=`expr $card \* 100 + $port + 1000 | cut -c 2-4` 
a835 1
		chown uucp.dialer cuaD$name
a836 1
		chown uucp.dialer cuaiD$name
d838 1
a838 2
		chown uucp.dialer cualD$name
		port=`expr $port + 1`
@


1.105
log
@Add a description for the wcd* devices to the Disks section.
@
text
@d63 1
a63 1
#	ttyA*	Specialix SI/XIO dialin ports
d96 1
a96 1
#	$Id: MAKEDEV,v 1.104 1995/09/03 20:40:16 jkh Exp $
d759 17
a775 21
ttyA?)
	unit=`expr $i : 'tty.*\(.\)$'`
	rm -f tty*A$unit
	m=`ttyminor $unit`
	mknod ttyA$unit c 68 `expr $m - 1`
	mknod ttyiA$unit c 68 `expr $m + 65536 - 1`
	mknod ttylA$unit c 68 `expr $m + 131072 - 1`
	chown root.wheel ttyA$unit
	;;
cuaA?)
	umask 7
	unit=`expr $i : 'cua.*\(.\)$'`
	rm -f cuaA$unit
	m=`ttyminor $unit`
	mknod cuaA$unit c 68 `expr $m + 128 - 1`
	chown uucp.dialer cuaA$unit
	umask 77
	;;

# the user mode process "gets" to the card via this..
si_control)
d780 15
@


1.104
log
@Add entries for Digiboard serial card and document Specialix driver
entries while I'm at it.
Submitted by:	"Serge A. Babkin" <babkin@@hq.icb.chel.su> + mods by jkh
@
text
@d46 1
d96 1
a96 1
#	$Id: MAKEDEV,v 1.103 1995/08/19 15:50:56 joerg Exp $
@


1.103
log
@Install the hooks for the Japanese `od' driver (aka. MOD).

Submitted by:	akiyama@@kme.mei.co.jp (Shunsuke Akiyama)
@
text
@d62 4
d95 1
a95 1
#	$Id: MAKEDEV,v 1.102 1995/08/18 11:29:05 jkh Exp $
d783 46
@


1.102
log
@Device entry for IDE CDROM driver.
Submitted by:	Serge Vakulenko <vak@@cronyx.ru>
@
text
@d47 1
d91 1
a91 1
#	$Id: MAKEDEV,v 1.101 1995/08/13 22:05:51 peter Exp $
d228 1
a228 1
sd*s*|vn*s*|wd*s*)
d234 1
d393 1
a393 1
sd*|vn*|wd*)
d399 1
d409 1
a409 1
		sd)
@


1.101
log
@Add simple hooks to create /dev entries for the Specialix driver
Reviewed by:
Submitted by:
Obtained from:
@
text
@d90 1
a90 1
#	$Id: MAKEDEV,v 1.100 1995/08/01 13:15:52 jkh Exp $
d612 20
@


1.100
log
@Add device support for the Matrox Meteor.
Submitted by:	james
@
text
@d90 1
a90 1
#	$Id: MAKEDEV,v 1.99 1995/07/30 12:56:26 jkh Exp $
d726 30
@


1.99
log
@Fix the mknod for spigot.
@
text
@d86 1
d90 1
a90 1
#	$Id: MAKEDEV,v 1.98 1995/07/29 05:25:08 bde Exp $
d884 7
@


1.98
log
@Remove /dev/ from socksys link again.

Move `Individual slices' case earlier so that it can be used to handle
sliced floppies.

Remove superfluous `chmod 600's.

Fix formatting of device list.

Don't group setting of umasks with setting of units.

Remove superfluous trailing semicolons.
@
text
@d89 1
a89 1
#	$Id: MAKEDEV,v 1.97 1995/07/29 00:40:40 jkh Exp $
d881 1
a881 1
	mknod spigot 11 0
@


1.97
log
@New sound device names.
Reviewed by:	hasty & lowe
Submitted by:	pst
@
text
@d69 4
a72 6
# Call units:
#
# SCSI devices (other than CD-ROM, tape and disk)
#   uk*     "unknown" device (supports ioctl calls only)
# worm*     WORM driver
#   pt*     Processor Type (HP scanner, as one example)
d87 1
a87 1
#   labpc*  National Instrument's Lab-PC and LAB-PC+
d89 1
a89 1
#	$Id: MAKEDEV,v 1.96 1995/07/21 13:02:13 jkh Exp $
d203 2
a204 1
	umask 7 ; u=`expr $i : '..\(.*\)'`
d225 58
d284 3
a286 2
	umask 2 ; unit=`expr $i : '..\(.*\)'`
	name=fd; blk=2; chr=9;
d370 3
a372 2
	umask 2 ; unit=`expr $i : '..\(.*\)'`
	name=ft; blk=2; chr=9;
a389 58
# Individual slices.
sd*s*|vn*s*|wd*s*)
	umask 37
	case $i in
	sd*s*) name=sd; blk=4;  chr=13;;
	wd*s*) name=wd; blk=0;  chr=3;;
	vn*s*) name=vn; blk=15; chr=43;;
	esac
	unit=`expr $i : '..\([0-9]*\)s'`
	slice=`expr $i : '..[0-9]*s\([0-9]*\)'`
	part=`expr $i : '..[0-9]*s[0-9]*\(.*\)'`
	case $unit in
	[0-9]|[1-2][0-9]|30|31)
		case $slice in
		[0-9]|[1-2][0-9]|30)
			oldslice=$slice
			slice=$(($slice+1))
			slicename=`dkitos $slice`
			rm -f  $name$unit$slicename* r$name$unit$slicename*
			minor=`dkminor 0 $unit $slice $dkrawpart`
			mknod  $name$unit$slicename b $blk $minor
			mknod r$name$unit$slicename c $chr $minor
			case $part in
			[a-h])
				case $oldslice in
				0) slice=$oldslice ;;
				esac
				for part in 0 1 2 3 4 5 6 7
				do
					minor=`dkminor 0 $unit $slice $part`
					partname=`dkitop $part`
					mknod  $name$unit$slicename$partname \
					      b $blk $minor
					mknod r$name$unit$slicename$partname \
					      c $chr $minor
				done
				;;
			"")
				;;
			*)
				echo bad partition for disk in: $i
				;;
			esac
			chgrp operator $name$unit$slicename* \
				      r$name$unit$slicename*
			;;
		*)
			echo bad slice for disk in: $i
			;;
		esac
		;;
	*)
		echo bad unit for disk in: $i "(unit=$unit, slice=$slice, part=$part)"
		;;
	esac
	umask 77
	;;

d492 3
a494 2
	umask 2 ; unit=`expr $i : '..\(.*\)'`
	chr=14;
d537 2
a538 1
	umask 2 ; unit=`expr $i : '..\(.*\)'`
d560 1
a560 1
	umask 2 ;
d591 1
a591 1
	umask 2 ;
d763 1
a763 1
	ln -s /dev/socksys /dev/nfsd
a896 1
	chmod 600 snp$unit
a926 1
	chmod 600 n8ic0 n9ic0 snic0 isdn isdn? ity?? itel?? ispy
a931 1
		chmod 600 nic0
a935 1
		chmod 600 nic0
a939 1
		chmod 600 nic0
@


1.96
log
@Part of Vincenzo Capuano's changes to xntpd to support the
Boeder DCF77 Receiver.
Submitted by:	Vincenzo Capuano <VCAPUANO@@VMPROFS.ESOC.ESA.DE>
@
text
@d29 1
a29 1
#	(see http://www.cs.hut.fi/~jvh/lites.html for more info on LITES)
d91 1
a91 1
#	$Id: MAKEDEV,v 1.95 1995/05/18 10:51:03 jkh Exp $
d760 1
a760 1
	ln -s socksys nfsd
d766 11
d781 12
a792 3
	chr=30
	rm -f mixer		# Mixer	[ Control ]
	mknod mixer		c $chr 0
d794 2
a795 2
	rm -f sequencer		# Sequencer [ FM Synth and MIDI output ]
	mknod sequencer		c $chr 1
d797 2
a798 2
	rm -f midi midi00	# Midi 0
	mknod midi00		c $chr 2
d800 2
a801 2
	rm -f dsp		# DSP [ Digitized voice ]
	mknod dsp		c $chr 3
d803 2
a804 2
	rm -f audio		# SPARC audio [ Not fully implemented ]
	mknod audio		c $chr 4
d806 2
a807 2
	rm -f dsp16		# DSP16 [ Same as dsp, except 16 bits ]
	mknod dsp16		c $chr 5
d809 1
a809 1
	rm -f sndstat		# Status Device [ Debugging interface ]
d812 1
a812 5
	rm -f sequencer2	# Sequencer level 2
	mknod sequencer2	c $chr 8

	rm -f pss		# PSS Device
	mknod pss		c $chr 9
d814 2
a815 2
	rm -f midi01		# Midi 1
	mknod midi01		c $chr 18
d817 2
a818 2
	rm -f dsp1		# DSP 1 [ SB emulation of PAS16 or 2nd audio ]
	mknod dsp1		c $chr 19
d820 1
a820 2
	rm -f audio1	# Sparc Audio 1 [ SB emulation of PAS16 or 2nd audio ]
	mknod audio1	c $chr 20
@


1.95
log
@Add tun0 to the all rule.
@
text
@d55 3
d91 1
a91 1
#	$Id: MAKEDEV,v 1.94 1995/05/15 09:44:10 rgrimes Exp $
@


1.95.4.1
log
@Pull in my fix from the HEAD.
@
text
@d88 1
a88 1
#	$Id: MAKEDEV,v 1.95 1995/05/18 10:51:03 jkh Exp $
d860 1
a860 1
	mknod spigot c 11 0
@


1.95.4.2
log
@Brought in changes from main branch: everything except the new sound code
device changes. The sound code in 2.1 hasn't (yet?) been updated.
@
text
@d29 1
a29 1
#	(see http://www.cs.hut.fi/lites.html for more info on LITES)
a46 1
#	od*	"optical disks"
a54 3
# Time devices:
#	refclock-*  serial ports used by xntpd parse refclocks
#
d66 6
a71 4
# SCSI devices (other than CD-ROM, tape and disk):
#	uk*	"unknown" device (supports ioctl calls only)
#	worm*	WORM driver
#	pt*	Processor Type (HP scanner, as one example)
a84 1
#	meteor*	Matrox Meteor video aquisition card (pci)
d86 1
a86 1
#	labpc*	National Instrument's Lab-PC and LAB-PC+
d88 1
a88 1
#	$Id: MAKEDEV,v 1.103 1995/08/19 15:50:56 joerg Exp $
d202 1
a202 2
	umask 7
	u=`expr $i : '..\(.*\)'`
a222 59
# Individual slices.
sd*s*|vn*s*|wd*s*|od*s*)
	umask 37
	case $i in
	sd*s*) name=sd; blk=4;  chr=13;;
	wd*s*) name=wd; blk=0;  chr=3;;
	vn*s*) name=vn; blk=15; chr=43;;
	od*s*) name=od; blk=20; chr=70;;
	esac
	unit=`expr $i : '..\([0-9]*\)s'`
	slice=`expr $i : '..[0-9]*s\([0-9]*\)'`
	part=`expr $i : '..[0-9]*s[0-9]*\(.*\)'`
	case $unit in
	[0-9]|[1-2][0-9]|30|31)
		case $slice in
		[0-9]|[1-2][0-9]|30)
			oldslice=$slice
			slice=$(($slice+1))
			slicename=`dkitos $slice`
			rm -f  $name$unit$slicename* r$name$unit$slicename*
			minor=`dkminor 0 $unit $slice $dkrawpart`
			mknod  $name$unit$slicename b $blk $minor
			mknod r$name$unit$slicename c $chr $minor
			case $part in
			[a-h])
				case $oldslice in
				0) slice=$oldslice ;;
				esac
				for part in 0 1 2 3 4 5 6 7
				do
					minor=`dkminor 0 $unit $slice $part`
					partname=`dkitop $part`
					mknod  $name$unit$slicename$partname \
					      b $blk $minor
					mknod r$name$unit$slicename$partname \
					      c $chr $minor
				done
				;;
			"")
				;;
			*)
				echo bad partition for disk in: $i
				;;
			esac
			chgrp operator $name$unit$slicename* \
				      r$name$unit$slicename*
			;;
		*)
			echo bad slice for disk in: $i
			;;
		esac
		;;
	*)
		echo bad unit for disk in: $i "(unit=$unit, slice=$slice, part=$part)"
		;;
	esac
	umask 77
	;;

d224 2
a225 3
	umask 2
	unit=`expr $i : '..\(.*\)'`
	name=fd; blk=2; chr=9
d309 2
a310 3
	umask 2
	unit=`expr $i : '..\(.*\)'`
	name=ft; blk=2; chr=9
d328 59
a386 1
sd*|vn*|wd*|od*)
a391 1
	od*) name=od; blk=20; chr=70;;
d401 1
a401 1
		sd|od)
d488 2
a489 3
	umask 2
	unit=`expr $i : '..\(.*\)'`
	chr=14
d532 1
a532 2
	umask 2
	unit=`expr $i : '..\(.*\)'`
d554 1
a554 1
	umask 2
d585 1
a585 1
	umask 2
a612 20
wcd*)
	umask 2 ;
	unit=`expr $i : '...\(.*\)'`
	blk=19
	chr=69
	rm -f wcd$unit? rwcd$unit?
	case $unit in
	0|1|2|3)
		mknod wcd${unit}c  b $blk `expr $unit '*' 8 + 0`
		mknod rwcd${unit}c c $chr `expr $unit '*' 8 + 0`
		chgrp operator wcd${unit}[a-h] rwcd${unit}[a-h]
		chmod 640 wcd${unit}[a-h] rwcd${unit}[a-h]
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

a720 30
# Specialix SI/XIO.
# Note: these are 'base 1' to match the numbers on the panels, and to match
#       the manual that comes with the system.
ttyA?)
	unit=`expr $i : 'tty.*\(.\)$'`
	rm -f tty*A$unit
	m=`ttyminor $unit`
	mknod ttyA$unit c 68 `expr $m - 1`
	mknod ttyiA$unit c 68 `expr $m + 65536 - 1`
	mknod ttylA$unit c 68 `expr $m + 131072 - 1`
	chown root.wheel ttyA$unit
	;;
cuaA?)
	umask 7
	unit=`expr $i : 'cua.*\(.\)$'`
	rm -f cuaA$unit
	m=`ttyminor $unit`
	mknod cuaA$unit c 68 `expr $m + 128 - 1`
	chown uucp.dialer cuaA$unit
	umask 77
	;;

# the user mode process "gets" to the card via this..
si_control)
	rm -f si_control
	mknod si_control c 68 262144
	chmod 600 si_control
	chown root.wheel si_control
	;;

a863 7
meteor?)
	unit=`expr $i : 'meteor\(.*\)'`
	rm -f meteor$unit
	mknod meteor$unit c 67 $unit
	chmod 444 meteor$unit
	;;

d876 1
d907 1
d913 1
d918 1
d923 1
@


1.95.4.3
log
@Brought in changes from main branch: new sound device names, entries for
Specialix, Digiboard, ATAPI CDROM, 'od', matrox meteor, spigot, etc.
@
text
@a61 4
#	ttyA*	Specialix SI/XIO dialin ports
#	cuaA*	Specialix SI/XIO dialout ports
#	ttyD*	Digiboard - 16 dialin ports
#	cuaD*	Digiboard - 16 dialout ports
d91 1
a91 1
#	$Id: MAKEDEV,v 1.95.4.2 1995/08/30 06:14:21 davidg Exp $
a780 46
# Digiboard PC/?? 16 port card.
# The current scheme of minor numbering is:
#
#       unused{14} CARD{2} major{8} CALLOUT{1} LOCK{1} INIT{1} unused{1} PORT{4}
#
#   PORT bitfield in future versions may be extended to 5 bits.
#   CARD bitfield in future versions may be extended to 3 bits.
ttyD?)
	nports=16
	major=58
	card=`expr $i : 'tty.*\(.\)$'`
	port=0
	while [ $port -lt $nports ]; do
		minor=`expr $card \* 65536 + $port`
		name=`expr $card \* 100 + $port + 1000 | cut -c 2-4` 
		rm -f tty*D$name
		mknod ttyD$name c $major $minor
		chown root.wheel ttyD$name
		mknod ttyiD$name c $major `expr $minor + 32`
		chown root.wheel ttyiD$name
		mknod ttylD$name c $major `expr $minor + 64`
		chown root.wheel ttylD$name
		port=`expr $port + 1`
	done
	;;
cuaD?)
	nports=16
	major=58
	card=`expr $i : 'cua.*\(.\)$'`
	umask 7
	port=0
	while [ $port -lt $nports ]; do
		minor=`expr $card \* 65536 + $port`
		name=`expr $card \* 100 + $port + 1000 | cut -c 2-4` 
		rm -f cua*D$name
		mknod cuaD$name c $major `expr $minor + 128`
		chown uucp.dialer cuaD$name
		mknod cuaiD$name c $major `expr $minor + 160`
		chown uucp.dialer cuaiD$name
		mknod cualD$name c $major `expr $minor + 192`
		chown uucp.dialer cualD$name
		port=`expr $port + 1`
	done
	umask 77
	;;

a822 11
#
# changes from Linux voxware
# minor		linux			freebsd
# 8		sequencer2 (aka music0)	music0
# 17		patmgr0			sequencer1
# 33		patmgr1			sequencer2
#

	unit=`expr $i : 'snd\(.*\)'`
	chr=30

d827 3
a829 9
	if [ $unit = "0" ] ; then
		rm -f mixer     ; ln -s mixer$unit mixer
		rm -f sequencer ; ln -s sequencer$unit sequencer
		rm -f dsp       ; ln -s dsp$unit dsp
		rm -f audio     ; ln -s audio$unit audio
		rm -f dspW      ; ln -s dspW$unit dspW
		rm -f music	; ln -s music$unit music
		rm -f pss       ; ln -s pss$unit pss
	fi
d831 2
a832 2
	rm -f mixer$unit	# Mixer	[ Control ]
	mknod mixer$unit	c $chr `expr $unit '*' 16 + 0`
d834 2
a835 2
	rm -f sequencer$unit	# Sequencer [ FM Synth and MIDI output ]
	mknod sequencer$unit	c $chr `expr $unit '*' 16 + 1`
d837 2
a838 2
	rm -f midi midi$unit	# Midi 0
	mknod midi$unit		c $chr `expr $unit '*' 16 + 2`
d840 2
a841 2
	rm -f dsp$unit		# DSP [ Digitized voice ]
	mknod dsp$unit		c $chr `expr $unit '*' 16 + 3`
d843 2
a844 2
	rm -f audio$unit	# SPARC audio [ Not fully implemented ]
	mknod audio$unit	c $chr `expr $unit '*' 16 + 4`
d846 2
a847 2
	rm -f dspW$unit		# Wide DSP (each sample is 16 bits)
	mknod dspW$unit		c $chr `expr $unit '*' 16 + 5`
d849 2
a850 2
	rm -f sndstat		# Status Device [ Debugging interface, only 1 ]
	mknod sndstat		c $chr 6
d852 2
a853 1
				# minor number 7 is unused
d855 2
a856 2
	rm -f music$unit	# Sequencer level 2
	mknod music$unit	c $chr `expr $unit '*' 16 + 8`
d858 2
a859 2
	rm -f pss$unit		# PSS and programmable devices
	mknod pss$unit		c $chr `expr $unit '*' 16 + 9`
d861 2
a862 1
				# minor numbers 10-15 are unused
@


1.95.4.4
log
@Brought in changes from revs 1.105-1.106: add a comment and make it easier
to create Specialix devices.
@
text
@a45 1
#	wcd*	"IDE cdrom disks"
d62 1
a62 1
#	ttyA*	Specialix SI/XIO dialin ports ('*' = number of devices)
d95 1
a95 1
#	$Id: MAKEDEV,v 1.106 1995/09/22 20:42:11 peter Exp $
d758 21
a778 17
ttyA*)
	major=68
	nports=`expr $i : 'ttyA\(.*\)$'`
	port=1
	while [ $port -le $nports ]; do
		minor=`expr $port - 1`
		name=`expr $port + 1000 | cut -c 3-4` 
		rm -f tty*A$name
		mknod ttyA$name c $major $minor
		chown root.wheel ttyA$name
		mknod ttyiA$name c $major `expr $minor + 65536`
		chown root.wheel ttyiA$name
		mknod ttylA$name c $major `expr $minor + 131072`
		chown root.wheel ttylA$name
		port=`expr $port + 1`
	done
	# For the user-mode control program, 'sicontrol'
a782 15
	;;
cuaA*)
	umask 7
	major=68
	nports=`expr $i : 'cuaA\(.*\)$'`
	port=1
	while [ $port -le $nports ]; do
		minor=`expr $port - 1`
		name=`expr $port + 1000 | cut -c 3-4` 
		rm -f cuaA$name
		mknod cuaA$name c $major `expr $minor + 128`
		chown uucp.dialer cuaA$name
		port=`expr $port + 1`
	done
	umask 77
@


1.95.4.5
log
@Brought in changes from rev 1.107: fix dgb driver portion.
@
text
@d96 1
a96 1
#	$Id: MAKEDEV,v 1.95.4.4 1995/09/26 07:41:19 davidg Exp $
d800 1
a800 1
#       unused{14} CARD{2} major{8} CALLOUT{1} LOCK{1} INIT{1} PORT{5}
d802 1
a803 3
#
# See dgb(4)
#
d805 1
a805 1
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
d808 4
a811 6

	for unit in $portlist
	do
		minor=`ttyminor $unit`
		minor=`expr $card \* 65536 + $minor`
		name=$card$unit
d814 1
d816 1
d818 2
a819 1
		chown root.wheel tty*D$name
d823 1
a823 1
	portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
d827 4
a830 6

	for unit in $portlist
	do
		minor=`ttyminor $unit`
		minor=`expr $card \* 65536 + $minor`
		name=$card$unit
d833 1
d835 1
d837 2
a838 1
		chown uucp.dialer cua*D$name
@


1.95.4.6
log
@Add wcd0 to `all' target.
@
text
@d96 1
a96 1
#	$Id: MAKEDEV,v 1.95.4.5 1995/10/17 21:42:38 davidg Exp $
d164 1
a164 1
	sh MAKEDEV cd0 mcd0 scd0 matcd0	wcd0			# bdev, cdrom
@


1.95.4.7
log
@Add short-hand entries for gusmax, pas16 and sb sound cards.
Submitted by:	lowe
@
text
@d84 1
a84 4
#	snd*	various sound cards (generic entries)
#	gusmax	A GUS MAX sound card (does various snd* entries)
#	pas16	A ProAudio Spectrum 16 card (does various snd* entries)
#	sb	A sound blaster card (any type)
d96 1
a96 1
#	$Id: MAKEDEV,v 1.95.4.6 1995/10/30 02:59:41 jkh Exp $
a940 11
	;;

# More specialized cases of snd driver.
gusmax)
	sh /dev/MAKEDEV snd0 snd1 snd2
	;;
pas16)
	sh /dev/MAKEDEV snd0 snd1
	;;
sb)
	sh /dev/MAKEDEV snd0
@


1.95.4.8
log
@Make gusmax use the faster DSP.  Also collapse some of the
`rm foo; ln -s bar foo' entries into the simpler `ln -fs bar foo'
@
text
@d99 1
a99 1
#	$Id: MAKEDEV,v 1.95.4.7 1995/11/09 15:53:38 jkh Exp $
d867 2
a868 1
	ln -fs $name mouse
d904 7
a910 7
		ln -fs mixer$unit mixer
		ln -fs sequencer$unit sequencer
		ln -fs dsp$unit dsp
		ln -fs audio$unit audio
		ln -fs dspW$unit dspW
		ln -fs music$unit music
		ln -fs pss$unit pss
a948 1
	ln -fs /dev/dsp2 /dev/dsp
@


1.95.4.9
log
@Bring in changes from the HEAD.
- Fixed apm device name
- Bring in PC-CARD device support
@
text
@d99 1
a99 1
#	$Id: MAKEDEV,v 1.95.4.8 1995/11/10 04:42:37 jkh Exp $
d972 4
a975 14
	rm -f apm
	chr=39
	mknod apm c $chr 0
	chown root.operator apm
	chmod 660 apm
	;;

card*)
	unit=`expr $i : 'card\(.*\)'`
	chr=50
	rm -f card$unit
	mknod card$unit c $chr $unit
	chmod 644 card$unit
	chown root.wheel card$unit
@


1.95.4.10
log
@Bring in ccd support from -current.  Note that conf.c has two missing
entries in front of ccd (stl and qcam) and the ccd driver won't work
(wrong character special major) until someone fills the two slots.
@
text
@d99 1
a99 1
#	$Id: MAKEDEV,v 1.95.4.9 1996/03/21 19:52:18 nate Exp $
a422 27
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

ccd*)
	umask 37
	name=ccd
	blk=21; chr=74
	unit=`expr $i : '...\(.*\)'`
	case $unit in
	[0-9]|[1-2][0-9]|30|31)
		rm -f r${name}${unit}.ctl
		mknod r${name}${unit}.ctl c $chr `expr $unit '*' 8 + $scsictl `
		chmod 600 r${name}${unit}.ctl
		for part in 0 1 2 3 4 5 6 7
		do
			minor=`dkminor 0 $unit 0 $part` 
			partname=`dkitop $part`
			mknod  $name$unit$partname \
			      b $blk $minor
			mknod r$name$unit$partname \
			      c $chr $minor
		done
@


1.95.4.11
log
@Bring in qcam driver
@
text
@a95 1
#	qcam*	Connectix QuickCam parallel port camera
d99 1
a99 1
#	$Id: MAKEDEV,v 1.95.4.10 1996/05/03 06:02:41 asami Exp $
a1049 7
	;;

qcam?)
	unit=`expr $i : 'qcam\(.*\)'`
	rm -f qcam$unit
	mknod qcam$unit c 73 $unit
	chmod 444 qcam$unit
@


1.95.4.12
log
@Merge from HEAD, except:

	Clients that used gnumalloc still do, despite the merge.  We're not
	bringing phkmalloc over.

	Thread stuff left out.

	PCCARD support left out.
@
text
@d39 1
a39 1
#	wd*	"Winchester" disk drives (ST506,IDE,ESDI,RLL,...)
d41 6
a46 6
#	sd*	"SCSI disks"
#	cd*	"SCSI CD-ROM disks"
#	mcd*	"Mitsumi CD-ROM disks"
#	scd*	"Sony CD-ROM disks"
#	matcd*	"Matsushita (Panasonic) CD-ROM disks"
#	wcd*	"IDE CD-ROM disks"
a79 3
# PC-CARD (previously called PCMCIA) support
#	card*	PC-CARD slots
#
a80 1
#	apm	Advanced Power Management BIOS
d84 4
a87 1
#	snd*	various sound cards
d94 3
a96 3
#	spigot	Video Spigot video acquisition card
#	meteor*	Matrox Meteor video acquisition card (pci)
#	qcam*	Connectix QuickCam(tm) parallel port camera
a98 1
#	perfmon	CPU performance-monitoring counters
d100 1
a100 1
#	$Id: MAKEDEV,v 1.95.4.11 1996/05/04 07:18:45 pst Exp $
a160 4
# Standard umasks
disk_umask=037			# allow group operator to read disks
tape_umask=017			# allow group operator to read/write tapes

d168 1
a168 1
	sh MAKEDEV cd0 mcd0 scd0 matcd0 wcd0			# bdev, cdrom
d174 1
a174 1
	sh MAKEDEV perfmon speaker pcaudio psm0 mse0		# cdev
d179 2
a180 2
	rm -f console drum mem kmem null random urandom zero io tty klog
	rm -f stdin stdout stderr lkm
a185 2
	mknod random	c 2 3;	chmod 644 random;	chown root.wheel random
	mknod urandom	c 2 4;	chmod 644 urandom;	chown root.wheel urandom
d187 1
a187 1
	mknod io	c 2 14;	chmod 600 io;		chown root.wheel io
d214 1
a214 1
	umask $tape_umask
d237 2
a238 2
od*s*|sd*s*|vn*s*|wd*s*)
	umask $disk_umask
a239 1
	od*s*) name=od; blk=20; chr=70;;
d243 1
d296 1
a296 1
	umask $disk_umask
d371 1
d380 1
d382 1
a382 1
	umask $tape_umask
d393 1
d402 2
a403 2
od*|sd*|vn*|wd*)
	umask $disk_umask
a404 1
	od*) name=od; blk=20; chr=70;;
d406 1
d408 1
a408 1
	wd*) name=wd; blk=0;  chr=3;;
d418 1
a418 1
		od|sd)
d476 1
d492 1
d532 1
a532 1
	umask $tape_umask
d556 4
a559 1
			chmod 600	st${unit}ctl.${mode}
d577 1
a577 1
	umask 37
d587 1
d600 1
a600 1
	umask $disk_umask
d614 1
d895 1
a895 2
	rm -f mouse
	ln -s $name mouse
d917 1
a917 1
# minor		Linux			FreeBSD
d931 7
a937 7
		rm -f mixer     ; ln -s mixer$unit mixer
		rm -f sequencer ; ln -s sequencer$unit sequencer
		rm -f dsp       ; ln -s dsp$unit dsp
		rm -f audio     ; ln -s audio$unit audio
		rm -f dspW      ; ln -s dspW$unit dspW
		rm -f music	; ln -s music$unit music
		rm -f pss       ; ln -s pss$unit pss
d973 12
d1039 1
a1063 1
	chown root.wheel meteor$unit
a1177 4
	;;

perfmon)
	mknod perfmon	c 2 32;	chmod 640 perfmon;	chown root.kmem perfmon
@


1.95.4.13
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d39 1
a39 1
#	wd*	"winchester" disk drives (ST506,IDE,ESDI,RLL,...)
d41 6
a46 6
#	sd*	"scsi disks"
#	cd*	"scsi cdrom disks"
#	mcd*	"mitsumi cdrom disks"
#	scd*	"sony cdrom disks"
#	matcd*	"Matsushita (panasonic) cdrom disks"
#	wcd*	"IDE cdrom disks"
d80 3
d84 1
d88 1
a88 4
#	snd*	various sound cards (generic entries)
#	gusmax	A GUS MAX sound card (does various snd* entries)
#	pas16	A ProAudio Spectrum 16 card (does various snd* entries)
#	sb	A sound blaster card (any type)
d95 3
a97 3
#	spigot	Video Spigot video aquisition card
#	meteor*	Matrox Meteor video aquisition card (pci)
#	qcam*	Connectix QuickCam parallel port camera
d100 1
d163 4
d174 1
a174 1
	sh MAKEDEV cd0 mcd0 scd0 matcd0	wcd0			# bdev, cdrom
d180 1
a180 1
	sh MAKEDEV speaker pcaudio psm0 mse0			# cdev
d185 2
a186 2
	rm -f console drum mem kmem null zero io tty klog stdin stdout stderr
	rm -f lkm
d192 2
d195 1
a195 1
	mknod io	c 2 14;	chmod 640 io;		chown root.kmem io
d222 1
a222 1
	umask 7
d245 2
a246 2
sd*s*|vn*s*|wd*s*|od*s*)
	umask 37
d248 1
a251 1
	od*s*) name=od; blk=20; chr=70;;
d304 1
a304 1
	umask 2
a378 1
		chmod 640 ${name}${unit}* r${name}${unit}*
a386 1

d388 1
a388 1
	umask 2
a398 1
		chmod 640 ${name}${unit}* r${name}${unit}*
d407 2
a408 2
sd*|vn*|wd*|od*)
	umask 37
d410 1
d412 1
a413 2
	vn*) name=vn; blk=15; chr=43;;
	od*) name=od; blk=20; chr=70;;
d423 1
a423 1
		sd|od)
a480 1
	chmod 600 r${name}${unit}.ctl
a495 1
	chmod 600 ${name}${unit}.ctl
d535 1
a535 1
	umask 2
d559 1
a559 4
			chmod 640	rst${unit}.${mode}\
					nrst${unit}.${mode} \
					erst${unit}.${mode}
			chmod 660	st${unit}ctl.${mode}
d577 1
a577 1
	umask 2
a586 1
		chmod 640 ${name}${unit}
d599 1
a599 1
	umask 2
a612 1
		chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]
d893 2
a894 1
	ln -fs $name mouse
d916 1
a916 1
# minor		linux			freebsd
d930 7
a936 7
		ln -fs mixer$unit mixer
		ln -fs sequencer$unit sequencer
		ln -fs dsp$unit dsp
		ln -fs audio$unit audio
		ln -fs dspW$unit dspW
		ln -fs music$unit music
		ln -fs pss$unit pss
a971 12
# More specialized cases of snd driver.
gusmax)
	sh /dev/MAKEDEV snd0 snd1 snd2
	ln -fs /dev/dsp2 /dev/dsp
	;;
pas16)
	sh /dev/MAKEDEV snd0 snd1
	;;
sb)
	sh /dev/MAKEDEV snd0
	;;

a1025 1
	umask 2
d1050 1
d1165 4
@


1.95.4.14
log
@Merge from rev 1.110: fix the /dev/io security hole
@
text
@d100 1
a100 1
#	$Id: MAKEDEV,v 1.95.4.13 1996/06/05 02:36:45 jkh Exp $
d187 1
a187 1
	mknod io	c 2 14;	chmod 600 io;		chown root.wheel io
@


1.95.4.15
log
@Merge with HEAD. Add /dev/random
@
text
@d100 1
a100 1
#	$Id: MAKEDEV,v 1.95.4.14 1996/06/25 17:37:52 joerg Exp $
d179 2
a180 2
	rm -f console drum mem kmem null random urandom zero io tty klog
	rm -f stdin stdout stderr lkm
a185 2
	mknod random	c 2 3;	chmod 644 random;	chown root.wheel random
	mknod urandom	c 2 4;	chmod 644 urandom;	chown root.wheel urandom
@


1.95.4.16
log
@Merged from HEAD.  Everything except perfmon, wcd bugs (wcd doesn't
decode the partition bits, so having both wcd0a and wcd0c is dangerous
and almost useless) and sound and mouse anachronisms.  All cosmetic
except for fixing some transiently wrong permissions and one missing
chgrp (there are still many minor bugs in this area).
@
text
@d39 1
a39 1
#	wd*	"Winchester" disk drives (ST506,IDE,ESDI,RLL,...)
d41 6
a46 6
#	sd*	"SCSI disks"
#	cd*	"SCSI CD-ROM disks"
#	mcd*	"Mitsumi CD-ROM disks"
#	scd*	"Sony CD-ROM disks"
#	matcd*	"Matsushita (Panasonic) CD-ROM disks"
#	wcd*	"IDE CD-ROM disks"
a79 3
# PC-CARD (previously called PCMCIA) support
#	card*	PC-CARD slots
#
a80 1
#	apm	Advanced Power Management BIOS
d94 3
a96 3
#	spigot	Video Spigot video acquisition card
#	meteor*	Matrox Meteor video acquisition card (pci)
#	qcam*	Connectix QuickCam(tm) parallel port camera
d100 1
a100 1
#	$Id: MAKEDEV,v 1.95.4.15 1996/06/25 20:26:40 markm Exp $
a160 4
# Standard umasks
disk_umask=037			# allow group operator to read disks
tape_umask=017			# allow group operator to read/write tapes

d168 1
a168 1
	sh MAKEDEV cd0 mcd0 scd0 matcd0 wcd0			# bdev, cdrom
d216 1
a216 1
	umask $tape_umask
d239 2
a240 2
od*s*|sd*s*|vn*s*|wd*s*)
	umask $disk_umask
a241 1
	od*s*) name=od; blk=20; chr=70;;
d245 1
d298 1
a298 1
	umask $disk_umask
d373 1
d382 1
d384 1
a384 1
	umask $tape_umask
d395 1
d404 2
a405 2
od*|sd*|vn*|wd*)
	umask $disk_umask
a406 1
	od*) name=od; blk=20; chr=70;;
d408 1
d410 1
a410 1
	wd*) name=wd; blk=0;  chr=3;;
d420 1
a420 1
		od|sd)
d478 1
d494 1
d534 1
a534 1
	umask $tape_umask
d558 4
a561 1
			chmod 600	st${unit}ctl.${mode}
d579 1
a579 1
	umask 37
d589 1
d602 1
a602 1
	umask $disk_umask
d616 1
d919 1
a919 1
# minor		Linux			FreeBSD
d1041 1
a1065 1
	chown root.wheel meteor$unit
@


1.95.4.17
log
@$Id$ -> $FreeBSD$
@
text
@d104 1
a104 1
# $FreeBSD$
@


1.94
log
@Remove all /dev/'s from device names, they should all be relative
to /dev.  Putting absolute paths in here breaks the make release
process, and screws up testing of this script in other directories.

Submitted by:	bde
@
text
@d88 1
a88 1
#	$Id: MAKEDEV,v 1.93 1995/05/15 06:55:18 gpalmer Exp $
d164 1
@


1.93
log
@Clean up the matcd entry so it deletes the *matcdl* entries before trying
to create new ones.

Reviewed by:	davidg, rgrimes
@
text
@d88 1
a88 1
#	$Id: MAKEDEV,v 1.92 1995/05/11 20:39:36 jkh Exp $
d756 1
a756 1
	ln -s /dev/socksys /dev/nfsd
d893 13
a905 13
	mknod /dev/n8ic0 c $unit 0
	mknod /dev/snic0 c `expr $unit + 4` 0
	mknod /dev/n9ic0 c `expr $unit + 6` 0
	mknod /dev/isdn c `expr $unit + 1` 0
	mknod /dev/isdn1 c `expr $unit + 1` 1
	mknod /dev/isdn2 c `expr $unit + 1` 2
	mknod /dev/ity00 c `expr $unit + 2` 0
	mknod /dev/ity01 c `expr $unit + 2` 1
	mknod /dev/ityo0 c `expr $unit + 2` 130
	mknod /dev/ityo1 c `expr $unit + 2` 131
	mknod /dev/itel00 c `expr $unit + 3` 0
	mknod /dev/itel01 c `expr $unit + 3` 1
	mknod /dev/ispy c `expr $unit + 5` 0
d911 3
a913 3
		ln /dev/snic0 /dev/nic0
		chmod 600 /dev/nic0
		chown root.wheel /dev/nic0
d916 3
a918 3
		ln /dev/n8ic0 /dev/nic0
		chmod 600 /dev/nic0
		chown root.wheel /dev/nic0
d921 3
a923 3
		ln /dev/n9ic0 /dev/nic0
		chmod 600 /dev/nic0
		chown root.wheel /dev/nic0
@


1.92
log
@The lites web page has moved.
Submitted by:	rich
@
text
@d88 1
a88 1
#	$Id: MAKEDEV,v 1.91 1995/05/07 23:04:03 ache Exp $
d588 1
a588 1
	rm -f $name$unit? r$name$unit?
@


1.91
log
@Change 'rc' entries from 'r' to 'm', conflict with ptys
@
text
@d29 1
a29 1
#	(see http://www.cs.hut.fi/lites.html for more info on LITES)
d88 1
a88 1
#	$Id: MAKEDEV,v 1.90 1995/05/03 18:15:35 dufault Exp $
@


1.90
log
@Make scsi control devices such as "/dev/rsd0.ctl".
@
text
@d88 1
a88 1
#	$Id: MAKEDEV,v 1.89 1995/05/01 14:34:45 dufault Exp $
d700 3
a702 1
cuar?)
d705 1
a705 1
	rm -f cuar$unit
d707 2
a708 2
	mknod cuar$unit c 63 `expr $m + 128`
	chown uucp.dialer cuar$unit
d712 1
a712 1
ttyr?)
d714 1
a714 1
	rm -f ttyr$unit
d716 2
a717 2
	mknod ttyr$unit c 63 $m
	chown root.wheel ttyr$unit
@


1.89
log
@Use the correct offset for LabPC digital devices.
@
text
@d88 1
a88 1
#	$Id: MAKEDEV,v 1.88 1995/04/30 07:56:45 jkh Exp $
d146 3
d399 7
d422 10
a431 2
	rm -f worm$unit
	mknod worm$unit c 62 $unit
d436 2
d439 3
d443 5
a447 2
	rm -f pt$unit
	mknod pt$unit c 61 $unit
d496 1
d515 4
d541 3
d568 7
@


1.88
log
@As a public service (and because I'd like to see more LITES people chose
FreeBSD), add mach-4 target to MAKEDEV; it creates various compatability
devices for Mach4.
Submitted by:	(Submitter name unknown) <root@@ns2.redline.ru>
@
text
@d88 1
a88 1
#	$Id: MAKEDEV,v 1.87 1995/04/28 07:53:43 bde Exp $
d909 1
a909 1
		offset=128
d921 1
d927 1
@


1.87
log
@Remove chmod of pcaudio* to 666.  Not everyone should be allowed to
play the speaker and consume 10-100% of the available cycles.

Remove chmods of sound devices to 666.  Use chmod to give the same security
holes.
@
text
@d28 2
d88 1
a88 1
#	$Id: MAKEDEV,v 1.86 1995/04/28 07:39:21 bde Exp $
d188 7
@


1.86
log
@Add cyclades serial devices cuac*, cuaic*, cualc*, ttyc*, ttyic* and ttylc*.
@
text
@d86 1
a86 1
#	$Id: MAKEDEV,v 1.85 1995/04/28 00:51:02 dufault Exp $
a697 1
	chmod 666 pcaudio pcaudioctl
d710 4
a716 1
	chmod 666 mixer
a719 1
	chmod 666 sequencer
a722 1
	chmod 666 midi00
a725 1
	chmod 666 dsp
a728 1
	chmod 666 audio
a731 1
	chmod 666 dsp16
a734 1
	chmod 666 sndstat
a737 1
	chmod 666 sequencer2
d739 2
a740 3
	rm -f pss               # PSS Device
	mknod pss               c $chr 9
	chmod 666 pss
a743 1
	chmod 666 midi01
a746 1
	chmod 666 dsp1
d750 1
a750 1
	chmod 666 audio1
@


1.85
log
@Add National Instruments "LabPC" driver
@
text
@d86 1
a86 1
#	$Id: MAKEDEV,v 1.84 1995/04/26 08:07:30 bde Exp $
d626 22
@


1.84
log
@Reviewed by:	Gene Stark (starkhome!gene@@sbstark.cs.sunysb.edu)

Change ownership of tw* from bin.bin to root.operator.  Hardware devices
shouldn't be accessible to bin.
@
text
@d66 5
d84 1
d86 1
a86 1
#	$Id: MAKEDEV,v 1.83 1995/04/23 12:02:21 ache Exp $
d865 46
@


1.83
log
@Add 'rc' devices.
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.82 1995/04/13 00:51:55 jkh Exp $
d570 1
a570 1
	chown bin.bin tw$unit
@


1.82
log
@I missed some of Frank Durda's changes for MAKEDEV.  Fixed.
Submitted by:	Frank Durda IV <bsdmail@@nemesis.lonestar.org>
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.81 1995/03/21 06:31:00 jkh Exp $
d620 18
@


1.81
log
@Fix apm and gsc rules to allow `<blah>0' or just `<blah>' to be shorthand.
[Actually, it's `<blah>*' but I'm not telling anyone]
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.80 1995/03/13 00:10:40 ache Exp $
d541 7
@


1.80
log
@Make /dev/pss instead of /dev/sndproc (unused)
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.79 1995/03/12 15:25:32 bde Exp $
d715 1
a715 1
gsc)
d722 1
a722 1
apm)
@


1.79
log
@Clean up white space.
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.78 1995/03/11 12:07:57 dufault Exp $
d691 3
a693 3
	rm -f sndproc		# PSS Device
	mknod sndproc		c $chr 9
	chmod 666 sndproc
@


1.78
log
@Noticed by:	Nate
Fixed the MAKEDEV pattern for SCSI processor type driver so it doesn't
screw up ptys.  Does anyone want to suggest a better name than "pt0" for
SCSI processor devices before 2.1?
@
text
@d48 1
a48 1
# 
d54 2
a55 2
#       tty*    general purpose serial ports
#       cua*    dialout serial ports
d71 1
a71 1
#	pcaudio PCM audio driver 
d80 1
a80 1
#	$Id: MAKEDEV,v 1.77 1995/03/04 20:54:13 dufault Exp $
d144 1
a144 1
	sh MAKEDEV wd0 wd1 wd2 wd3 fd0 fd1 sd0 sd1 sd2 sd3 	# bdev, disk
d146 1
a146 1
	sh MAKEDEV ft0 wt0 st0 					# bdev, tape
d150 1
a150 1
	sh MAKEDEV pty0 ch0 tw0 bpf0 				# cdev
d174 1
a174 1
	 		printf("mknod %d c 22 %d;", i, i)}'`)
d192 1
a192 1
	mknod rwt${u}c  c 10 `expr 24 + $u`     # 120 megabytes
d417 5
a421 5
        4) offset=128 name=P;;
        5) offset=160 name=Q;;
        6) offset=192 name=R;;
        7) offset=224 name=S;;
 	# This still leaves [tuTU].
d450 1
a450 1
	rm -f [hml]rst[0123456] [hml][en]rst[0123456] [hml]enrst[0123456]  
d452 1
a452 1
	rm -f rst${unit} [en]rst${unit} enrst${unit}  
d454 1
a454 1
		 erst${unit}.[0123] st${unit}ctl.[0123]
d464 1
a464 1
			chgrp operator 	rst${unit}.${mode}\
d468 1
a468 1
			chmod 640 	rst${unit}.${mode}\
d470 1
a470 1
					erst${unit}.${mode} 
d479 3
a481 3
  		;;
  	esac
  	umask 77
d514 1
a514 1
		mknod ${name}${unit}c   b $blk `expr $unit '*' 8 + 2`
d516 1
a516 1
		mknod r${name}${unit}c  c $chr `expr $unit '*' 8 + 2`
d660 1
a660 1
	mknod mixer 		c $chr 0
d667 2
a668 2
	rm -f midi midi00       # Midi 0
	mknod midi00            c $chr 2
d687 2
a688 2
	rm -f sequencer2        # Sequencer level 2
	mknod sequencer2        c $chr 8
d691 2
a692 2
	rm -f sndproc           # PSS Device
	mknod sndproc           c $chr 9
d695 2
a696 2
	rm -f midi01            # Midi 1
	mknod midi01            c $chr 18
d731 4
a734 4
	*0) unit=0;;    *1) unit=1;;    *2) unit=2;;    *3) unit=3;;
	*4) unit=4;;    *5) unit=5;;    *6) unit=6;;    *7) unit=7;;
	*8) unit=8;;    *9) unit=9;;    *a) unit=10;;   *b) unit=11;;
	*c) unit=12;;   *d) unit=13;;   *e) unit=14;;   *f) unit=15;;
d749 1
a749 1
  	;;
d785 3
a787 3
#       3009    makes nic0 for Niccy 3009
#       1000    makes nodes for Niccy 1000
#       tel*    makes nodes for TELES S0
@


1.77
log
@Add processor and worm drivers
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.76 1995/03/04 12:22:14 bde Exp $
d401 4
a404 2
pt*)
	unit=`expr $i : 'pt\(.*\)'`
@


1.76
log
@For sd, vn and wd:

Support sliced devices better.  E.g.:
`sh MAKEDEV sd0' creates [r]sd0 and [r]sd0s[1-4] as well as [r]sd0[a-h]
(the extra devices created by default won't hurt apart from wasting inodes).
`sh MAKEDEV sd0s1[a-h]' creates [r]sd0s1[a-h] (any partition creates all).
`sh MAKEDEV sd0s5' creates [r]sd0s5.

Support unit numbers 0-31 (was 0-6).

For wd:

Remove support for creating DOSpartitions wd*[i-m].  These will get removed
if you run MAKEDEV on `all' or on wd*.
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.75 1995/03/02 04:11:47 jkh Exp $
d392 13
a404 1
	mknod uk$unit c 27 $unit
@


1.75
log
@Add Matsushita CDROM device entries.
Submitted by: Frank Durda IV <bsdmail@@nemesis.lonestar.org>
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.74 1995/02/27 18:54:27 ache Exp $
d309 3
a311 3

sd*|vn*|wd*)
	umask 2 ; unit=`expr $i : '..\(.*\)'`
d313 3
a315 3
	sd*) name=sd; blk=4;  chr=13;;
	wd*) name=wd; blk=0;  chr=3;;
	vn*) name=vn; blk=15; chr=43;;
d317 3
a319 1
	rm -f $name$unit? r$name$unit?
d321 37
a357 16
	0|1|2|3|4|5|6)
		mknod ${name}${unit}a	b $blk `expr $unit '*' 8 + 0`
		mknod ${name}${unit}b	b $blk `expr $unit '*' 8 + 1`
		mknod ${name}${unit}c	b $blk `expr $unit '*' 8 + 2`
		mknod ${name}${unit}d	b $blk `expr $unit '*' 8 + 3`
		mknod ${name}${unit}e	b $blk `expr $unit '*' 8 + 4`
		mknod ${name}${unit}f	b $blk `expr $unit '*' 8 + 5`
		mknod ${name}${unit}g	b $blk `expr $unit '*' 8 + 6`
		mknod ${name}${unit}h	b $blk `expr $unit '*' 8 + 7`
		case $i in
		wd*)
		mknod ${name}${unit}i	b $blk `expr $unit '*' 8 + 64`
		mknod ${name}${unit}j	b $blk `expr $unit '*' 8 + 65`
		mknod ${name}${unit}k	b $blk `expr $unit '*' 8 + 66`
		mknod ${name}${unit}l	b $blk `expr $unit '*' 8 + 67`
		mknod ${name}${unit}m	b $blk `expr $unit '*' 8 + 68`
a358 18
		mknod r${name}${unit}a	c $chr `expr $unit '*' 8 + 0`
		mknod r${name}${unit}b	c $chr `expr $unit '*' 8 + 1`
		mknod r${name}${unit}c	c $chr `expr $unit '*' 8 + 2`
		mknod r${name}${unit}d	c $chr `expr $unit '*' 8 + 3`
		mknod r${name}${unit}e	c $chr `expr $unit '*' 8 + 4`
		mknod r${name}${unit}f	c $chr `expr $unit '*' 8 + 5`
		mknod r${name}${unit}g	c $chr `expr $unit '*' 8 + 6`
		mknod r${name}${unit}h	c $chr `expr $unit '*' 8 + 7`
		case $i in
		wd*)
		mknod r${name}${unit}i	c $chr `expr $unit '*' 8 + 64`
		mknod r${name}${unit}j	c $chr `expr $unit '*' 8 + 65`
		mknod r${name}${unit}k	c $chr `expr $unit '*' 8 + 66`
		mknod r${name}${unit}l	c $chr `expr $unit '*' 8 + 67`
		mknod r${name}${unit}m	c $chr `expr $unit '*' 8 + 68`
		esac
		chgrp operator ${name}${unit}[a-m] r${name}${unit}[a-m]
		chmod 640 ${name}${unit}[a-m] r${name}${unit}[a-m]
d361 1
a361 1
		echo bad unit for disk in: $i
d367 1
a367 2
# Sliced disks.
ssd*|svn*|swd*)
d370 3
a372 3
	ssd*) name=sd; blk=4;  chr=13;;
	swd*) name=wd; blk=0;  chr=3;;
	svn*) name=vn; blk=15; chr=43;;
d374 1
a374 2
	unit=`expr $i : '...\(.*\)'`
	rm -f $name$unit* r$name$unit*
d376 2
a377 2
	0|1|2|3|4|5|6)
		for slice in $dkcompatslice
d379 1
a379 10
			for part in 0 1 2 3 4 5 6 7
			do
				minor=`dkminor 0 $unit $slice $part`
				slicename=`dkitos $slice`
				partname=`dkitop $part`
				mknod  ${name}${unit}${slicename}${partname} \
				      b $blk $minor
				mknod r${name}${unit}${slicename}${partname} \
				      c $chr $minor
			done
a380 8
		for slice in $dkrawslice 2 3 4 5
		do
			minor=`dkminor 0 $unit $slice $dkrawpart`
			slicename=`dkitos $slice`
			mknod  ${name}${unit}${slicename} b $blk $minor
			mknod r${name}${unit}${slicename} c $chr $minor
		done
		chgrp operator ${name}${unit}* r${name}${unit}*
@


1.74
log
@Cleanup device names, add more devices for Linux sounddriver
@
text
@d43 1
a43 1
#	pcd*	"panasonic cdrom disks"
d80 1
a80 1
#	$Id: MAKEDEV,v 1.73 1995/02/24 19:26:59 joerg Exp $
d145 1
a145 1
	sh MAKEDEV cd0 mcd0 scd0 pcd0				# bdev, cdrom
d503 1
a503 1
cd*|mcd*|scd*|pcd*)
a508 1
	pcd*) unit=`expr $i : '...\(.*\)'`; name=pcd; blk=17; chr=46;;
d513 22
@


1.73
log
@Allow tty0? to be an alias for tty? when creating the dev nodes.
People tend to be confused unnecessarily otherwise.
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.72 1995/02/22 23:52:58 jmz Exp $
d646 3
a648 2
	rm -f midi		# Midi input [ Not implemented ]
	mknod midi		c $chr 2
d666 11
a676 3
	rm -f pro_midi		# PRO_MIDI [PAS midi input and output]
	mknod pro_midi		c $chr 15
	chmod 666 pro_midi
@


1.72
log
@Change permissions and ownership of joystick device files.
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.71 1995/02/17 12:32:34 bde Exp $
d584 1
a584 1
ttyd?|tty?)
@


1.71
log
@Fix some bogus and missing chowns:

444 -> root.wheel
root -> root.wheel
uucp -> uucp.wheel (perhaps this should be .dialer, but .wheel is safer)
missing -> root.wheel

chown to root is usually bogus because mknod had to be run by root to
create the inode.  Setting the group explictly is currently necessary
because MAKEDEV does nothing to ensure that its working directory has
a suitable group.

Driver authors!  Please fix any bogons in MAKEDEV that involve your
drivers.  The sound devices are still world writable...
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.70 1995/02/16 16:03:29 bde Exp $
d722 1
d726 2
a727 2
	chmod 444 joy0 joy1
	chown root.wheel joy0 joy1
@


1.70
log
@Adjust for rearranged slice numbers.  Only create partitions on slice 0
for now (there are too many minors to create by default).  The special
sliced disk case ssd*|svn*|swd*) can almost replace the standard disk
case sd*|vn*|wd*) now (it just creates a few more devices), but there
will have to be special cases to allow creating slices 6-31 and partitions
on slices 2-31.

Fix bogus default cases.
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.69 1995/02/14 23:48:05 jkh Exp $
d689 1
d718 1
a718 1
	chown 444 cronyx
d726 1
d779 2
a780 2
	chown root n8ic0 n9ic0 snic0 isdn isdn? ity?? itel?? ispy
	chown uucp ityo[01]
d785 1
a785 1
		chown root /dev/nic0
d790 1
a790 1
		chown root /dev/nic0
d795 1
a795 1
		chown root /dev/nic0
@


1.69
log
@Add device entries for ISDN driver.
@
text
@d80 1
a80 1
#	$Id: MAKEDEV,v 1.68 1995/02/14 21:13:14 ugen Exp $
d86 1
a86 1
# Convert integer to partition number
d92 1
a92 1
	default) p="?";;
d97 12
d124 1
a124 1
	default) m="?";;
d132 3
d136 1
a136 1
dkrawslice=0
d374 1
a374 5
		# Whole disk is on (non-)slice 0, (non-)partition C.
		minor=`dkminor 0 $unit $dkrawslice $dkrawpart`
		mknod  ${name}${unit} b $blk $minor
		mknod r${name}${unit} c $chr $minor
		for slice in 1 2 3 4
d379 1
d381 1
a381 1
				mknod ${name}${unit}s${slice}${partname} \
d383 1
a383 1
				mknod r${name}${unit}s${slice}${partname} \
d386 7
a392 5
			partname=`dkitop $dkrawpart`
			ln ${name}${unit}s${slice}${partname} \
			   ${name}${unit}s${slice}
			ln r${name}${unit}s${slice}${partname} \
			   r${name}${unit}s${slice}
@


1.68
log
@Added /dev/snp? entry..
@
text
@d78 1
d80 1
a80 1
#	$Id: MAKEDEV,v 1.67 1995/02/10 20:08:25 bde Exp $
d732 55
@


1.67
log
@Add chowns for pty's, ttyv's and ttyd's.  Correct the chown for lptctl's.
The group was wrong if MAKEDEV was run in a directory with group other
than wheel.  This may have messed up the group in recent SNAPs
(sysinstall/obj should have group bin).

Reset the umask to 77 after running MAKEDEV.local.  Some cases depend on
the 77 default.  MAKEDEV.local and all cases should probably set the
umask explictly and not depend on a default.  Most cases already set it.
@
text
@d79 1
a79 1
#	$Id: MAKEDEV,v 1.66 1995/02/09 11:10:02 jkh Exp $
d723 8
@


1.66
log
@Device entries for >32 PTYs.
Submitted by:	Heikki Suonsivu <hsu@@cs.hut.fi>
@
text
@d79 1
a79 1
#	$Id: MAKEDEV,v 1.65 1995/02/07 12:07:18 jkh Exp $
d413 1
a413 1
			for (i = 0; i < 32; i++) { \
d415 10
a424 5
				printf("rm -f tty%s%s; mknod tty%s%s c 5 %d; \
					rm -f pty%s%s; mknod pty%s%s c 6 %d; ", \
					n, c, n, c, b+i, n, c, n, c, b+i); \
				} \
			}'`
d520 1
a520 1
	chown root.wheel lpt$unit
d538 3
a540 2
			printf("rm -f ttyv%01x; mknod ttyv%01x c %d %d;", \
				i, i, c, i); }'`
d576 1
d726 1
a726 1
	umask 0
d728 1
@


1.65
log
@Video Spigot entries.
Submitted by:	Jim Lowe <james@@blatz.cs.uwm.edu>
@
text
@d58 1
a58 1
#	pty*	set of 16 master and slave pseudo terminals
d79 1
a79 1
#	$Id: MAKEDEV,v 1.64 1995/02/01 23:15:11 jkh Exp $
d398 9
a406 5
	1) offset=16 name=q;;
	2) offset=32 name=r;;
	3) offset=48 name=s;;
# Note that telnetd, rlogind, and xterm (at least) only look at p-s.
	4) offset=64 name=t;;
d410 1
a410 1
	0|1|2|3|4)
d412 8
a419 5
		eval `echo $offset $name | awk ' { b=$1; n=$2 } END {
			for (i = 0; i < 16; i++)
				printf("rm -f tty%s%x; mknod tty%s%x c 5 %d; \
					rm -f pty%s%x; mknod pty%s%x c 6 %d; ", \
					n, i, n, i, b+i, n, i, n, i, b+i); }'`
@


1.64
log
@Add tun to list of devices.
Submitted by:	mr
@
text
@d76 2
d79 1
a79 1
#	$Id: MAKEDEV,v 1.63 1995/01/25 21:21:28 jmz Exp $
d696 6
@


1.63
log
@Add joystick
@
text
@d77 1
a77 1
#	$Id: MAKEDEV,v 1.62 1995/01/07 14:49:59 jkh Exp $
d694 7
@


1.62
log
@Gunther Schadow <gusw@@fub46.zedat.fu-berlin.de>'s
driver for the Genius GS-4500 hand scanner.
Submitted by:	gusw@@fub46.zedat.fu-berlin.de
@
text
@d75 1
d77 1
a77 1
#	$Id: MAKEDEV,v 1.61 1994/12/25 15:08:29 ats Exp $
d688 7
@


1.61
log
@Add entries for the sony and panasonic drives. The not SCSI and not EIDE
drives :-).
@
text
@d74 1
d76 1
a76 1
#	$Id: MAKEDEV,v 1.60 1994/12/16 15:59:44 bde Exp $
d651 6
@


1.60
log
@Add support for sliced disk devices ssd*, svn*, swd*.  The `s' at the start
of these names is so that they can be distinguished in MAKEDEV until the
non-sliced devices go away.
@
text
@d42 2
d75 1
a75 1
#	$Id: MAKEDEV,v 1.59 1994/12/08 00:44:55 ache Exp $
d125 1
a125 1
	sh MAKEDEV cd0 mcd0					# bdev, cdrom
d472 1
a472 1
cd*|mcd*)
d477 2
@


1.59
log
@Fix wrong regexps
@
text
@d73 1
a73 1
#	$Id: MAKEDEV,v 1.58 1994/12/06 23:06:10 ache Exp $
d79 17
d110 6
d332 42
@


1.58
log
@Fix wrong unit=expr for tty? cua?
@
text
@d73 1
a73 1
#	$Id: MAKEDEV,v 1.57 1994/12/06 19:50:17 bde Exp $
d473 1
a473 1
	unit=`expr $i : 'cua*\(.\)$'`
d484 1
a484 1
	unit=`expr $i : 'tty*\(.\)$'`
d509 1
a509 1
	name=`expr $i : 'mouse-\(.*\)'`
@


1.57
log
@Name the serial ports tty* and cua* in comments.  ttyd* and cuaa* don't
match all the port names.

Start using shell functions to avoid duplication.

Make tty* independent of cua*.  Restore support for old names (tty0 ==
ttyd0, cua0 = cuaa0...).

Restore making of lpt1 and lpt2 by default.

Keep umask 077 for making vty*.  World-ioctable vtys are huge security holes
because of bugs in syscons.

Make vga if a vty is made.  It may still be required for X.  It got nuked
with pc*.

Start using umask consistently to avoid using chmod.
@
text
@d73 1
a73 1
#	$Id: MAKEDEV,v 1.56 1994/12/04 23:50:40 ache Exp $
d473 1
a473 1
	unit=`expr $i : 'cuaa*\(.\)$'`
d484 1
a484 1
	unit=`expr $i : 'ttyd*\(.\)$'`
@


1.56
log
@Remove yet one pccons-related comment
@
text
@d52 2
a53 2
#       ttyd*   dialin ports/hardwired terminals
#       cuaa*   dialout ports
d73 1
a73 1
#	$Id: MAKEDEV,v 1.55 1994/12/04 23:48:38 ache Exp $
d78 15
d102 5
a106 3
	sh MAKEDEV pty0 ttyd0 ttyd1 ttyd2 ttyd3 lpt0            # cdev
	sh MAKEDEV ch0 tw0 bpf0 				# cdev
	sh MAKEDEV speaker pcaudio psm0 mse0                    # cdev
a450 1
	umask 0
d455 1
a455 1
	umask 77
d471 5
a475 14
cuaa?|ttyd?)
	unit=`expr $i : '...[ad]*\(.\)$'`
	rm -f cua*a$unit tty*d$unit
	case $unit in
	[0-9]) m=$unit;;
	a) m=10;; b) m=11;; c) m=12;; d) m=13;; e) m=14;; f) m=15;; g) m=16;;
	h) m=17;; i) m=18;; j) m=19;; k) m=20;; l) m=21;; m) m=22;; n) m=23;;
	o) m=24;; p) m=25;; q) m=26;; r) m=27;; s) m=28;; t) m=29;; u) m=30;;
	v) m=31;;
	*) echo too many devices; exit 1;;
	esac
	mknod ttyd$unit c 28 $m
	mknod ttyid$unit c 28 `expr $m + 32`
	mknod ttyld$unit c 28 `expr $m + 64`
d480 10
a489 1
	chmod 660 cua*a$unit
@


1.55
log
@New serial naming convention, remove tty0?, change cua0? --> cuaa?
Remove pccons stuff, we don't have it.
@
text
@a44 1
#	pc*	devices for stock pccons
d73 1
a73 1
#	$Id: MAKEDEV,v 1.54 1994/12/04 20:15:15 phk Exp $
@


1.54
log
@Added vn*, doing the same thing as sd* and wd*.  (Disklabel support will
be added to the vn driver).
@
text
@d53 2
a54 3
#       ttyd*   dialin ports
#       cua*    dialout ports
#       tty*    hardwired terminals
d74 1
a74 1
#	$Id: MAKEDEV,v 1.53 1994/12/03 14:01:01 jkh Exp $
d88 1
a88 1
	sh MAKEDEV pty0 tty0 tty1 pc0 lpt0 lpt1 lpt2            # cdev
d90 1
a90 1
	sh MAKEDEV speaker pcaudio psm0 mse0 ttyd2 ttyd3        # cdev
a428 12
# hv 22-apr-93 use this to create the necessary video device for
# pccons driver
pc?)
	chr=12
	minor=0
 	name=ttyv0
	rm -f ${name} vga kbd kbdco vgaco ttyv[0-9][0-9]
	mknod ${name} c ${chr} ${minor}
	chown root.wheel $name
	ln -s ${name} vga
	;;

d456 3
a458 3
cua0?|cua?|ttyd?)
	unit=`expr $i : '...[d0]*\(.\)$'`
	rm -f cua*0$unit tty*d$unit
d470 5
a474 23
	mknod cua0$unit c 28 `expr $m + 128`
	mknod cuai0$unit c 28 `expr $m + 32 + 128`
	mknod cual0$unit c 28 `expr $m + 64 + 128`
	chown uucp.dialer cua*0$unit
	chmod 660 cua*0$unit
	;;

tty0?|tty?)
	unit=`expr $i : 'tty0*\(.\)$'`
	rm -f tty*0$unit
	case $unit in
	[0-9]) m=$unit;;
	a) m=10;; b) m=11;; c) m=12;; d) m=13;; e) m=14;; f) m=15;; g) m=16;;
	h) m=17;; i) m=18;; j) m=19;; k) m=20;; l) m=21;; m) m=22;; n) m=23;;
	o) m=24;; p) m=25;; q) m=26;; r) m=27;; s) m=28;; t) m=29;; u) m=30;;
	v) m=31;;
	*) echo too many devices; exit 1;;
	esac
	umask 0
	mknod tty0$unit c 28 $m
	mknod ttyi0$unit c 28 `expr $m + 32`
	mknod ttyl0$unit c 28 `expr $m + 64`
	umask 77
@


1.53
log
@Add back the Croynx stuff I nuked accidently.  I'm not touching this
file anymore after this.  My link makes it too painful to make
interactive mods, and I don't have the CVS tree here so making changes
for "previous history" have to get done on freefall, with the corresponding
degree of pain.
@
text
@d42 1
d75 1
a75 1
#	$Id: MAKEDEV,v 1.51 1994/12/03 00:07:49 wollman Exp $
d250 1
a250 1
sd*|wd*)
d253 3
a255 2
	sd*) name=sd; blk=4; chr=13;;
	wd*) name=wd; blk=0; chr=3;;
@


1.52
log
@Back out previous commit until we work this out.  Sigh.
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.50 1994/12/02 16:08:53 jkh Exp $
d603 22
@


1.51
log
@Add cronyx driver entries.
@
text
@a603 22
ttyx?|ttyy?|ttyz?)
	case $i in
	*0) unit=0;;    *1) unit=1;;    *2) unit=2;;    *3) unit=3;;
	*4) unit=4;;    *5) unit=5;;    *6) unit=6;;    *7) unit=7;;
	*8) unit=8;;    *9) unit=9;;    *a) unit=10;;   *b) unit=11;;
	*c) unit=12;;   *d) unit=13;;   *e) unit=14;;   *f) unit=15;;
	esac
	case $i in
	ttyy?)  unit=`expr $unit \+ 16`;;
	ttyz?)  unit=`expr $unit \+ 32`;;
	esac
	rm -f $i
	mknod $i c 42 $unit
	chown uucp.wheel $i
	;;

cronyx)
	rm -f cronyx
	mknod cronyx c 42 63
	chown 444 cronyx
  	;;

@


1.50
log
@|From: Keith Walker <kew@@timesink.spk.wa.us>
|Message-Id: <199412011713.JAA03374@@timesink.spk.wa.us>
|To: jkh@@whisker.hubbard.ie
|Subject: A little problem with MAKEDEV
|
|For a while now, MAKEDEV's been kinda neat: you create the cua* files,
|and it deletes the tty* files; you create the tty* files and it
|deletes the corresponding cua* files. K00l! :-)

[Ed Note - I think this behavior was wrong, and this fix better].
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.49 1994/11/12 15:48:54 ache Exp $
d603 22
@


1.49
log
@Wrong raw device was created for cd/mcd: d instead of c
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.48 1994/11/10 02:32:29 phk Exp $
d425 1
a425 1
	chown root.wheel tw$unit
d469 1
a469 1
	rm -f tty*0$unit cua*0$unit tty*d$unit
d490 1
a490 1
	rm -f tty*0$unit cua*0$unit tty*d$unit
@


1.48
log
@/dev/apm should be /dev/apm0
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.47 1994/11/02 06:36:42 phk Exp $
d398 1
a398 1
		mknod ${name}${unit}d	b $blk `expr $unit '*' 8 + 3`
d400 1
a400 1
		mknod r${name}${unit}d	c $chr `expr $unit '*' 8 + 3`
@


1.47
log
@The last committer didn't know that '*' doesn't start a comment in shell's ????
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.46 1994/11/01 01:47:08 pst Exp $
d598 4
a601 4
	rm -f apm
	mknod apm c 39 0
	chown root.wheel apm
	chmod 660 apm
@


1.46
log
@Add kernel hooks for /dev/vatio -- a minimalistic BSD audio driver emulator
created by Amancio Hasty (specificly, this, in conjunction with his sound
driver mods for dual-mode DMA will allow VAT compiled for BSD/386 1.1 to
run under FreeBSD 2.x.)
@
text
@d72 1
a72 1
*	vat	VAT compatibility audio driver (requires snd*)
d74 1
a74 1
#	$Id: MAKEDEV,v 1.45 1994/10/29 10:03:37 phk Exp $
@


1.45
log
@fixed a typing error.
@
text
@d72 1
d74 1
a74 1
#	$Id: MAKEDEV,v 1.44 1994/10/26 01:30:47 phk Exp $
d588 7
@


1.44
log
@Make devices for sd2 and sd3 too.  If we have them in Generic, we should
have the devices too.
@
text
@d73 1
a73 1
#	$Id: MAKEDEV,v 1.43 1994/10/13 20:10:14 sos Exp $
d85 1
a85 1
	sh MAKEDEC cd0 mcd0					# bdev, cdrom
@


1.43
log
@Added socksys device (for iBCS2 emulation)
@
text
@d73 1
a73 1
#	$Id: MAKEDEV,v 1.42 1994/10/01 03:32:26 davidg Exp $
d84 2
a85 1
	sh MAKEDEV wd0 wd1 wd2 wd3 fd0 fd1 sd0 sd1 cd0 mcd0	# bdev, disk
@


1.42
log
@Added entry for apm device (needed for Advanced Power Management support).
@
text
@d71 1
d73 1
a73 1
#	$Id: MAKEDEV,v 1.41 1994/09/30 07:33:42 rgrimes Exp $
d537 8
@


1.41
log
@You must rm -f lkm before attempting to create it.
@
text
@d72 1
a72 1
#	$Id: MAKEDEV,v 1.40 1994/09/23 19:17:27 wollman Exp $
d577 7
@


1.40
log
@Make /dev/lkm as a part of `std'.  Delete references to ancient `com' driver.
@
text
@d72 1
a72 1
#	$Id: MAKEDEV,v 1.39 1994/09/07 21:35:52 phk Exp $
d92 1
@


1.39
log
@Added wd2 and wd3 to the standard set.  They are in GENERICAH, they can
be installed on, so they should be in /dev as well.

Removed the smoking remains of dcf*. I didn't realize that it had made it
into MAKEDEV.  Gone from cdevsw long time ago, gone from /dev now.
@
text
@a54 5
#	com*	standard PC COM ports (really makes tty* entries for com)
#		Note that the `com' driver is not configured in the 
#		supplied kernels and is usually not what you want.  In
#		a future release it may be completely desupported.  Fair
#		warning.
d72 1
a72 1
#	$Id: MAKEDEV,v 1.38 1994/09/03 22:46:43 csgr Exp $
d104 1
a299 6
	;;

com*)
	unit=`expr $i : '...\(.*\)'`
	rm -f tty0$unit
	mknod tty0$unit c 8 $unit
@


1.38
log
@Make it possible to run lptcontrol on a printer port which does not
actually have a printer connected or online:
- MAKEDEV:		remove all signs of lpa
			add lpctl? devices (minor # = unit + 128)
- usr.sbin/Makefile	add lptcontrol
- sys/i386/isa/lpt.c	implement the LP_BYPASS flag: when a unit is
			opened with this flag set, the printer is
			not primed, and no check is made to see that
			the printer is online.  This can only be used
			to pass ioctls.  (giving us /dev/lpctl?)
- lptcontrol.c		use /dev/lpctl? (LP_BYPASS)
			-f flag removed, -u flag added
- lptcontrol.8		document changes in lptcontrol
			rewrite using mandoc macros
Submitted by:	Geoff.
@
text
@a71 1
#	dcf*	dcf clock
d77 1
a77 1
#	$Id: MAKEDEV,v 1.37 1994/06/17 21:50:07 jkh Exp $
d88 2
a89 1
	sh MAKEDEV wd0 wd1 fd0 fd1 ft0 wt0 sd0 sd1 st0 cd0 mcd0	# bdev
d91 1
a91 1
	sh MAKEDEV ch0 tw0 bpf0 dcf0 				# cdev
a464 7
	;;

dcf*)
	unit=`expr $i : 'dcf\(.*\)'`
	rm -f dcf$unit
	mknod dcf$unit c 24 $unit
	chown root.wheel dcf$unit
@


1.37
log
@Fixes from Bruce Evans:

	o insecure and inconsistent permissions for tape devices.
	o didn't make the DOSpartition wd devices.
@
text
@a66 1
#	lpa*	interruptless lp
d78 1
a78 1
#	$Id: MAKEDEV,v 1.36 1994/05/30 03:53:01 ache Exp $
d91 1
a91 1
	sh MAKEDEV ch0 tw0 bpf0 dcf0 lpa0 lpa1 lpa2		# cdev
d420 1
d422 2
a471 9
	;;

lpa*)
	unit=`expr $i : 'lpa\(.*\)'`
	chr=25
	rm -f lpa$unit lpa${unit}p
	mknod lpa${unit}	c $chr `expr $unit + 0`
	mknod lpa${unit}p	c $chr `expr $unit + 32`
	chown root.wheel lpa${unit} lpa${unit}p
@


1.36
log
@From Ache:
Add proper devices for new sio initial/locking mechanism
@
text
@d79 1
a79 1
#	$Id: MAKEDEV,v 1.35 1994/05/21 08:55:52 rgrimes Exp $
d123 1
a123 1
	umask 2 ; u=`expr $i : '..\(.*\)'`
d267 8
d283 10
a292 2
		chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h]
		chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]
d360 1
a360 1
			chmod 644 	rst${unit}.${mode}\
@


1.35
log
@Fix all the sound devices to NOT have the absolute path /dev, the makes for
missing device files in releases!!
@
text
@d79 1
a79 1
#	$Id: MAKEDEV,v 1.34 1994/05/19 11:05:09 jkh Exp $
d473 1
a473 1
	rm -f tty0$unit cua0$unit ttyd$unit
d479 2
a480 2
	v) m=31;; w) m=32;; x) m=33;; y) m=34;; z) m=35;;
	*) echo not enough minor numbers, add manually ;;
d483 2
d486 4
a489 2
	chown uucp.dialer cua0$unit
	chmod 660 cua0$unit
d494 1
a494 1
	rm -f tty0$unit cua0$unit ttyd$unit
d500 2
a501 2
	v) m=31;; w) m=32;; x) m=33;; y) m=34;; z) m=35;;
	*) echo not enough minor numbers, add manually ;;
d505 2
@


1.34
log
@Add 4 VTY's back to the list of things to create by default (the codrv
comments were obsolete), also create a PS/2 mouse entry.
@
text
@d79 1
a79 1
#	$Id: MAKEDEV,v 1.33 1994/05/10 09:18:11 ache Exp $
d111 1
a111 1
	mkdir fd > /dev/null 2>&1
d429 1
a429 1
# /dev/ttyv0-b
d530 5
a534 5
	rm -f /dev/pcaudio /dev/pcaudioctl
	mknod /dev/pcaudio c 24 0
	mknod /dev/pcaudioctl c 24 128
	chown root.wheel /dev/pcaudio /dev/pcaudioctl
	chmod 666 /dev/pcaudio /dev/pcaudioctl
d540 38
a577 38
	rm -f /dev/mixer	# Mixer	[ Control ]
	mknod /dev/mixer 	c $chr 0
	chmod 666 /dev/mixer

	rm -f /dev/sequencer	# Sequencer [ FM Synth and MIDI output ]
	mknod /dev/sequencer	c $chr 1
	chmod 666 /dev/sequencer

	rm -f /dev/midi		# Midi input [ Not implemented ]
	mknod /dev/midi		c $chr 2

	rm -f /dev/dsp		# DSP [ Digitized voice ]
	mknod /dev/dsp		c $chr 3
	chmod 666 /dev/dsp

	rm -f /dev/audio	# SPARC audio [ Not fully implemented ]
	mknod /dev/audio	c $chr 4
	chmod 666 /dev/audio

	rm -f /dev/dsp16	# DSP16 [ Same as /dev/dsp, except 16 bits ]
	mknod /dev/dsp16	c $chr 5
	chmod 666 /dev/dsp16

	rm -f /dev/sndstat	# Status Device [ Debugging interface ]
	mknod /dev/sndstat	c $chr 6
	chmod 666 /dev/sndstat

	rm -f /dev/pro_midi	# PRO_MIDI [PAS midi input and output]
	mknod /dev/pro_midi	c $chr 15
	chmod 666 /dev/pro_midi

	rm -f /dev/dsp1		# DSP 1 [ SB emulation of PAS16 or 2nd audio ]
	mknod /dev/dsp1		c $chr 19
	chmod 666 /dev/dsp1

	rm -f /dev/audio1	# Sparc Audio 1 [ SB emulation of PAS16 or 2nd audio ]
	mknod /dev/audio1	c $chr 20
	chmod 666 /dev/audio1
@


1.33
log
@Make dialout devices owned by uucp.dialer with 660 mode
@
text
@d79 1
a79 1
#	$Id: MAKEDEV,v 1.32 1994/04/21 14:08:27 sos Exp $
d93 2
a94 3
	sh MAKEDEV speaker pcaudio mse0 ttyd2 ttyd3             # cdev
	# NOTE: co0 and vty04 are not done by a "sh MAKEDEV all"
	# these are for codrv and interfere with other devices! - rgrimes
@


1.32
log
@device support for pcaudio added
@
text
@d79 1
a79 1
#	$Id: MAKEDEV,v 1.31 1994/04/03 14:24:52 ache Exp $
a295 1
	chown uucp.wheel tty0$unit
d485 2
a486 1
	chown uucp.wheel ttyd$unit cua0$unit
@


1.31
log
@Fix tty? entry in the same way like cua entry
Add error diagnotic about unknown device name
@
text
@d77 1
d79 1
a79 1
#	$Id: MAKEDEV,v 1.30 1994/04/03 04:39:54 ache Exp $
d93 1
a93 1
	sh MAKEDEV speaker mse0 ttyd2 ttyd3                     # cdev
d420 1
a420 1
pc*)
d528 8
@


1.30
log
@Fix error in making cua entries for two multiports
(> 10 devices)
@
text
@d78 1
a78 1
#	$Id: MAKEDEV,v 1.29 1994/03/07 00:57:38 rgrimes Exp $
d488 2
a489 2
tty*)
	unit=`expr $i : 'tty\(.\)'`
d491 8
d500 1
a500 1
	mknod tty0$unit c 28 $unit
d575 4
@


1.29
log
@Add mitsumi cdrom /dev entries.
@
text
@d78 1
a78 1
#	$Id: MAKEDEV,v 1.28 1994/02/19 15:45:13 ache Exp $
d472 2
a473 2
cua*|ttyd*)
	unit=`expr $i : '...d*\(.\)'`
d475 10
a484 2
	mknod ttyd$unit c 28 $unit
	mknod cua0$unit c 28 `expr $unit + 128`
@


1.28
log
@Remove sio entries per Rod suggestion
@
text
@d40 2
a41 1
#	cd*	"cdrom disks"
d78 1
a78 1
#	$Id: MAKEDEV,v 1.27 1994/02/19 14:32:56 ache Exp $
d89 1
a89 1
	sh MAKEDEV wd0 wd1 fd0 fd1 ft0 wt0 sd0 sd1 st0 cd0	# bdev
d380 2
a381 2
cd*)
	umask 2 ; unit=`expr $i : '..\(.*\)'`
d383 2
a384 1
	cd*) name=cd; blk=6; chr=15;;
@


1.28.2.1
log
@Add mitsumi cdrom /dev entries
@
text
@d40 1
a40 2
#	cd*	"scsi cdrom disks"
#	mcd*	"mitsumi cdrom disks"
d77 1
a77 1
#	$Id: MAKEDEV,v 1.28 1994/02/19 15:45:13 ache Exp $
d88 1
a88 1
	sh MAKEDEV wd0 wd1 fd0 fd1 ft0 wt0 sd0 sd1 st0 cd0 mcd0	# bdev
d379 2
a380 2
cd*|mcd*)
	umask 2 ;
d382 1
a382 2
	cd*) unit=`expr $i : '..\(.*\)'`; name=cd; blk=6; chr=15;;
	mcd*) unit=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;;
@


1.27
log
@Sorry, expr error in last commit.
@
text
@d51 2
a52 3
#       sio*    fast interrupt PC COM ports (really makes ttyd* entries for sio)
#       ttyd*   the same (dialin ports)
#       cua*    the same (dialout ports)
d77 1
a77 1
#	$Id: MAKEDEV,v 1.26 1994/02/19 13:17:03 ache Exp $
d91 1
a91 1
	sh MAKEDEV speaker mse0 sio2 sio3                       # cdev
d470 1
a470 1
sio*|cua*|ttyd*)
@


1.26
log
@We lost ttyd for dialin lines, now restore it
@
text
@d78 1
a78 1
#	$Id: MAKEDEV,v 1.25 1994/02/07 04:25:07 alm Exp $
d472 1
a472 1
	unit=`expr $i : '\(.\)$'`
d480 1
a480 1
	unit=`expr $i : '\(.\)$'`
@


1.25
log
@Add devices for QIC 40/80 support
@
text
@d51 4
a54 2
#	sio*	fast interrupt PC COM ports (really makes tty* entries for sio)
#	tty*	alias for sio ports, this is what the system really wants
d78 1
a78 1
#	$Id: MAKEDEV,v 1.22 1994/01/10 18:11:30 ache Exp $
d90 1
a90 1
	sh MAKEDEV pty0 tty0 tty1 tty2 tty3 pc0 lpt0 lpt1 lpt2	# cdev
d92 1
a92 1
	sh MAKEDEV speaker mse0 sio0 sio1 sio2 sio3		# cdev
d471 12
a482 3
sio*|tty*|cua*)
	unit=`expr $i : '...\(.*\)'`
	rm -f tty0$unit cua0$unit
d484 1
a484 2
	mknod cua0$unit c 28 `expr $unit + 128`
	chown uucp.wheel tty0$unit cua0$unit
@


1.24
log
@Added creation of a symlink for ttyv0->vga when making the 'pc0' target.
@
text
@d33 2
d76 1
a76 1
#	$Id: MAKEDEV,v 1.23 1994/01/24 20:57:16 davidg Exp $
d87 1
a87 1
	sh MAKEDEV wd0 wd1 fd0 fd1 wt0 sd0 sd1 st0 cd0		# bdev
d225 22
@


1.23
log
@Deprecate "/dev/vga". Use /dev/ttyv0 always. Note that the terminal type
is still 'pc3' in /etc/ttys, and should be changed if we decide to default
to syscons.
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.22 1994/01/10 18:11:30 ache Exp $
d399 1
@


1.22
log
@Add callout device for bidirectional port
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.21 1993/12/24 11:36:28 rgrimes Exp $
a291 3
		if [ $class = 1 ]; then
			mv ttyqf ttyv0; mv ptyqf ptyv0
		fi
d395 2
a396 2
 	name=vga
	rm -f ${name} kbd kbdco vgaco ttyv[0-9][0-9]
@


1.21
log
@Insert tab before comment so brain dead shell does not screw up
the arguments to mknod.
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.20 1993/12/21 05:49:28 ache Exp $
d447 1
a447 1
sio*|tty*)
d449 1
a449 1
	rm -f tty0$unit
d451 2
a452 1
	chown uucp.wheel tty0$unit
@


1.20
log
@Comment out porogrammer-readable fd name set,
not needed in standard version, only for XENIX lovers.
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.19 1993/12/18 01:19:02 ache Exp $
d122 1
a122 1
	mknod rwt${u}   c 10 `expr  0 + $u`# default density, 512b blocks
@


1.19
log
@User-readable fd name set added:
[r]fd[n].{360,720,800,820,1200,1440,1480,1720}
Programmer-readable fd name set added in XENIX style.
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.17 1993/12/14 11:11:37 alm Exp $
d158 2
a159 2
		ln ${name}${unit}.1720 ${name}${unit}135hs21
		ln r${name}${unit}.1720 r${name}${unit}135hs21
d163 4
a166 4
		ln ${name}${unit}.1480 ${name}${unit}135hs18
		ln r${name}${unit}.1480 r${name}${unit}135hs18
		ln ${name}${unit}.1480 ${name}${unit}96hs18
		ln r${name}${unit}.1480 r${name}${unit}96hs18
d170 6
a175 6
		ln ${name}${unit}.1440 ${name}${unit}135
		ln r${name}${unit}.1440 r${name}${unit}135
		ln ${name}${unit}.1440 ${name}${unit}135ds18
		ln r${name}${unit}.1440 r${name}${unit}135ds18
		ln ${name}${unit}.1440 ${name}${unit}96ds18
		ln r${name}${unit}.1440 r${name}${unit}96ds18
d179 6
a184 6
		ln ${name}${unit}.1200 ${name}${unit}96
		ln r${name}${unit}.1200 r${name}${unit}96
		ln ${name}${unit}.1200 ${name}${unit}96ds15
		ln r${name}${unit}.1200 r${name}${unit}96ds15
		ln ${name}${unit}.1200 ${name}${unit}135ds15
		ln r${name}${unit}.1200 r${name}${unit}135ds15
d188 4
a191 4
		ln ${name}${unit}.820 ${name}${unit}96hs10
		ln r${name}${unit}.820 r${name}${unit}96hs10
		ln ${name}${unit}.820 ${name}${unit}135hs10
		ln r${name}${unit}.820 r${name}${unit}135hs10
d195 4
a198 4
		ln ${name}${unit}.800 ${name}${unit}96ds10
		ln r${name}${unit}.800 r${name}${unit}96ds10
		ln ${name}${unit}.800 ${name}${unit}135ds10
		ln r${name}${unit}.800 r${name}${unit}135ds10
d202 4
a205 4
		ln ${name}${unit}.720 ${name}${unit}96ds9
		ln r${name}${unit}.720 r${name}${unit}96ds9
		ln ${name}${unit}.720 ${name}${unit}135ds9
		ln r${name}${unit}.720 r${name}${unit}135ds9
d209 4
a212 4
		ln ${name}${unit}.360 ${name}${unit}48
		ln r${name}${unit}.360 r${name}${unit}48
		ln ${name}${unit}.360 ${name}${unit}48ds9
		ln r${name}${unit}.360 r${name}${unit}48ds9
@


1.18
log
@No more partition bits in floppy minor.
Now minor looks like UU DDDDDD, UU - unit, DDDDDD - density.
If density == 0, CMOS-detect format assumed.
For old users/pgms use fake partitions now, i.e.
	ln fd0 fd0[a-h]
No new floppy names added (expect fd? and rfd?),
because don't have agreement yet, so make devices
only for CMOS-detected formats.
@
text
@d154 62
a215 2
		chgrp operator ${name}${unit} r${name}${unit}
		chmod 640 ${name}${unit} r${name}${unit}
@


1.17
log
@From: Sergey Ryzhkov, Serge Vakulenko
E-mail: <sir@@kiae.su>, <vak@@zebub.msk.su>
added new /dev/wt entries for wt.c version 1.3

8) Some controllers support only 1024 block length.
   Setting WT_BSIZE bit in device minor number turns on this mode.

Minor number structure:
	0bfffuuu
Fields:
	uuu   - Unit number. It's possible to install
		up to three tape controllers on the same machine,
		using DRQs 1..3.  Hence, unit number can lie
		in range 0..2.
	fff   - Tape format number:
		0 - /dev/rwt0  - default density (auto select)
		1 - /dev/rwt0a - QIC 11 (obsolete)
		2 - /dev/rwt0b - QIC 24 (60 megabytes)
		3 - /dev/rwt0c - QIC 120 (120 megabytes)
		4 - /dev/rwt0d - QIC 150 (150 megabytes)
		5 - /dev/rwt0e - QIC 300 (300 megabytes?)
		6 - /dev/rwt0f - QIC 600 (600 megabytes?)
	b     - Long block size flag.  With this bit set,
		the driver will perform all i/o operations
		with the controller using 1024-byte
		blocks, instead of 512 ones.
		Some controllers need it (CMS for example).
		If you Wangtek controller does not stream well,
		you can try to use /dev/rWt0 device instead
		of /dev/rwt0 (uncomment needed lines in /dev/MAKEDEV
		to create it).

Block interface (writing blocks less than 2048 bytes) is not functioning
pwoperly.  Use raw interface instead.

Thanks to all who helped to test it on the following hardware:

Controller           Drive            Volume    Interface     Thanks to
---------------------------------------------------------------------------
Archive SC-499       Archive 2150L    150 Meg   QIC-02        KIAE
CMS?                 ?                150 Meg   QIC-02        KIAE
Everex EV 831/833    ?                ?         QIC-36        Joergen Haegg
Wangtek ASSY         Wangtek          60 Meg    QIC-02        Ken Whedbee
Tecmar QT150i?       Wangtek 5150EQ   ?         QIC-02?       Marko Teiste
?                    Wangtek 5099EK   60 Meg    QIC-36        Robert Shien
Archive SC400S       ?                60 Meg    ?             Warren Toomey
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.16 1993/11/22 05:40:49 rgrimes Exp $
d140 1
a140 1
fd*|sd*|wd*)
d142 24
a166 1
	fd*) name=fd; blk=2; chr=9;;
@


1.16
log
@Missing part of Julians new scsi code, add new driver uk and revise the
entries for st.
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.15 1993/11/06 23:22:23 wollman Exp $
d121 2
a122 2
	rm -f rwt$u nrwt$u rwt${u}a nrwt${u}a rwt${u}b nrwt${u}b
	mknod rwt${u}   c 10 `expr  0 + $u`     # 150 megabytes
d124 3
a126 3
	mknod rwt${u}a  c 10 `expr  8 + $u`     # 120 megabytes
	mknod nrwt${u}a c 10 `expr 12 + $u`
	mknod rwt${u}b  c 10 `expr 16 + $u`     # 60 megabytes
d128 10
a137 2
	chown root.operator rwt$u nrwt$u rwt${u}a nrwt${u}a rwt${u}b nrwt${u}b
	umask 77;
@


1.15
log
@Added comment in the description of `com' devices that they are usually
not what users want unless they have re-configured their kernels.  Hopefully
some people will actually read this.
@
text
@d74 1
a74 1
#	$Id: MAKEDEV,v 1.14 1993/10/28 09:59:27 rgrimes Exp $
d168 6
d210 9
a218 7
	case $i in
	st*) name=st;  chr=14;;
	esac
	rm -f r$name$unit nr$name$unit er$name$unit enr$name$unit 
	rm -f hr$name$unit hnr$name$unit her$name$unit henr$name$unit 
	rm -f mr$name$unit mnr$name$unit mer$name$unit menr$name$unit 
	rm -f lr$name$unit lnr$name$unit ler$name$unit lenr$name$unit 
d221 18
a238 28
		mknod r${name}${unit}	c $chr `expr $unit '*' 16 + 0`
		mknod nr${name}${unit}	c $chr `expr $unit '*' 16 + 1`
		mknod er${name}${unit}	c $chr `expr $unit '*' 16 + 2`
		mknod hr${name}${unit}	c $chr `expr $unit '*' 16 + 4`
		mknod hnr${name}${unit}	c $chr `expr $unit '*' 16 + 5`
		mknod her${name}${unit}	c $chr `expr $unit '*' 16 + 6`
		mknod mr${name}${unit}	c $chr `expr $unit '*' 16 + 8`
		mknod mnr${name}${unit}	c $chr `expr $unit '*' 16 + 9`
		mknod mer${name}${unit}	c $chr `expr $unit '*' 16 + 10`
		mknod lr${name}${unit}	c $chr `expr $unit '*' 16 + 12`
		mknod lnr${name}${unit}	c $chr `expr $unit '*' 16 + 13`
		mknod ler${name}${unit}	c $chr `expr $unit '*' 16 + 14`
		chgrp operator r${name}${unit} nr${name}${unit} \
			er${name}${unit}  
		chgrp operator hr${name}${unit} hnr${name}${unit} \
			her${name}${unit}  
		chgrp operator mr${name}${unit} mnr${name}${unit} \
			mer${name}${unit}  
		chgrp operator lr${name}${unit} lnr${name}${unit} \
			ler${name}${unit}  
		chmod 640 r${name}${unit} nr${name}${unit} \
			er${name}${unit} 
		chmod 640 hr${name}${unit} hnr${name}${unit} \
			her${name}${unit} 
		chmod 640 mr${name}${unit} mnr${name}${unit} \
			mer${name}${unit} 
		chmod 640 lr${name}${unit} lnr${name}${unit} \
			ler${name}${unit} 
d242 3
a244 3
		;;
	esac
	umask 77
@


1.14
log
@Add zero and io to the rm -f line for std devices so they get removed before
an attempt is made to mknod them.
@
text
@a48 1
#	com*	standard PC COM ports (really makes tty* entries for com)
d51 5
d74 1
a74 1
#	$Id: MAKEDEV,v 1.13 1993/10/23 22:24:35 jkh Exp $
@


1.13
log
@Moved sound drivers from major 21 to major 30.
@
text
@d70 1
a70 1
#	$Id: MAKEDEV,v 1.12 1993/10/23 10:58:51 jkh Exp $
d89 1
a89 1
	rm -f console drum mem kmem null tty klog stdin stdout stderr
@


1.12
log
@New snd*) target for making driver entries for new sound driver.
@
text
@d70 1
a70 1
#	$Id: MAKEDEV,v 1.11 1993/10/19 20:00:35 nate Exp $
d388 1
d390 1
a390 1
	mknod /dev/mixer 	c 21 0
d394 1
a394 1
	mknod /dev/sequencer	c 21 1
d398 1
a398 1
	mknod /dev/midi		c 21 2
d401 1
a401 1
	mknod /dev/dsp		c 21 3
d405 1
a405 1
	mknod /dev/audio	c 21 4
d409 1
a409 1
	mknod /dev/dsp16	c 21 5
d413 1
a413 1
	mknod /dev/sndstat	c 21 6
d417 1
a417 1
	mknod /dev/pro_midi	c 21 15
d421 1
a421 1
	mknod /dev/dsp1		c 21 19
d425 1
a425 1
	mknod /dev/audio1	c 21 20
@


1.11
log
@Fixe a spelling error and added both the mse (logitech and ATI inport) and
the psm (PS/2 bus) mouse support

(The psm driver will have to come later)
@
text
@d68 1
d70 1
a70 1
#	$Id: MAKEDEV,v 1.10 1993/10/06 03:35:03 rgrimes Exp $
d384 42
@


1.10
log
@Added /dev/zero and /dev/io, they have been around for a while, time to
have some /dev entries.
@
text
@d44 4
d69 1
a69 1
#	$Id: MAKEDEV,v 1.9 1993/09/30 20:18:59 rgrimes Exp $
d84 2
a85 2
	# NOTE: co0 and vty04 is not done by a sh MAKEDEV all, rgrimes
	#       these are for codrv and interfere with other stuff!
d358 25
@


1.9
log
@Support for new wt driver.  Removed old references to as* disk types since
they are long gone.
@
text
@d65 1
a65 1
#	$Id: MAKEDEV,v 1.8 1993/09/14 21:42:14 rgrimes Exp $
d90 2
@


1.8
log
@>From: kuku@@acds.physik.rwth-aachen.de (Christoph Kukulies)
Comment was wrong about what entries get made for vtyNN, it
is 0-b, not 00-12.
@
text
@d37 2
a38 3
#	as*	"SCSI" disk/tape/CDROM drives
#	sd*	"NEW type scsi disks"
#	cd*	"NEW type cdrom disks"
d65 1
a65 1
#	$Id: MAKEDEV,v 1.7 1993/09/06 03:00:38 jkh Exp $
d105 2
d108 10
a117 4
	umask 2;
	rm -f wt0 rwt0
	mknod wt0 	b 3 0;	chown root.operator wt0
	mknod rwt0	c 10 0;	chown root.operator rwt0
d121 1
a121 1
as*|fd*|sd*|wd*)
a123 1
	as*) name=as; blk=4; chr=13;;
@


1.7
log
@Changed misleading comment about vty's - now clearly stated to work with
syscons, pcvt, codrv, ...
@
text
@d66 1
a66 1
#	$Id: MAKEDEV,v 1.6 1993/09/05 15:53:39 rgrimes Exp $
d299 1
a299 1
# /dev/ttyv00-12
@


1.6
log
@Replaced all references to comxx with ttyxx, since that is what all the
other tools really want.

Targets sio*) and com*) now create entry named ttyxx, default setup with
a sh MAKEDEV all is to use the sio major numbers, com is all but depreicated
now.
@
text
@d42 2
a43 3
#	pc*	devices for stock pccons (cleans up co devices) 
#	co*	devices for codrv (cleans up pc devices)
#	vty*	virtual console devices for codrv (cleans up pc devices)
d52 1
a52 1
#	vty*	virtual terminals using codrv console
d66 1
a66 1
#	$Id: MAKEDEV,v 1.5 1993/08/30 07:48:38 rgrimes Exp $
d82 1
a82 1
	#       these are for codrv and interfear with other stuff!
a286 20
# hv 22-apr-93 use this to create the necessary devices for codrv
# this will cleanup /dev/vga left from pccons
co*)
	chr=21
	name=vga
 	rm -rf ${name}
	mknod ${name} c ${chr} 128
	ln ${name} ${name}co
	chmod 644 ${name}
	chown root.wheel ${name}

	chr=21
	name=kbd
 	rm -rf ${name}
	mknod ${name} c ${chr} 0
	ln ${name} ${name}co
	chmod 644 ${name}
	chown root.wheel ${name}
	;;

d298 1
a298 1
# hv 22-apr-93 use this to create virtual consoles for codrv
@


1.5
log
@Updated st*) entry from Julian.
@
text
@d47 3
a49 3
#	com*	standard PC COM ports
#	tty*	alias for PC COM ports, this is what the system really wants
#	sio*	fast interrupt PC COM ports
d67 1
a67 1
#	$Id$
d152 1
a152 1
com*|tty*)
d154 1
a154 2
	rm -f com0$unit tty0$unit
	mknod com0$unit c 8 $unit
d156 1
a156 1
	chown uucp.wheel com0$unit tty0$unit
d362 1
a362 1
sio*)
d364 3
a366 3
	rm -f sio0$unit
	mknod sio0$unit c 28 $unit
	chown uucp.wheel sio0$unit
@


1.4
log
@Removed as0 and as1 from the all case since these are obsolete (use sd0...)
@
text
@d67 1
a67 4
# PATCHES MAGIC                LEVEL   PATCH THAT GOT US HERE
# --------------------         -----   ----------------------
# CURRENT PATCH LEVEL:         4       00170
# --------------------         -----   ----------------------
a68 19
# 16 Feb 93	Julian Elischer		ADDED for SCSI system
# 16 Feb 93	Julian Elischer		media changer device
# 10 Mar 93	Rodney W. Grimes	general clean up of above patches
#					typo in rm of kmem (was kmdem)
#					major number for /dev/fd/* and /dev/std*
#					added lpt, lpa, bpf, vga, vgaco, kbdco
# 08 Apr 93	Rodney W. Grimes	Cleanup chgrp, chown and chmod stuff
#					Added duplicate name tty=com,
#					added speaker, dcf
# 22 Apr 93	Holger Veit		device create for co,pc,vty
# 26 May 93	Rodney W. Grimes	Redid all to be in bdev/cdev order.
# 26 May 93	Gene Stark		Added tw xten power controller
#		Rodney W. Grimes	Added sio serial port (fast interrupt)
# 09 Jun 93	Jordan K. Hubbard	Make all makes both pc0 and co0, this
#					can be very bad.  Rod: I removed co0
#					from the all.
# 20 Jun 93	Holger Viet		Fixed co*) entry to be correct minor
#					and to do the proper clean ups.
#
d190 1
a190 1
	st*) name=st;  chr=14; blk=5;;
d192 4
a195 2
	rm -f $name$unit n$name$unit e$name$unit en$name$unit \
		r$name$unit nr$name$unit er$name$unit enr$name$unit 
a197 4
		mknod ${name}${unit}	b $blk `expr $unit '*' 16 + 0`
		mknod n${name}${unit}	b $blk `expr $unit '*' 16 + 1`
		mknod e${name}${unit}	b $blk `expr $unit '*' 16 + 2`
		mknod en${name}${unit}	b $blk `expr $unit '*' 16 + 3`
d201 25
a225 9
		mknod enr${name}${unit}	c $chr `expr $unit '*' 16 + 3`
		chgrp operator ${name}${unit} n${name}${unit} \
			e$name$unit en$name$unit \
			r${name}${unit} nr${name}${unit} \
			er${name}${unit} enr${name}${unit} 
		chmod 640 ${name}${unit} n${name}${unit} \
			e$name$unit en$name$unit \
			r${name}${unit} nr${name}${unit} \
			er${name}${unit} enr${name}${unit} 
@


1.3
log
@Removed vty04 from sh MAKEDEV all since that casued root login problems
on the console if you do not run codrv.
@
text
@d100 1
a100 1
	sh MAKEDEV wd0 wd1 fd0 fd1 wt0 sd0 sd1 as0 as1 st0 cd0	# bdev
d102 1
a102 1
	sh MAKEDEV ch0 tw0 bpf0 dcf0 lpa0 lpa1 lpa2	# cdev
@


1.2
log
@Fixed some errors in disktab (from NetBSD), floppy 5 corrected, and CP3100.
Fixed some errors in disktab (from NetBSD), floppy 5 corrected, and CP3100.
MAKEDEV script from 0.1.2.4 system.
@
text
@d102 1
a102 1
	sh MAKEDEV ch0 tw0 bpf0 vty04 dcf0 lpa0 lpa1 lpa2	# cdev
d104 2
a105 1
	# NOTE: co0 is not done by a sh MAKEDEV all, rgrimes
@


1.1
log
@Initial revision
@
text
@d25 1
d31 2
d38 2
d41 5
d48 2
d53 1
d56 2
d62 4
a65 1
#	flog*	kernel logging device
d67 24
d92 1
a92 1
PATH=/sbin:/bin/:/usr/bin
d98 8
d107 11
a117 11
	rm -f console drum mem kmdem null tty klog stdin stdout stderr
	mknod console		c 0 0
	mknod drum		c 4 0	; chmod 640 drum ; chgrp kmem drum
	mknod kmem		c 2 1	; chmod 640 kmem ; chgrp kmem kmem
	mknod mem		c 2 0	; chmod 640 mem ; chgrp kmem mem
	mknod null		c 2 2	; chmod 666 null
	mknod tty		c 1 0	; chmod 666 tty
	mknod klog		c 7 0	; chmod 600 klog
	mknod stdin		c 53 0	; chmod 666 stdin
	mknod stdout		c 53 1	; chmod 666 stdout
	mknod stderr		c 53 2	; chmod 666 stderr
d122 1
a122 1
	 		printf("mknod %d c 53 %d;", i, i)}'`)
d129 5
a133 4
	umask 2
	mknod wt0 b 3 0
	mknod rwt0 c 10 0
	umask 77
d136 1
a136 1
fd*|wd*|as*)
d139 1
d141 1
a142 1
	as*) name=as; blk=4; chr=13;;
d146 1
a146 1
	0|1)
d173 6
a178 4
com*)
	unit=`expr $i : 'com\(.*\)'`
	rm -f com$unit
	mknod com$unit c 8 $unit
d197 3
a199 3
				printf("mknod tty%s%x c 5 %d; \
					mknod pty%s%x c 6 %d; ", \
					n, i, b+i, n, i, b+i); }'`
d206 169
@


1.1.1.1
log
@Initial import of 386BSD 0.1 othersrc/etc
@
text
@@
