freedombonee/tests/check-sysctl.sh

9 lines
147 B
Bash

#!/bin/bash
OPTION=$1
COMPARE=$2
CONDITION=$3
if [ "$(sysctl $OPTION | awk '{print $3}')" -$(echo $COMPARE) "$CONDITION" ];then
exit 1
fi