mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01:00
64304d8c44
in /etc/sysctl.conf. Reviewed by: imp, jkh
17 lines
229 B
Bash
17 lines
229 B
Bash
#!/bin/sh
|
|
#
|
|
# Read in /etc/sysctl.conf and set things accordingly
|
|
#
|
|
# $FreeBSD$
|
|
if [ -f /etc/sysctl.conf ]; then
|
|
sed '
|
|
/^[ ]*#/d
|
|
/^[ ]*$/d
|
|
s/#.*$//g
|
|
' /etc/sysctl.conf |
|
|
while read var
|
|
do
|
|
sysctl -w ${var}
|
|
done
|
|
fi
|