aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2023-06-21 12:26:17 +0000
committerDoug Rabson <dfr@FreeBSD.org>2023-07-14 09:49:47 +0000
commit09267cc15284795fef958fb9ed786bb2382d6763 (patch)
tree21efc23d4483db382f464d41239159dda6d6efb3 /libexec/rc
parentf53b28c6dffebbd554d5c07b3abc03b83a8c89ad (diff)
Diffstat (limited to 'libexec/rc')
-rw-r--r--libexec/rc/rc.subr3
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index 6a7f070f7f5b..ef3da46b3206 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -1970,6 +1970,9 @@ load_kld()
return 1
else
info "$1 kernel module loaded."
+ if [ -f "/etc/sysctl.conf.d/$1.conf" ]; then
+ sysctl -f "/etc/sysctl.conf.d/$1.conf"
+ fi
fi
else
debug "load_kld: $1 kernel module already loaded."