diff options
| author | Chris Costello <chris@FreeBSD.org> | 2000-01-16 18:12:42 +0000 |
|---|---|---|
| committer | Chris Costello <chris@FreeBSD.org> | 2000-01-16 18:12:42 +0000 |
| commit | 64304d8c442bda9a265f6ae67a97933cc8091bc0 (patch) | |
| tree | be0cd42f3dcc6f0a3482242dc7ef9bea6d4f6fdd /etc/rc.sysctl | |
| parent | 42ae04d936217bbf5443d6782b38b443f64d3223 (diff) | |
Notes
Diffstat (limited to 'etc/rc.sysctl')
| -rw-r--r-- | etc/rc.sysctl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/rc.sysctl b/etc/rc.sysctl index 2c00357491b8..1a5c48eff461 100644 --- a/etc/rc.sysctl +++ b/etc/rc.sysctl @@ -4,10 +4,13 @@ # # $FreeBSD$ if [ -f /etc/sysctl.conf ]; then - 3< /etc/sysctl.conf - while read 0<&3 var; + sed ' + /^[ ]*#/d + /^[ ]*$/d + s/#.*$//g + ' /etc/sysctl.conf | + while read var do sysctl -w ${var} done - 3<&- fi |
