summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysrc
Commit message (Collapse)AuthorAgeFilesLines
* META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-12-011-0/+11
| | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division
* Add sysrc(8) support for "rc.conf.d" file(s) when given "-s name" todteske2015-11-032-12/+238
| | | | | | | | | | | | | indicate service(8) script. While here, add "-l" option for listing the set of configuration file(s) considered (in order; separated by space). Also add "-L" for exploring all configuration files and "-E" to omit files that don't exist from operations. Differential Revision: https://reviews.freebsd.org/D3551 Reviewed by: allanjude MFC after: 1 week X-MFC-to: stable/10 Relnotes: yes
* Remove redundant beforeinstall.bdrewery2015-09-181-4/+0
|
* Fix mandoc(1) "WARNING: end of line whitespace"dteske2015-09-031-15/+15
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Remove non-functional examples.dteske2015-09-031-22/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Minor code cleanups (no functional changes).dteske2015-09-021-14/+12
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Bump version for altered long-opts processingdteske2015-09-011-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Simplify long-option processingdteske2015-09-011-14/+10
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Bump version for prior fix (SVN r287381)dteske2015-09-011-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Style: Remove whitespace around brackets from function syntax optionsdteske2015-09-011-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Comment for escape() function.dteske2015-09-011-0/+8
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Commentdteske2015-09-011-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Properly escape arguments when moving into jail or chrootdteske2015-09-011-1/+22
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Style: commentsdteske2015-09-011-4/+4
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Style consistency: add single space before each `;;' case entrydteske2015-09-011-19/+19
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Remove `SYSRC_' prefix from $SYSRC_VERBOSE (prefix unnecessary sincedteske2015-09-011-12/+12
| | | | | | | this is a non-inheritable attribute; was previously). MFC after: 3 days X-MFC-to: stable/10
* Fix a few mandoc warnings.brueffer2015-08-121-2/+0
| | | | MFC after: 1 week
* Update usage statement to align with post-r279624 functionality.dteske2015-04-201-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9
* sysrc(8): Add `key-=remove' and improve `key+=append' syntaxdteske2015-03-052-26/+186
| | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9
* Add EXAMPLES-section entry for new key+=append syntax of sysrc(8).dteske2014-11-051-1/+7
| | | | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9 X-MFC-with: 274068 Thanks to: @SeanChittenden
* Add key+=append syntax to sysrc(8).dteske2014-11-032-7/+27
| | | | | | Reviewed by: shurd MFC after: 3 days X-MFC-to: stable/10 stable/9
* Oops, forgot to bump manual date/copyright in r268860.dteske2014-07-181-2/+2
| | | | | | MFC after: 3 days X-MFC-to: stable/10, stable/9, ports X-MFC-with: r268860
* Minor enhancements, bug fixes, and man-page adjustments.dteske2014-07-182-28/+40
| | | | | | | | | | | | | | | | | | | | | | + Make `sysrc -x foo' produce error status if foo is unset. NB: Reported by lme (everything else ``while I'm at it'') + Remove mention of SYSRC_VERBOSE from `sysrc --help' output. NB: False documentation leftover from an ancient precursor. + Make `sysrc -qc foo' work the same as `sysrc -ic foo' when foo is unset NB: For syntax convenience (my fingers know `-q' more than `-i'). + Update description of `-c' flag in help message/manual. + Update description of `-q' flag in help message/manual. + Make `sysrc -vc foo' work as documented in the manual NB: Show message stating whether foo is currently set. + Make `sysrc -vc foo=1' work as documented in the manual NB: Show message stating how value of foo would be changed (if at all). + Remove odd usage of parentheses in `-R dir' section of manual. + Clarify syntax section of manual w/respect to sysctl(8) similarities. + Add new/missing people to the `THANKS TO' section of the manual. Reported by: lme MFC after: 3 days X-MFC-to: stable/10, stable/9, ports
* use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-1/+1
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* Revert SVN r257830 -- that feature was annoying and was removed long ago.dteske2013-11-211-5/+2
| | | | Was a momentary memory lapse induced by old code that was lying in my ~/bin
* Document SYSRC_VERBOSE enviroment variable in the manual.dteske2013-11-071-1/+4
|
* Fix a bug with `-e' that broke sometime around when I added `-F'. Also,dteske2013-11-072-13/+25
| | | | | revamp the `-e' output to truly be sh(1) compatible syntax (even if passed in `-v' for verbose output).
* Comments and whitespace.dteske2013-11-071-4/+9
|
* Add a `-c' option for `check only' to determine if a value is setdteske2013-11-072-8/+49
| | | | | | | | (get command) or if the current value is the same as what is desired (set command). In those cases, the return status is success. Otherwise, if the variable is unset (get command) or set to a different value that what is desired (set command), returns with error status. This is useful for puppet integration as well as everyday scripting.
* Add new `--version' long option for getting the version (good fordteske2013-11-072-4/+16
| | | | comparing against the ports revision).
* Fix a bug that prevented `-d' from working as-documented in sysrc(8).dteske2013-11-071-0/+4
| | | | | | Rather, prevent a bunch of debugging information from spewing onto the screen when using the `describe' flag (misinterpreted as `debug' by the automatatic initialization routines).
* Fix typos in the BSD License.dteske2013-07-071-1/+1
|
* Update release info.dteske2013-07-051-1/+1
|
* Update copyright/date on the back of r252798.dteske2013-07-051-2/+2
|
* Update sysrc(8) manual to coincide with r252797:dteske2013-07-051-7/+3
| | | | | | | | | | | | | Do not inherit $SYSRC_VERBOSE from operating environment. The concern is that when a user (such as myself) which has SYSRC_VERBOSE=1 in his/her ~/.bash_profile or such that when they are told to execute a command like: hostname `sysrc -n hostname` NOTE: To activate a recently configured hostname. If $SYSRC_VERBOSE is set, then POLA is violated because the output of sysrc is indirectly influenced (making for an inconsistent experience).
* Do not inherit $SYSRC_VERBOSE from operating environment. The concern isdteske2013-07-051-8/+2
| | | | | | | | | | | | that when a user (such as myself) which has SYSRC_VERBOSE=1 in his/her ~/.bash_profile or such that when they are told to execute a command like: hostname `sysrc -n hostname` NOTE: To activate a recently configured hostname. If $SYSRC_VERBOSE is set, then POLA is violated because the output of sysrc is indirectly influenced (making for an inconsistent experience).
* Remove NO_OBJ from Makefiles that generate manuals because this causes thedteske2013-02-081-2/+0
| | | | | | | GZIP compressed manuals to appear in ./src instead of the appropriate obj dir. PR: conf/175844 Submitted by: Dominique Goncalves <dominique.goncalves@gmail.com>
* Mirror the changes made in SVN r240798:dteske2012-10-141-4/+3
| | | | | | | Replace "( : ${var?} )" syntax with better "[ ${var+set} ]" syntax. Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* mdoc: begin sentences on a new line.joel2012-10-061-10/+20
|
* Minor mdoc fix.joel2012-10-061-1/+1
|
* Remove trailing whitespace.joel2012-10-061-1/+1
|
* Fix HISTORY.joel2012-10-041-1/+1
|
* Sort manual page cross references.zeising2012-10-031-5/+6
| | | | Approved by: joel (mentor)
* Remove whitespace at EOLzeising2012-10-031-16/+16
| | | | Approved by: joel (mentor)
* Import sysutils/sysrc from the ports tree (current version 5.1). Importingdteske2012-10-033-0/+921
disconnected under the WITH_BSDCONFIG flag (a good idea since this version of sysrc(8) indeed requires the `sysrc.subr' module installed by bsdconfig(8)). Multiple reasons sysrc should not simply continue to live in ports. The most important being that it is tightly coupled with the base. Approved by: adrian (co-mentor)
OpenPOWER on IntegriCloud