diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-06 15:03:49 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-06 15:03:49 -0300 |
commit | 10c7127d5ff693a8f0c9671b9d3253315f2095be (patch) | |
tree | 07cc635750c86f96e3544f47deebdfd9bb50dcb7 /arch-sysctl | |
parent | 9e13f3aecd7c8c716929be9d9faf8725e3065a0e (diff) | |
parent | 86b2cb99028d81a6cb608f09e1a31bc7744a991c (diff) |
Merge branch 'master' of git://projects.archlinux.org/initscripts2012.05.2
Conflicts:
Makefile
Diffstat (limited to 'arch-sysctl')
-rwxr-xr-x | arch-sysctl | 6 |
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: |