summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig
Commit message (Collapse)AuthorAgeFilesLines
* More-accurately replicate the help system from sysinstall(8). However, alsodteske2012-10-185-5/+61
| | | | | | | | | | | | | | | improve upon the system by giving the user a "Help" button instead of requiring the user to press F1. NOTE: In FreeBSD-9 and higher, dialog(1) does not support the F1 hook, so the mechanism for providing help to the user had to be changed to a button. This now means we can resurrect *.hlp files from usr.sbin/sysinstall/help/ as- is and reusing them as-needed in bsdconfig (holding to the goal of losing as little functionality from sysinstall as possible). Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Fix a bug where blank lines were not being counted (because awk's split()dteske2012-10-181-1/+1
| | | | | | | function returns zero when $0 is the NULL string). Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Fix typo.dteske2012-10-181-1/+1
| | | | | Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Ask to become root via sudo(8) and give user ability to save this preference.dteske2012-10-172-0/+65
| | | | | Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* SVN r240684 broke the ability of the dot module to map include dependencies.dteske2012-10-131-46/+66
| | | | | | | | Teach the dot module about the new location these includes moved to (as part of r240684) and clean things up a bit. Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Minor mdoc fixes.joel2012-10-071-1/+1
|
* Import sysutils/sysrc from the ports tree (current version 5.1). Importingdteske2012-10-031-2/+2
| | | | | | | | | | 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)
* Allow deferred word-splitting via f_sysrc_get() by allowing $IFS in thedteske2012-09-291-3/+2
| | | | | | | | | | | | | | "clean-room" environment used to query rc.conf(5) parameters. This brings bsdconfig(8)'s sysrc.subr in-line with both the sysrc(8) manual [provided by sysutils/sysrc] and sysrc(8)'s own sysrc.subr (now identical to bsdconfig(8)'s sysrc.subr as of this patch). Finally, this will allow a clean import of sysutils/sysrc (sans sysrc.subr, already provided here). Reviewed by: jilles Approved by: adrian (co-mentor)
* Sanitize varname argument in f_sysrc_find. This is as much for security as itdteske2012-09-281-2/+15
| | | | | | | is for sanity. Reviewed by: jilles Approved by: adrian (co-mentor)
* Always use RC_CONFS when set, even if NULL. Previously only used if non-NULL.dteske2012-09-231-3/+3
| | | | | Reviewed by: jilles, adrian (co-mentor) Approved by: adrian (co-mentor)
* jilles accurately advises that, in the context of shell redirection, the `:'dteske2012-09-221-1/+1
| | | | | | | | | | | | | | | | | | builtin is processed specially and thus the `: > file' syntax for example will cause premature termination of the current shell on redirection-error. The `true' builtin on the other-hand is not included in this special processing (for compatibility reasons to satisfy legacy scripts programmed for systems where `true' is not a builtin). Change bare `: > file' syntax into `true > file' syntax to prevent premature shell termination in the event of redirection-error. NOTE: Instances of `: > file' that appear within a sub-shell have been left unmodified as these will not cause premature termination of the main script. Reviewed by: jilles, adrian (co-mentor) Approved by: adrian (co-mentor)
* Replace "( : ${var?} )" syntax with better "[ ${var+set} ]" syntax.dteske2012-09-225-11/+7
| | | | | Reviewed by: jilles, adrian (co-mentor) Approved by: jilles, adrian (co-mentor)
* Spelling and whitespace corrections.dteske2012-09-224-8/+8
| | | | | Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Reverse SVN r240770 -- jilles@ made a suggestion that allowed us to redesigndteske2012-09-2122-62/+62
| | | | | | | our embedded rescue environment to support /dev/null making r240770 obsolete. Reviewed by: jilles, adrian (co-mentor) Approved by: jilles, adrian (co-mentor)
* Replace redirections to /dev/null with "close file-descriptor" syntax (>&-).dteske2012-09-2122-62/+62
| | | | | Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Change all invocations of dialog(1) to no-longer require temporary files.dteske2012-09-2039-188/+441
| | | | | | | This allows bsdconfig to -- like bsdinstall -- operate from read-only media. Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Move major includes into /usr/share/bsdconfig for easy external access.dteske2012-09-1885-381/+455
| | | | | Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Correct double "the the"eadler2012-09-141-1/+1
| | | | | Approved by: cperciva MFC after: 3 days
* Mdoc and whitespace fixes.joel2012-07-141-16/+9
|
* Import bsdconfig(8) as a replacement for the post-install abilities ofdteske2012-07-14134-0/+19427
deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required. Submitted by: Devin Teske (dteske), Ron McDowell <rcm@fuzzwad.org> Reviewed by: Ron McDowell <rcm@fuzzwad.org> Approved by: Ed Maste (emaste)
OpenPOWER on IntegriCloud