On Tue, May 05, 2020 at 03:17:38PM -0500, Eric Sandeen wrote: > New _require_sysctl test to ensure that the sysctl we wish to test is > available on the system. > > Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> > --- Reviewed-by: Bill O'Donnell <billodo@xxxxxxxxxx> > > diff --git a/common/rc b/common/rc > index 2000bd9d..2734dbf6 100644 > --- a/common/rc > +++ b/common/rc > @@ -4208,6 +4208,12 @@ _require_bsd_process_accounting() > $ACCTON_PROG off >> $seqres.full > } > > +_require_sysctl() > +{ > + name=$1 > + sysctl $name &>/dev/null || _notrun "$name sysctl unavailable" > +} > + > init_rc > > ################################################################################ >