#!/bin/bash rmemCount=`cat /etc/sysctl.conf|grep "net.core.rmem_max" | wc -l` if [ ${rmemCount} -eq 0 ] then echo "net.core.rmem_max = 2147483647" >> /etc/sysctl.conf sysctl -p echo "finish" fi