diff options
| author | Chris Costello <chris@FreeBSD.org> | 2000-08-09 02:03:30 +0000 |
|---|---|---|
| committer | Chris Costello <chris@FreeBSD.org> | 2000-08-09 02:03:30 +0000 |
| commit | 9d182321ce77a40e4afd7f376c52955c0cc0f995 (patch) | |
| tree | aaf716d3d8d013962f851ab1e1f47bc1d17f568e /etc/rc.sysctl | |
| parent | 3c2498c0d3fc38e6bfc12e28c5e06f1860d87d17 (diff) | |
Notes
Diffstat (limited to 'etc/rc.sysctl')
| -rw-r--r-- | etc/rc.sysctl | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/etc/rc.sysctl b/etc/rc.sysctl index 1a5c48eff461..7a852a3c2e80 100644 --- a/etc/rc.sysctl +++ b/etc/rc.sysctl @@ -3,14 +3,16 @@ # 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 + while read var comments do - sysctl -w ${var} - done + case ${var} in + \#*|'') + ;; + *) + sysctl -w ${var} + ;; + esac + done < /etc/sysctl.conf fi |
