summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/devices.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-20 14:36:39 +0000
committerjkh <jkh@FreeBSD.org>1995-05-20 14:36:39 +0000
commitc7364c609c23611a591a2417284de28b85f235bc (patch)
tree3356a26c30f141a8caab46416f4e60cb3c1e2935 /usr.sbin/sysinstall/devices.c
parent4a304ce1a08feaf28e1297725261f21b987ed0fd (diff)
downloadFreeBSD-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.c5
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);
}
OpenPOWER on IntegriCloud