From 01dba03704574dda2c43ec3a0609144a8c03c641 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 28 Apr 2015 12:26:46 +0200 Subject: [PATCH] sysctl.Linux.in: fix for busybox sysctl busybox sysctl does not support --system --- init.d/sysctl.Linux.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/init.d/sysctl.Linux.in b/init.d/sysctl.Linux.in index 1defcec..2371b29 100644 --- a/init.d/sysctl.Linux.in +++ b/init.d/sysctl.Linux.in @@ -14,6 +14,17 @@ start() yesno $rc_verbose || quiet=-q ebegin "Configuring kernel parameters" - sysctl ${quiet} --system + set -- + for i in /run/sysctl.d/*.conf \ + /etc/sysctl.d/*.conf \ + /usr/local/lib/sysctl.d/*.conf \ + /usr/lib/sysctl.d/*.conf \ + /lib/sysctl.d/*.conf \ + /etc/sysctl.conf; do + if [ -e "$i" ]; then + set -- "$@" "$i" + fi + done + sysctl ${quiet} -p "$@" eend $? "Unable to configure some kernel parameters" } -- 2.3.6