summaryrefslogtreecommitdiff
path: root/arch-sysctl
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-06 15:03:49 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-05-06 15:03:49 -0300
commit10c7127d5ff693a8f0c9671b9d3253315f2095be (patch)
tree07cc635750c86f96e3544f47deebdfd9bb50dcb7 /arch-sysctl
parent9e13f3aecd7c8c716929be9d9faf8725e3065a0e (diff)
parent86b2cb99028d81a6cb608f09e1a31bc7744a991c (diff)
Merge branch 'master' of git://projects.archlinux.org/initscripts2012.05.2
Conflicts: Makefile
Diffstat (limited to 'arch-sysctl')
-rwxr-xr-xarch-sysctl6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch-sysctl b/arch-sysctl
index 4856df6..f73f1f0 100755
--- a/arch-sysctl
+++ b/arch-sysctl
@@ -18,12 +18,12 @@ declare -A fragments
# files declared later in the sysctl_d array will override earlier
# Example: `/etc/sysctl.d/foo.conf' supersedes `/usr/lib/sysctl.d/foo.conf'.
-for path in "${sysctl_d[@]}"; do
- [[ -f $path ]] && fragments[${path##*/}]=$path
+for path in "${@:-${sysctl_d[@]}}"; do
+ [[ -f $path ]] && fragments[${path##*/}]=$path
done
for path in "${fragments[@]}"; do
- sysctl -q -p "$path"
+ sysctl -q -p"$path"
done
# vim: set ts=2 sw=2 noet: