Better sysctl script

This commit is contained in:
Alad Wenter 2015-03-05 12:43:37 +03:00 committed by fbt
parent ac4659f500
commit 9a36ff7ab0

View File

@ -4,9 +4,9 @@
sysctl_config_files+=( '/etc/sysctl.conf' ) sysctl_config_files+=( '/etc/sysctl.conf' )
} }
for i in /etc/sysctl.d /usr/lib/sysctl.d; do for i in /etc/sysctl.d/* /usr/lib/sysctl.d/*; do
[[ -d "$i" ]] && { [[ -f "$i" ]] && {
sysctl_config_files+=( "$i/"* ) sysctl_config_files+=( "$i" )
} }
done done