#
# Set runtime for SYSCTLVAR
#
sysctl -q -n -w SYSCTLVAR=SYSCTLVAL

#
# If SYSCTLVAR present in /etc/sysctl.conf, change value to "SYSCTLVAL"
#	else, add "SYSCTLVAR = SYSCTLVAL" to /etc/sysctl.conf
#
if grep --silent ^SYSCTLVAR /etc/sysctl.conf ; then
	sed -i 's/^SYSCTLVAR.*/SYSCTLVAR = SYSCTLVAL/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set SYSCTLVAR to SYSCTLVAL per security requirements" >> /etc/sysctl.conf
	echo "SYSCTLVAR = SYSCTLVAL" >> /etc/sysctl.conf
fi
