check-sysctl.sh 147B

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