From cb80401132edc9c0a717abb55b54d3a8016cd5ce Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 16 May 2011 11:11:52 +0200 Subject: [PATCH] sysctl: apply /etc/sysctl.conf last apply /etc/sysctl.conf last to actually allow the admin to override package provided defaults. --- src/sysctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sysctl.c b/src/sysctl.c index 09c0a6a6152..76ce9d86406 100644 --- a/src/sysctl.c +++ b/src/sysctl.c @@ -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: