aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/0001-sysctl-Use-dev-null-instead-of-q.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/openrc/0001-sysctl-Use-dev-null-instead-of-q.patch')
-rw-r--r--main/openrc/0001-sysctl-Use-dev-null-instead-of-q.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/openrc/0001-sysctl-Use-dev-null-instead-of-q.patch b/main/openrc/0001-sysctl-Use-dev-null-instead-of-q.patch
new file mode 100644
index 0000000000..5f92c755a0
--- /dev/null
+++ b/main/openrc/0001-sysctl-Use-dev-null-instead-of-q.patch
@@ -0,0 +1,29 @@
+From 73559a25e0fb484fc3ba42f1796b9b2b46128714 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 4 Aug 2011 06:35:44 +0000
+Subject: [PATCH] sysctl: Use /dev/null instead of -q
+
+Busybox sysctl has no -q option so use /dev/null instead.
+---
+ init.d/sysctl.Linux.in | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/init.d/sysctl.Linux.in b/init.d/sysctl.Linux.in
+index 71932fe..9449c5c 100644
+--- a/init.d/sysctl.Linux.in
++++ b/init.d/sysctl.Linux.in
+@@ -18,9 +18,9 @@ start()
+ for conf in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
+ if [ -r "$conf" ]; then
+ vebegin "applying $conf"
+- if ! err=$(sysctl -q -p "$conf" 2>&1) ; then
++ if ! err=$(sysctl -p "$conf" 2>&1 >/dev/null) ; then
+ errs="${errs} ${err}"
+- sysctl -q -e -p "${conf}"
++ sysctl -e -p "${conf}" >/dev/null
+ fi
+ veend $? || retval=1
+ fi
+--
+1.7.6
+