aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/0001-sysctl-Use-dev-null-instead-of-q.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-04 08:32:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-04 08:32:49 +0000
commitb566a70afbc033caae65f41deeffa8a150e61a32 (patch)
treebbeee840fd1ccf24718b51822415a0f7cf303211 /main/openrc/0001-sysctl-Use-dev-null-instead-of-q.patch
parent510621e468a5c3e5118a1a2907a9fbed41373116 (diff)
downloadaports-b566a70afbc033caae65f41deeffa8a150e61a32.tar.bz2
aports-b566a70afbc033caae65f41deeffa8a150e61a32.tar.xz
main/openrc: slightly better patch for openrc
Keeps the original "quiet" behaviour.
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
+