rc.subr: Eliminate a fork from check_kern_features, like r223227.

MFC after:	2 weeks
This commit is contained in:
Jilles Tjoelker 2011-06-19 11:42:48 +00:00
parent 43764a7ffa
commit 5062455134
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223292

View File

@ -1744,7 +1744,7 @@ check_kern_features()
local _v
[ -n "$1" ] || return 1;
_v=`eval echo "\\$_rc_cache_kern_features_$1"`
eval _v=\$_rc_cache_kern_features_$1
[ -n "$_v" ] && return "$_v";
if ${SYSCTL_N} kern.features.$1 > /dev/null 2>&1; then