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' )
}
for i in /etc/sysctl.d /usr/lib/sysctl.d; do
[[ -d "$i" ]] && {
sysctl_config_files+=( "$i/"* )
for i in /etc/sysctl.d/* /usr/lib/sysctl.d/*; do
[[ -f "$i" ]] && {
sysctl_config_files+=( "$i" )
}
done