mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
I think it is more correct to use modfind() than kldfind() here.
This commit is contained in:
parent
cbe10a2a89
commit
fc36082a22
1 changed files with 2 additions and 2 deletions
|
|
@ -672,9 +672,9 @@ main(int argc, char **argv)
|
|||
if (argc < 3)
|
||||
usage("Too few arguments\n");
|
||||
|
||||
if ((i = kldfind(GBDEMOD)) < 0) {
|
||||
if ((i = modfind("g_bde")) < 0) {
|
||||
/* need to load the gbde module */
|
||||
if (kldload(GBDEMOD) < 0 || kldfind(GBDEMOD) < 0) {
|
||||
if (kldload(GBDEMOD) < 0 || modfind("g_bde") < 0) {
|
||||
usage(GBDEMOD ": Kernel module not available");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue