summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/sysctl18
1 files changed, 10 insertions, 8 deletions
diff --git a/etc/rc.d/sysctl b/etc/rc.d/sysctl
index 1a5c48e..7a852a3 100644
--- a/etc/rc.d/sysctl
+++ b/etc/rc.d/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
OpenPOWER on IntegriCloud