Enhance the sysctl code, will be used by /etc/network.subr
- sysctl -i - Exit cleanly with exit code 0 if a sysctl mib does not exist. No warning or error message is output for this case.
- sysctl -q - Exit with exit code N if a sysctl mib does not exist. N is the number of mib's on the command line which failed. No warning or error message is output for this case.
823c552 sysctl - Add -i and -q from FreeBSD
sbin/sysctl/sysctl.8 | 9 +++++++--
sbin/sysctl/sysctl.c | 37 +++++++++++++++++++++++++++++--------
2 files changed, 36 insertions(+), 10 deletions(-)
Upstream: gitweb.dragonflybsd.org