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> --- 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 ################################################################################