head	1.221;
access;
symbols
	RELENG_3_5_0_RELEASE:1.183.2.17
	RELENG_3_4_0_RELEASE:1.183.2.16
	RELENG_3_3_0_RELEASE:1.183.2.14
	RELENG_3_2_PAO:1.183.2.6.0.2
	RELENG_3_2_PAO_BP:1.183.2.6
	RELENG_3_2_0_RELEASE:1.183.2.6
	RELENG_3_1_0_RELEASE:1.183.2.3
	RELENG_3:1.183.0.2
	RELENG_3_BP:1.183
	RELENG_2_2_8_RELEASE:1.127.2.20
	RELENG_3_0_0_RELEASE:1.173
	RELENG_2_2_7_RELEASE:1.127.2.20
	RELENG_2_2_6_RELEASE:1.127.2.19
	RELENG_2_2_5_RELEASE:1.127.2.11
	RELENG_2_2_2_RELEASE:1.127.2.10
	RELENG_2_2_1_RELEASE:1.127.2.9
	RELENG_2_2_0_RELEASE:1.127.2.9
	RELENG_2_1_7_RELEASE:1.95.4.16
	RELENG_2_1_6_1_RELEASE:1.95.4.16
	RELENG_2_1_6_RELEASE:1.95.4.16
	RELENG_2_2:1.127.0.2
	RELENG_2_2_BP:1.127
	RELENG_2_1_5_RELEASE:1.95.4.16
	RELENG_2_1_0_RELEASE:1.95.4.8
	RELENG_2_1_0:1.95.0.4
	RELENG_2_1_0_BP:1.95
	RELENG_2_0_5_RELEASE:1.95
	RELENG_2_0_5:1.95.0.2
	RELENG_2_0_5_BP:1.95
	RELENG_2_0_5_ALPHA:1.95
	RELEASE_2_0:1.49
	BETA_2_0:1.49
	ALPHA_2_0:1.47.0.2
	MOVED_NEWCVS:1.37
	FINAL_1_1_5:1.37
	ALPHA_1_1_5:1.37
	FINAL_1_1:1.28.2.1
	GAMMA_1_1:1.28.2.1
	BETA_1_1:1.28.0.2
	BP_BETA_1_1:1.28
	FINAL_1_0:1.13
	EPSILON_1_0:1.9
	GAMMA_1_0:1.5
	BETA_1_0:1.4
	ALPHA_1_0:1.2
	V_0_0_1_0:1.1.1.1;
locks; strict;
comment	@# @;


1.221
date	99.11.18.04.31.31;	author peter;	state dead;
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.1.1.1
date	93.06.20.13.41.41;	author rgrimes;	state Exp;
branches;
next	;

1.28.2.1
date	94.03.07.00.58.43;	author rgrimes;	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.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.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.183.2.17;

1.183.2.17
date	2000.06.11.07.15.26;	author tanimura;	state Exp;
branches;
next	;


desc
@@


1.221
log
@Use a common MAKEDEV between the Alpha and i386 - the only differences
of significance were due to the Alpha version going stale.  We use common
device numbering for devices.  Hopefully, this file's days are numbered.
@
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
#
# 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
#	ft*	QIC-40/QIC-80 3M cartridge tape (interfaced
#		via the floppy disk controller)
#
# Disks:
#	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
#	ida*	Compaq Smart-2 RAID
#	matcd*	Matsushita (Panasonic) CD-ROM disks
#	mcd*	Mitsumi CD-ROM disks
#	md*	Memory (or malloc) disk
#	mlxd*   Mylex DAC960 RAID
#	scd*	Sony CD-ROM disks
#	sd*	SCSI disk, antiquated, use da* instead
#	vn*	vnode 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
#	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
#	ttyD*	Digiboard - 16 dialin ports
#	cuaD*	Digiboard - 16 dialout ports
#	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
#
# I2C and SMBus:
#	iic*	I2C devices
#	smb*	SMBUS devices
#
# USB devices:
#	usb*	USB bus control device
#	ums*	mouse
#	ulpt*	printer
#	ugen*	generic USB device
#
# SCSI devices (other than CD-ROM, tape and disk):
#	ch*	SCSI Media-Changer (juke box) driver
#	ssc	The ``super scsi'' device
#	worm*	WORM driver
#	pt*	Processor Type (HP scanner, as one example)
#	pass*	CAM Passthrough 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:
#	apm	Advanced Power Management BIOS
#	apmctl	APM BIOS control device
#	bpf*	packet filter
#	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
#	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
#	kbd	keyboard devices
#
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.220 1999/11/17 23:02:34 n_hibma Exp $
#

PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
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))
}

# 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
}

# 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 $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;;
	*) m="?";;
	esac
	echo $m
}

# 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 MAKEDEV std					# standard
	sh MAKEDEV fd0 fd1				# bdev, floppy disk
	sh MAKEDEV da0 da1 da2 da3 			# bdev, SCSI disk
	sh MAKEDEV ad0 ad1 ad2 ad3 			# bdev, ATA disk
	sh MAKEDEV acd0 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 ft0 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					# cdev, keyboard
	sh MAKEDEV mse0 psm0 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 ums0 ulpt0 ugen0		# cdev, USB devices
	sh MAKEDEV bpf0 tun0				# cdev, network
	sh MAKEDEV ch0 perfmon tw0			# cdev, miscellaneous
	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
	;;

std)
	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 pci	c 78 0; chmod 644 pci
	mkdir -p fd
	(cd fd && eval `echo "" | awk ' BEGIN { \
		for (i = 0; i < 64; i++) \
			printf("mknod %d c 22 %d;", i, i)}'`)
	chown -R root:wheel fd
	chmod 555 fd
	chmod 666 fd/*
	;;

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

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
	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]
	umask 77
	;;

# Individual slices.
ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|ida*s*|md*s*|mlxd*s*|sd*s*|vn*s*|wd*s*|wfd*s*)
	umask $disk_umask
	case $i in
	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;;
	esac
	case $i in
	amrd*s*|mlxd*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*|ida*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 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
	;;

fd*)
	umask $disk_umask
	unit=`expr $i : '..\(.*\)'`
	name=fd; blk=2; chr=9
	case $unit in
	0|1|2|3)
		mknod ${name}${unit}   b $blk `expr $unit '*' 64`
		mknod r${name}${unit}  c $chr `expr $unit '*' 64`
		# Fake BSD partitions
		for i in a b c d e f g h
		do
			ln -f ${name}${unit} ${name}${unit}$i
			ln -f r${name}${unit} r${name}${unit}$i
		done
		# User-readable and programmer-readable name sets

		mknod ${name}${unit}.1720  b $blk `expr $unit '*' 64 + 1`
		mknod r${name}${unit}.1720 c $chr `expr $unit '*' 64 + 1`
		# ln -f ${name}${unit}.1720 ${name}${unit}135hs21
		# ln -f r${name}${unit}.1720 r${name}${unit}135hs21

		mknod ${name}${unit}.1480  b $blk `expr $unit '*' 64 + 2`
		mknod r${name}${unit}.1480 c $chr `expr $unit '*' 64 + 2`
		# 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  b $blk `expr $unit '*' 64 + 3`
		mknod r${name}${unit}.1440 c $chr `expr $unit '*' 64 + 3`
		# 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  b $blk `expr $unit '*' 64 + 4`
		mknod r${name}${unit}.1200 c $chr `expr $unit '*' 64 + 4`
		# 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  b $blk `expr $unit '*' 64 + 5`
		mknod r${name}${unit}.820 c $chr `expr $unit '*' 64 + 5`
		# 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  b $blk `expr $unit '*' 64 + 6`
		mknod r${name}${unit}.800 c $chr `expr $unit '*' 64 + 6`
		# 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  b $blk `expr $unit '*' 64 + 7`
		mknod r${name}${unit}.720 c $chr `expr $unit '*' 64 + 7`
		# 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  b $blk `expr $unit '*' 64 + 8`
		mknod r${name}${unit}.360 c $chr `expr $unit '*' 64 + 8`
		# 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

		chgrp operator ${name}${unit}* r${name}${unit}*
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

ft*)
	umask $tape_umask
	unit=`expr $i : '..\(.*\)'`
	name=ft; blk=2; chr=9
	case $unit in
	0|1|2|3)
		mknod ${name}${unit}   b $blk `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
		;;
	esac
	umask 77
	;;

ad*|afd*|amrd*|da*|fla*|ida*|md*|mlxd*|od*|sd*|vn*|wd*|wfd*)
	umask $disk_umask
	case $i in
	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;;
	od*) name=od; blk=4; chr=13;;
	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;;
	esac
	case $i in
	amrd*|mlxd*)
		unit=`expr $i : '....\(.*\)'`
		;;
	afd*|fla*|ida*|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 s1 s2 s3 s4
		do
			sh MAKEDEV $name$unit$slicepartname
		done
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

ccd*)
	umask $disk_umask
	name=ccd
	blk=21; 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 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
	umask 77
	;;

ssc*)
	mknod ssc c 49 0
	;;

# 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=`expr $unit + 1 - 1`
	mknod ${name}${unit} c $chr $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=`expr $unit + 1 - 1`
	mknod ${name}${unit} c $chr $unit
	mknod ${name}.ctl c $chr 0xffff00ff
	;;

# CAM transport layer device
xpt*)
	umask 077
	# This major number is temporary
	chr=104
	name=xpt
	units=`expr $i : 'xpt\(.*\)'`
	if [ -z "${units}" ]; then
		units=1
	fi
	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); }'`
	;;
# CAM passthrough device
pass*|uk*)
	umask 077
	# This major number is temporary
	chr=31
	name=pass
	units=`expr $i : 'pass\(.*\)'`
	if [ -z "${units}" ]; then
		units=1
	fi
	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); }'`
	;;
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
	case $class in
	0|1|2|3|4|5|6|7)
		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
		;;
	esac
	;;

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 rsa${unit}.ctl c $chr `saminor 1 ${unit} 0 0`
		for m in 0 1 2 3
		do
			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}
		done
		ln -f rsa${unit}.0 rsa${unit}
		ln -f nrsa${unit}.0 nrsa${unit}
		ln -f ersa${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
		chgrp operator ${name}${unit}
		;;
	*)
		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 rast${unit} c $chr `expr $unit '*' 8 + 0`
		chgrp operator rast${unit}
		chmod 640 rast${unit}
		mknod nrast${unit} c $chr `expr $unit '*' 8 + 1`
		chgrp operator nrast${unit}
		chmod 640 nrast${unit}
		;;
	*)
		echo bad unit for tape in: $i
		;;
	esac
	umask 77
	;;

acd*|cd*|mcd*|scd*)
	umask $disk_umask
	case $i in
	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;;
	esac
	if [ -z "${units}" -o "${units}" -le 0 ]; then
		units=1
	fi
	if [ "${units}" -le 31 ]; then
		eval `echo ${chr} ${blk} ${units} ${name} |awk \
			'{ c=$1; b=$2; n=$3; name=$4;} END{
			for (i = 0; i < n; i++){
				printf("rm -f %s%d* r%s%d*; \
					mknod %s%da b %d %d; \
					mknod %s%dc b %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, b, (i * 8),
					name, i, b, (i * 8) + 2,
					name, i, c, (i * 8),
					name, i, c, (i * 8) + 2,
					name, i, name, i); }}'`
	else
		echo "$i is invalid -- can't have more than 32 cd devices"
	fi
	umask 77
	;;

matcd*)
	umask 2
	case $i in
	matcd*) unit=`expr $i : '.....\(.*\)'`; name=matcd; blk=17; 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	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]
		chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h]

		mknod ${name}${unit}la  b $blk `expr $unit '*' 8 + 128`
		mknod ${name}${unit}lc  b $blk `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]
		chmod 640 ${name}${unit}l[a-h] r${name}${unit}l[a-h]
		;;
	*)
		echo bad unit for disk in: $i
		;;
	esac
	umask 77
	;;

wcd*)
	umask 2 ;
	unit=`expr $i : '...\(.*\)'`
	blk=19
	chr=69
	case $unit in
	0|1|2|3|4|5|6|7)
		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]
		;;
	*)
		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 `expr $unit '*' 8 + 0`
		chgrp operator rwst${unit}
		chmod 640 rwst${unit}
		;;
	esac
	umask 77
	;;

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

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

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

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

usb)
	mknod usb$unit c 108 255
	;;

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

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

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

ugen*)
	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
		minor=`expr $unit \* 16`
		mknod ugen$unit c 114 $minor
	else
		minor=`expr $unit \* 16 + $endpoint`
		mknod ugen$unit.$endpoint c 114 $minor
	fi
	;;

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

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

# 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\(.*\)'`
	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); }'`
	ln -fs ttyv0 vga	# XXX X still needs this pccons relic
	;;

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

speaker)
	mknod speaker c 26 0
	;;

cuaa?|cua?)
	umask 7
	unit=`expr $i : 'cua.*\(.\)$'`
	m=`ttyminor $unit`
	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
	umask 77
	;;

tty0?|ttyd?|tty?)
	unit=`expr $i : 'tty.*\(.\)$'`
	m=`ttyminor $unit`
	mknod ttyd$unit c 28 $m
	mknod ttyid$unit c 28 `expr $m + 32`
	mknod ttyld$unit c 28 `expr $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=`expr $card \* 65536 + $minor`
		name=$card$unit
		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
	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=`expr $card \* 65536 + $minor`
		name=$card$unit
		mknod ttyc$name c $major $minor
		mknod ttyic$name c $major `expr $minor + 32`
		mknod ttylc$name c $major `expr $minor + 64`
	done
	;;

# RISCom8 'rc' driver entries

cuam?)
	umask 7
	unit=`expr $i : 'cua.*\(.\)$'`
	m=`ttyminor $unit`
	mknod cuam$unit c 63 `expr $m + 128`
	chown uucp:dialer cuam$unit
	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
	nports=`expr $i : 'ttyA\(.*\)$'`
	port=1
	while [ $port -le $nports ]; do
		minor=`expr $port - 1`
		name=`expr $port + 1000 | cut -c 3-4`
		mknod ttyA$name c $major $minor
		mknod ttyiA$name c $major `expr $minor + 65536`
		mknod ttylA$name c $major `expr $minor + 131072`
		port=`expr $port + 1`
	done
	# For the user-mode control program, 'sicontrol'
	mknod si_control c 68 262144
	;;

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`
		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
		port=`expr $port + 1`
	done
	umask 77
	;;

# 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=`expr $card \* 65536 + $minor`
		name=$card$unit
		mknod ttyD$name c $major $minor
		mknod ttyiD$name c $major `expr $minor + 32`
		mknod ttylD$name c $major `expr $minor + 64`
	done
	;;

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=`expr $card \* 65536 + $minor`
		name=$card$unit
		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
	done
	umask 77
	;;

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=`expr $moduleminor % 10 \* 16`
		modulename=$unit

		for unit in $portlist
		do
			minor=`ttyminor $unit`
			minor=`expr $card \* 65536 + $minor + $moduleminor`
			name=$card$modulename$unit
			rm -f tty*M$name
			mknod ttyM$name c $major $minor
			mknod ttyiM$name c $major `expr $minor + 64`
			mknod ttylM$name c $major `expr $minor + 128`
			chown root:wheel tty*M$name
		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=`expr $moduleminor % 10 \* 16`
		modulename=$unit

		for unit in $portlist
		do
			minor=`ttyminor $unit`
			minor=`expr $card \* 65536 + $minor + $moduleminor`
			name=$card$modulename$unit
			rm -f cua*M$name
			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
		done
	done
	umask 77
	;;

ttyR?)
	major=81
	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/'`
	   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 " "
	done
	;;

cuaR?)
	major=81
	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/'`
	   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 " "
	done
	chown uucp:dialer /dev/cuaR*
	;;

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

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

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 `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`
	mknod sndstat		c $chr 6
				# minor number 7 is unused
	mknod music$unit	c $chr `expr $unit '*' 16 + 8`
	mknod pss$unit		c $chr `expr $unit '*' 16 + 9`
				# minor numbers 10-15 are unused
	umask 77
	;;

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

gsc*)
	unit=`expr $i : 'gsc\(.*\)'`
	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}*
	;;

apm*)
	chr=39
	mknod apm c $chr 0
	mknod apmctl c $chr 8
	chgrp operator apm
	chgrp operator apmctl
	chmod 660 apm
	chmod 660 apmctl
	;;

card*)
	unit=`expr $i : 'card\(.*\)'`
	chr=50
	mknod card$unit c $chr $unit
	chmod 644 card$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=`expr $unit \+ 16`;;
	ttyz?)  unit=`expr $unit \+ 32`;;
	esac
	mknod $i c 42 $unit
	chown uucp:wheel $i
	;;

cronyx)
	mknod cronyx c 42 63
	;;

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

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

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

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

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

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

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

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

# dufault@@hda.com: If I do much more work on other A-D boards
# then eventually we'll have a "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 `expr $offset + $unit `
		;;
		all)
			for i in $all
			do
				mknod $name$i c 66 `expr $offset + $i `
			done
			;;
		*)
			echo "No such LabPC unit: $unit"
			;;
	esac
	umask 77
	;;

perfmon)
	mknod perfmon c 2 32
	chgrp kmem perfmon
	chmod 640 perfmon
	;;

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

i4b)
	mknod i4b c 60 0
	chown root:wheel i4b
	chmod 600 i4b
	;;

i4bctl)
	mknod i4bctl c 55 0
	chown root:wheel i4bctl
	chmod 600 i4bctl
	;;

i4brbch*)
	unit=`expr $i : 'i4brbch\(.*\)'`
	mknod i4brbch$unit c 57 $unit
	chown root:wheel i4brbch$unit
	chmod 600 i4brbch$unit
	;;

i4bteld*)
	offset=64
	unit=`expr $i : 'i4bteld\(.*\)'`
	mknod i4bteld$unit c 56 `expr $offset + $unit `
	chown root:wheel i4bteld$unit
	chmod 600 i4bteld$unit
	;;

i4btel*)
	unit=`expr $i : 'i4btel\(.*\)'`
	mknod i4btel$unit c 56 $unit
	chown root:wheel i4btel$unit
	chmod 600 i4btel$unit
	;;

i4btrc*)
	unit=`expr $i : 'i4btrc\(.*\)'`
	mknod i4btrc$unit c 59 $unit
	chown root:wheel i4btrc$unit
	chmod 600 i4btrc$unit
	;;

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

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

esac
done
@


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 $
@


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.183.2.17
log
@MFC: Fix minor numbers, locking, the return value of rpattach()
and baud_table.
@
text
@d132 1
a132 1
# $FreeBSD: src/etc/etc.i386/MAKEDEV,v 1.183.2.16 1999/11/15 22:14:50 joe Exp $
d1060 2
a1061 2
		   mknod /dev/ttyiR$Rnum c $major `expr $MINOR + 32`
		   mknod /dev/ttylR$Rnum c $major `expr $MINOR + 64` 
d1083 2
a1084 2
		   mknod /dev/cuaiR$Rnum c $major `expr $MINOR + 128 + 32`
		   mknod /dev/cualR$Rnum c $major `expr $MINOR + 128 + 64` 
@


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
@@
