From cef1df887e0a8ed57827ef1db97ebd487ae8a4af Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Tue, 10 Apr 2001 08:31:13 +0000 Subject: [PATCH] kldload ng_pppoe as necessary --- usr.sbin/ppp/ether.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr.sbin/ppp/ether.c b/usr.sbin/ppp/ether.c index f683cdd32ad..0af8ff54633 100644 --- a/usr.sbin/ppp/ether.c +++ b/usr.sbin/ppp/ether.c @@ -435,6 +435,11 @@ ether_Create(struct physical *p) */ log_Printf(LogWARN, "kldload: ng_ether: %s\n", strerror(errno)); + if (modfind("ng_pppoe") == -1 && ID0kldload("ng_pppoe") == -1) { + log_Printf(LogWARN, "kldload: ng_pppoe: %s\n", strerror(errno)); + return NULL; + } + if (modfind("ng_socket") == -1 && ID0kldload("ng_socket") == -1) { log_Printf(LogWARN, "kldload: ng_socket: %s\n", strerror(errno)); return NULL;