Add /dev/hpn? as an alias to /dev/aac? so that the HP version of the CLI

utility will work, and document it in the manpage.

MFC after:	3 days
This commit is contained in:
Scott Long 2001-07-25 22:36:17 +00:00
parent e3d1d61f10
commit 4aa620cdc6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80359
3 changed files with 9 additions and 2 deletions

View File

@ -1710,6 +1710,7 @@ aac*)
unit=`expr $i : 'aac\(.*\)'`
mknod aac$unit c 150 `unit2minor $unit`
ln -fs aac$unit afa$unit
ln -fs aac$unit hpn$unit
;;
mlx*)

View File

@ -73,8 +73,13 @@ or a Linux-based management application.
.Pp
The
.Pa /dev/aac?
device nodes provides access to the management interface of the controller.
One node exists per installed card.
device nodes provide access to the management interface of the controller.
One node exists per installed card. The aliases
.Pa /dev/afa?
and
.Pa /dev/hpn?
exist for the Dell and HP flavors, respectively, and are required for
the CLI management utility available from these vendors to work.
Compiling the driver with the
.Dv AAC_COMPAT_LINUX
option enables the Linux-compatible

View File

@ -236,6 +236,7 @@ aac_attach(struct aac_softc *sc)
unit = device_get_unit(sc->aac_dev);
sc->aac_dev_t = make_dev(&aac_cdevsw, unit, UID_ROOT, GID_WHEEL, 0644, "aac%d", unit);
(void)make_dev_alias(sc->aac_dev_t, "afa%d", unit);
(void)make_dev_alias(sc->aac_dev_t, "hpn%d", unit);
sc->aac_dev_t->si_drv1 = sc;