[arch-projects] [initscripts][PATCH] arch-sysctl: suppress errors about unknown

lolilolicon lolilolicon at gmail.com
Tue Dec 13 11:52:02 EST 2011


The errors about unknown keys in boot messages are harmless, but annoying.
Some keys may become unknown when some modules are disabled, yet the user
may want to keep the sysctl.conf entries so they can take effect when the
modules are subsequently (re)enabled.  One example is the IPv6 module and
the net.ipv6.conf.all.use_tempaddr key.

Signed-off-by: lolilolicon <lolilolicon at gmail.com>
---
 arch-sysctl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch-sysctl b/arch-sysctl
index 4856df6..028fba7 100755
--- a/arch-sysctl
+++ b/arch-sysctl
@@ -23,7 +23,7 @@ for path in "${sysctl_d[@]}"; do
 done
 
 for path in "${fragments[@]}"; do
-	sysctl -q -p "$path"
+	sysctl -e -q -p "$path"
 done
 
 # vim: set ts=2 sw=2 noet:
-- 
1.7.8



More information about the arch-projects mailing list