| Summary: | /dev/MAKEDEV entry for RocketPort is broken | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Tom Limoncelli <tal> |
| Component: | i386 | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.5-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Tom Limoncelli
2002-04-23 15:30:01 UTC
tal> I fixed part 1 by passing the output of dmesg through "sort -u", tal> but there has got to be a better way. Maybe the script shouldn't tal> try to be so smart and just create the entries. What's happen if you insert "tail -1" instead of "sort -u"? I don't have any RocketPort (I can't test your patch), but it seems that this code wants only the *last* entry. -- - Makoto `MAR' Matsushita "tail -1" won't work because you might have multiple rocketports (in which case "sort -u" would output "RocketPort0 = 32\nRocketPort1 = 32\n". Note: the "0" was left out in the original submission. Here's an example that is cut-and-pasted to avoid typos: # dmesg|egrep Rock RocketPort0 = 32 ports RocketPort0 = 32 ports RocketPort0 = 32 ports RocketPort0 = 32 ports (this machine has been rebooted 4 times since dmesg was cleared) State Changed From-To: open->closed The MAKEDEV script is obsolete, since entries in /dev are created dynamically using DEVFS in FreeBSD 5.x and higher. |