New _require_sysctl_variable test to ensure that the sysctl we wish to
test is available on the system.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
$ACCTON_PROG off >> $seqres.full
}
+_require_sysctl_variable()
+{
+ local name=$1
+ sysctl $name &>/dev/null || _notrun "$name sysctl unavailable"
+}
+
init_rc
################################################################################