summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2011-07-22 21:08:19 +0000
committerdougb <dougb@FreeBSD.org>2011-07-22 21:08:19 +0000
commitb0952adc3d724d7d273111865dd4d0b40c478c18 (patch)
treec3bdea250329f77a5f31a4d7e99eb15bd2fe29d5 /etc
parent498accbc2c44a1b5d70741372daeaf4af870aa2c (diff)
downloadFreeBSD-src-b0952adc3d724d7d273111865dd4d0b40c478c18.zip
FreeBSD-src-b0952adc3d724d7d273111865dd4d0b40c478c18.tar.gz
Revert the apparently-unecessary module_path twiddling from r223917
Approved by: re (kib)
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/kld17
1 files changed, 2 insertions, 15 deletions
diff --git a/etc/rc.d/kld b/etc/rc.d/kld
index cd2fbab..946ec69 100755
--- a/etc/rc.d/kld
+++ b/etc/rc.d/kld
@@ -41,24 +41,11 @@ kld_start()
{
[ -n "$kld_list" ] || return
- local _kernel_path _module_path _kld _path
-
- _kernel_path=`$SYSCTL_N kern.bootfile`
- _kernel_path="${_kernel_path%/*}"
-
- _module_path=`$SYSCTL_N kern.module_path`
- _module_path="${_module_path#*\;}"
- _module_path="$_kernel_path `ltr $_module_path \; ' '`"
+ local _kld
echo 'Loading kernel modules:'
for _kld in $kld_list ; do
- for _path in $_module_path ; do
- if [ -x "${_path}/${_kld}.ko" ]; then
- load_kld -e ${_kld}.ko ${_path}/${_kld}.ko
- continue 2
- fi
- done
- warn "${_kld}.ko not found in $_module_path"
+ load_kld -e ${_kld}.ko $_kld
done
}
OpenPOWER on IntegriCloud