summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Tarreau <willy@wtap.(none)>2006-07-17 21:04:34 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 12:04:04 +0200
commit8b61de8ca0d412518c3478c54f63581101c4216e (patch)
treec7a84cf473fd75f40364ecfa8c379316d5929749
parent* network: multiple fixes (sysctl,autoneg) and completion helper (diff)
downloadinit-scripts-8b61de8ca0d412518c3478c54f63581101c4216e.tar.gz
* system: fix support for sysctls with multiple entries (eg: bdflush)
-rwxr-xr-xsbin/init.d/system10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/init.d/system b/sbin/init.d/system
index 27d891d..0a0c14f 100755
--- a/sbin/init.d/system
+++ b/sbin/init.d/system
@@ -93,13 +93,13 @@ function do_start {
do_date_from_hw
- for arg in ${opt_sysctl[*]}; do
+ for arg in "${opt_sysctl[@]}"; do
local sysctl value
- sysctl=${arg%%=*}
- sysctl=${sysctl//.//}
- value=${arg##*=}
+ sysctl="${arg%%=*}"
+ sysctl="${sysctl//.//}"
+ value="${arg##*=}"
if [ -e "/proc/sys/$sysctl" ]; then
- echo $value > /proc/sys/$sysctl
+ echo "$value" > "/proc/sys/$sysctl"
else
echo "Non-existent sysctl entry : $arg"
fi