freebsd-skq/etc/rc.sysctl
chris ecf1cd2d1c Use shell matching instead of sed(1) to strip comments and blank lines.
Since it doesn't depend on anything in /usr, it should work with a NFS-mounted
/usr partition.

Thanks to Bruce Evans to bringing this to my attention.
2000-08-09 02:03:30 +00:00

19 lines
242 B
Bash

#!/bin/sh
#
# Read in /etc/sysctl.conf and set things accordingly
#
# $FreeBSD$
if [ -f /etc/sysctl.conf ]; then
while read var comments
do
case ${var} in
\#*|'')
;;
*)
sysctl -w ${var}
;;
esac
done < /etc/sysctl.conf
fi