aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/0001-sysctl.Linux.in-fix-for-busybox-sysctl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/openrc/0001-sysctl.Linux.in-fix-for-busybox-sysctl.patch')
-rw-r--r--main/openrc/0001-sysctl.Linux.in-fix-for-busybox-sysctl.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/main/openrc/0001-sysctl.Linux.in-fix-for-busybox-sysctl.patch b/main/openrc/0001-sysctl.Linux.in-fix-for-busybox-sysctl.patch
new file mode 100644
index 0000000000..a587126740
--- /dev/null
+++ b/main/openrc/0001-sysctl.Linux.in-fix-for-busybox-sysctl.patch
@@ -0,0 +1,36 @@
+From 01dba03704574dda2c43ec3a0609144a8c03c641 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+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
+