sysctl: apply /etc/sysctl.conf last

apply /etc/sysctl.conf last to actually allow the admin to override
package provided defaults.
This commit is contained in:
Ludwig Nussel 2011-05-16 11:11:52 +02:00 committed by Lennart Poettering
parent 84bccb47a7
commit cb80401132

View File

@ -138,7 +138,6 @@ int main(int argc, char *argv[]) {
else {
char **files, **f;
apply_file("/etc/sysctl.conf", true);
r = conf_files_list(&files, ".conf",
"/run/sysctl.d",
@ -160,6 +159,8 @@ int main(int argc, char *argv[]) {
r = k;
}
apply_file("/etc/sysctl.conf", true);
strv_free(files);
}
finish: