sysctl - Add -i and -q from FreeBSD
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 12 May 2016 21:27:09 +0000 (14:27 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 12 May 2016 21:29:16 +0000 (14:29 -0700)
commit823c552f60f672bc220d474809aa6d5a8cf454cf
tree1d7d138557b4cf9ce69281f6d47bef58c0df3040
parent418b861a8c9d5d25c35c07807b99ce35cb0ea926
sysctl - Add -i and -q from FreeBSD

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.
sbin/sysctl/sysctl.8
sbin/sysctl/sysctl.c