Bug 8556

Summary: sysctl: add support for --system
Product: Busybox Reporter: austinenglish <austinenglish>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: enhancement CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=545410
Host: Target:
Build:

Description austinenglish@gmail.com 2015-12-23 19:55:56 UTC
austin@austin1:~$ busybox sysctl --system
sysctl: unrecognized option '--system'
BusyBox v1.24.1 (2015-12-08 17:41:42 CST) multi-call binary.

Usage: sysctl [OPTIONS] [KEY[=VALUE]]...

Show/set kernel parameters

	-e	Don't warn about unknown keys
	-n	Don't show key names
	-a	Show all values
	-w	Set values
	-p FILE	Set values from FILE (default /etc/sysctl.conf)
	-q      Set values silently

This is needed by OpenRC:
Standalone sysctl supports a --system option which is very useful
because it reads files from system configuration directories.

OpenRC uses this in the sysctl boot script, so it would be good if
busybox's sysctl could support it.

See https://bugs.gentoo.org/show_bug.cgi?id=545410