ifconfig(8): Fix support for automatic driver module loading.
authorSascha Wildner <saw@online.de>
Tue, 20 Oct 2015 16:10:10 +0000 (18:10 +0200)
committerSascha Wildner <saw@online.de>
Tue, 20 Oct 2015 16:10:10 +0000 (18:10 +0200)
commit83a76af30663c2897c5540c46cde465b7fe9b89a
tree5655481114c7c877a5e126adbd1ba3933610cbd3
parent323b0fc13feccf06ffa1bb2c94c4661601296cf5
ifconfig(8): Fix support for automatic driver module loading.

Before this commit, trying to configure for example 'ifconfig vxnet ..."
would have kldload'ed the if_vx module even if there was a if_vxnet one
if they both existed and none of them was loaded.

FreeBSD fixed this in r279951. This commit brings in their ifmaybeload()
function wholesale.

Taken-from:  FreeBSD
Reported-by: Bill Yuan <bycn82@leaf.dragonflybsd.org>
sbin/ifconfig/ifconfig.c