diff options
Diffstat (limited to 'init.d/sysctl.BSD.in')
-rw-r--r-- | init.d/sysctl.BSD.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/init.d/sysctl.BSD.in b/init.d/sysctl.BSD.in index 6131a0b6..6db6e7ea 100644 --- a/init.d/sysctl.BSD.in +++ b/init.d/sysctl.BSD.in @@ -1,5 +1,5 @@ #!@PREFIX@/sbin/runscript -# Copyright 2007-2008 Roy Marples <roy@marples.name> +# Copyright 2007-2009 Roy Marples <roy@marples.name> # All rights reserved. Released under the 2-clause BSD license. depend() @@ -15,10 +15,10 @@ start() local retval=0 var= comments= ebegin "Configuring kernel parameters" while read var comments; do - case "${var}" in + case "$var" in ""|"#"*) continue;; esac - sysctl -w "${var}" >/dev/null || retval=1 + sysctl -w "$var" >/dev/null || retval=1 done < /etc/sysctl.conf - eend ${retval} "Some errors were encountered" + eend $retval "Some errors were encountered" } |