Subject: Re: mknod and tap_postinstall
To: George Georgalis <george@galis.org>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-users
Date: 10/24/2005 01:04:32
--p7qwJlK53pWzbayA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 23, 2005 at 06:50:50PM -0400, George Georgalis wrote:
> I've just installed net/netbsd-tap and now I have a file to run
> and create the dev nodes:
>=20
> # cat /usr/pkg/sbin/tap_postinstall=20
> #!/bin/sh
>=20
> rm -f /dev/tap /dev/tap0 /dev/tap1 /dev/tap2 /dev/tap3
> mknod /dev/tap c $3 0xfffff
> mknod /dev/tap0 c $3 0
> mknod /dev/tap1 c $3 1
> mknod /dev/tap2 c $3 2
> mknod /dev/tap3 c $3 3
>=20
> But the message I have doesn't explain what $3 should be...
>=20
>  The script /usr/pkg/sbin/tap_postinstall creates the relevant device
>  nodes in /dev, and can be used independently.
>=20
> Any ideas?

The major number.  See lkm.conf(5) and modload(8).  tap_postinstall is
really meant to be used with lkm.conf, though.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--p7qwJlK53pWzbayA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQ1wXANgoQloHrPnoAQKUWQgAnex7tKowqtpjtk8IuR1zt+c80QPju7lJ
Ma442rznfzlj+emr7QafyiW22hipJSqauR8sDotO6hsBbOaaajWNLl2OrNMlIJ0k
xBO3Y5Ck858l/h37HZgnbJ/SHsBO4SN9WgSCTTjvBj7znrbtGaSEmvOYT4GYlrd/
1VhoXtUK2qpJdMxPeUPO0G3MFJEPOkvy4Y573cXzbmy/UBfI1bXdxehd0vopKXGM
aa+Uqrxhp8dphxGEl9tSs/GyJxFmG4vaHLr+lHl+ToiohSuGo8w3Mu7SC8K83f7k
Ql9oZBwz53gA9iFpskSizsfmdwp7iZ0R2slEfRdV3ujb+izZddl/NA==
=D2ku
-----END PGP SIGNATURE-----

--p7qwJlK53pWzbayA--