Deleted Added
full compact
sysctl (56118) sysctl (64446)
1#!/bin/sh
2#
3# Read in /etc/sysctl.conf and set things accordingly
4#
1#!/bin/sh
2#
3# Read in /etc/sysctl.conf and set things accordingly
4#
5# $FreeBSD: head/etc/rc.d/sysctl 56118 2000-01-16 18:12:42Z chris $
5# $FreeBSD: head/etc/rc.d/sysctl 64446 2000-08-09 02:03:30Z chris $
6
6if [ -f /etc/sysctl.conf ]; then
7if [ -f /etc/sysctl.conf ]; then
7 sed '
8 /^[ ]*#/d
9 /^[ ]*$/d
10 s/#.*$//g
11 ' /etc/sysctl.conf |
12 while read var
8 while read var comments
13 do
9 do
14 sysctl -w ${var}
15 done
10 case ${var} in
11 \#*|'')
12 ;;
13 *)
14 sysctl -w ${var}
15 ;;
16 esac
17 done < /etc/sysctl.conf
16fi
18fi