summaryrefslogtreecommitdiffstats
path: root/sys/dev/asr
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-04-01 22:12:53 +0000
committerscottl <scottl@FreeBSD.org>2005-04-01 22:12:53 +0000
commit45160e9067ecf4dcfbcb6056315978829c8e39f6 (patch)
tree5705ecf89a662e5d2fcd20eb22a510a0cf5a8b80 /sys/dev/asr
parenta3c6b782c3ed4abd939e54896eed4b89f4d18d21 (diff)
downloadFreeBSD-src-45160e9067ecf4dcfbcb6056315978829c8e39f6.zip
FreeBSD-src-45160e9067ecf4dcfbcb6056315978829c8e39f6.tar.gz
Make life easier on those trying to use the asr utilities by automatically
creating the /dev/dpti%d entry that the software expects. This is just a band-aid until either someone (hopefully) rewrites the utilities, or all asr/dpt cards in existance get blasted into the sun.
Diffstat (limited to 'sys/dev/asr')
-rw-r--r--sys/dev/asr/asr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c
index 25ee317..a6dff07 100644
--- a/sys/dev/asr/asr.c
+++ b/sys/dev/asr/asr.c
@@ -2582,6 +2582,7 @@ asr_attach(device_t tag)
*/
sc->ha_devt = make_dev(&asr_cdevsw, unit, UID_ROOT, GID_OPERATOR, 0640,
"asr%d", unit);
+ (void)make_dev_alias(sc->ha_devt, "rdpti%d", unit);
sc->ha_devt->si_drv1 = sc;
return(0);
} /* asr_attach */
OpenPOWER on IntegriCloud