net: DCB: Validate DCB_ATTR_DCB_BUFFER argument
[linux/fpc-iii.git] / drivers / block / paride / mkd
blob6d0d802479ea2ede4a2471033132a02408a8c877
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
4 # mkd -- a script to create the device special files for the PARIDE subsystem
6 # block devices: pd (45), pcd (46), pf (47)
7 # character devices: pt (96), pg (97)
9 function mkdev {
10 mknod $1 $2 $3 $4 ; chmod 0660 $1 ; chown root:disk $1
13 function pd {
14 D=$( printf \\$( printf "x%03x" $[ $1 + 97 ] ) )
15 mkdev pd$D b 45 $[ $1 * 16 ]
16 for P in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
17 do mkdev pd$D$P b 45 $[ $1 * 16 + $P ]
18 done
21 cd /dev
23 for u in 0 1 2 3 ; do pd $u ; done
24 for u in 0 1 2 3 ; do mkdev pcd$u b 46 $u ; done
25 for u in 0 1 2 3 ; do mkdev pf$u b 47 $u ; done
26 for u in 0 1 2 3 ; do mkdev pt$u c 96 $u ; done
27 for u in 0 1 2 3 ; do mkdev npt$u c 96 $[ $u + 128 ] ; done
28 for u in 0 1 2 3 ; do mkdev pg$u c 97 $u ; done
30 # end of mkd