freebsd-skq/etc/rc.d/sysctl
chris 29fd6b6840 Add and document support for handling comments and blank lines
in /etc/sysctl.conf.

Reviewed by:	imp, jkh
2000-01-16 18:12:42 +00:00

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