summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-04-05 22:53:35 +0000
committerbrian <brian@FreeBSD.org>2001-04-05 22:53:35 +0000
commit658db5529ce18698a839ad50c61a9fd0109691ca (patch)
tree8d273a38c5e29bceb0a5adea7f16373d9a28748c /usr.sbin
parent38d0dc1d2ef7ddbe6a44cad8d6923a97697e8ba8 (diff)
downloadFreeBSD-src-658db5529ce18698a839ad50c61a9fd0109691ca.zip
FreeBSD-src-658db5529ce18698a839ad50c61a9fd0109691ca.tar.gz
It's possible to kldload netgraph (as well as the other ng_* bits),
so do it if required.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ether.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ether.c b/usr.sbin/ppp/ether.c
index aaa86a5..f683cdd 100644
--- a/usr.sbin/ppp/ether.c
+++ b/usr.sbin/ppp/ether.c
@@ -423,8 +423,8 @@ ether_Create(struct physical *p)
p->fd--; /* We own the device - change fd */
#if defined(__FreeBSD__) && !defined(NOKLDLOAD)
- if (modfind("netgraph") == -1) {
- log_Printf(LogWARN, "Netgraph is not built into the kernel\n");
+ if (modfind("netgraph") == -1 && ID0kldload("netgraph") == -1) {
+ log_Printf(LogWARN, "kldload: netgraph: %s\n", strerror(errno));
return NULL;
}
OpenPOWER on IntegriCloud