question about mkdevs dot sh

Bernhard Fischer rep.dot.nop at gmail.com
Fri Jul 25 20:14:13 UTC 2008


On Fri, Jul 25, 2008 at 09:13:25PM +0200, gb wrote:
>hello
>
>i want to know if it's ok to do : 
>
>for i in $(seq 0 9); do
>	mknod vcsa$i b 7 $i
>done
>
>I found this script lines in the folder of busybox source archive.
>
>But I found in a kernel source archive (Documentation/device.txt) that
>vcsa[0..9] have minor number of 128..128+9, 

$ ls -ln /dev/vcs*
crw-rw----    1 0        77         7,   0 Oct  6  2007 /dev/vcs
crw-rw----    1 0        77         7,   1 Oct  6  2007 /dev/vcs1
crw-rw----    1 0        77         7, 128 Oct  6  2007 /dev/vcsa
crw-rw----    1 0        77         7, 129 Oct  6  2007 /dev/vcsa1

>
>so i think i should do :

read docs/mdev.txt. You shouldn't need to hardcode them but perhaps let
your hotplug-enabled kernel and mdev handle it for you.



More information about the busybox mailing list