diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-20 14:36:39 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-20 14:36:39 +0000 |
commit | c7364c609c23611a591a2417284de28b85f235bc (patch) | |
tree | 3356a26c30f141a8caab46416f4e60cb3c1e2935 /usr.sbin/sysinstall/devices.c | |
parent | 4a304ce1a08feaf28e1297725261f21b987ed0fd (diff) | |
download | FreeBSD-src-c7364c609c23611a591a2417284de28b85f235bc.zip FreeBSD-src-c7364c609c23611a591a2417284de28b85f235bc.tar.gz |
Use ppp0 for all serial devices. It's somewhat kludge, but at
least accurate (we only have one ppp device on the floppy).
Diffstat (limited to 'usr.sbin/sysinstall/devices.c')
-rw-r--r-- | usr.sbin/sysinstall/devices.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/devices.c b/usr.sbin/sysinstall/devices.c index 113b1d8..e6d3137 100644 --- a/usr.sbin/sysinstall/devices.c +++ b/usr.sbin/sysinstall/devices.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: devices.c,v 1.20 1995/05/20 00:13:06 jkh Exp $ + * $Id: devices.c,v 1.21 1995/05/20 10:33:00 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -234,7 +234,8 @@ deviceGetAll(void) fd = deviceTry(device_names[i].name, try); if (fd >= 0) { close(fd); - deviceRegister(device_names[i].name, device_names[i].description, strdup(try), + /* The only network devices that have fds associated are serial ones */ + deviceRegister("ppp0", device_names[i].description, strdup(try), DEVICE_TYPE_NETWORK, TRUE, mediaInitNetwork, mediaGetNetwork, mediaCloseNetwork, NULL); msgDebug("Found a device of type network named: %s\n", device_names[i].name); } |