summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig
Commit message (Collapse)AuthorAgeFilesLines
* Import media selection/preparation framework (sysinstall inspired). Makesdteske2013-02-2537-553/+6766
| | | | | | | | | | | | | | | | | | | | | | | | | | | accessing files from various types of media nice and abstracted away from the wet-work involved in preparing, validating, and initializing those types of media. This will be used for the package management system module and other modules that need access to files and want to allow the user to decide where those files come from (either in a scripted fashion, prompted fashion, or any combination thereof). Heavily inspired by sysinstall and even uses the same reserved words so that scripts are portable. Coded over months, tested continuously through- out, and reviewed several times. Some notes about the changes: - Move network-setting acquisition/validation routines to media/tcpip.subr - The options screen from sysinstall has been converted to a dialog menu - The "UFS" media choice is renamed to "Directory" to reflect how sysinstall treats the choice and a new [true] "UFS" media choice has been added that acts on real UFS partitions (such as external disks with disklabels). - Many more help files have been resurrected from sysinstall (I noticed that some of the content seems a bit dated; I gave them a once-over but they could really use an update). - A total of 10 media choices are presented (via mediaGetType) including: CD/DVD, FTP, FTP Passive, HTTP Proxy, Directory, NFS, DOS, UFS, Floppy, USB - Novel struct/device management layer for managing the issue of passing more information than can comfortably fit in an argument list.
* Fix typo and update copyright.dteske2013-02-251-2/+2
|
* 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>
* Backward compatibility fix: treat cmds loaded as a script as nonInteractivedteske2013-01-201-2/+17
|
* Don't use f_show_msg() unless printf(1) syntax is required (this reduces thedteske2013-01-1414-56/+57
| | | | number of unnecessary forks).
* Add new f_yesno/f_noyes wrapper functions (which take printf(1) syntax).dteske2013-01-145-15/+51
|
* Add missing dialog(1) arguments to internationalize "Help"-button label.dteske2013-01-144-0/+4
|
* Update copyright following last commit.dteske2013-01-071-1/+1
|
* Add nonInteractive support to f_dialog_yesno/noyes().dteske2013-01-071-0/+7
|
* Update copyrights and dates following last commit.dteske2013-01-063-4/+4
|
* Add support for scripting (sysinstall style).dteske2013-01-058-8/+393
| | | | Reviewed by: jilles
* Comments.dteske2013-01-031-0/+6
|
* Comments.dteske2012-12-291-1/+4
|
* Add missing enforcement of height restriction after minor adjustment.dteske2012-12-291-0/+1
|
* Add support for running without a controlling terminal (for example, whendteske2012-12-291-8/+21
| | | | running as an rvalue to a pipe).
* Allow debug output to be logged to a file (set $debugFile to target pathname)dteske2012-12-281-0/+24
| | | | or both stdout and a file (precede $debugFile pathname with a plus-sign, `+').
* Whitespace.dteske2012-12-281-0/+1
|
* Fix incorrect function name. s/[[:<:]]dialog_clear/f_&/dteske2012-12-281-1/+1
|
* Comments and fit to 80-columns.dteske2012-12-271-10/+11
|
* Add more debugging to help with diagnosis of program-flow when needed.dteske2012-12-2567-21/+181
|
* Remove unnecessary duplicate initialization of the dialog(1) API (automaticallydteske2012-12-2542-42/+0
| | | | bootstrapped on-include unless DIALOG_SELF_INITIALIZE is set to NO before-hand)
* Split dialog(1)-based validators for hostname/netmask into two, providingdteske2012-12-212-18/+74
| | | | | | transparent validators that can be used free of dialog(1) where needed. Syntax/return of the original dialog(1)-based validators remains unchanged.
* Remove unused include.dteske2012-12-211-1/+0
|
* Change axiom for initialization. Including script can disable (default)dteske2012-12-211-1/+4
| | | | automatic initialization by setting appropriate variable to particular value.
* Remove erroneous use of "local" (not in a function).dteske2012-12-211-1/+0
|
* New f_show_info() function for dialog(1) --infobox using printf(1) syntax.dteske2012-12-212-4/+23
|
* Use f_show_help() where printf(1) syntax is desired.dteske2012-12-217-64/+28
|
* Improve the debugging abilities and clean up debug messages. In most cases,dteske2012-12-2115-72/+106
| | | | | all one has to do is set the environment variable DEBUGGING to get the debug messages to appear on the console.
* Add much-needed dialog(1) --inputbox function for simplifying the process ofdteske2012-12-2113-602/+134
| | | | requesting input from the user.
* Allow setting of NULL titles with f_dialog_[back]title().dteske2012-11-271-2/+2
| | | | Approved by: adrian (co-mentor) (implicit)
* Change self-initialization to occur when loaded versus the previous behaviordteske2012-11-271-34/+5
| | | | | | | | | which was to self-initialize during the first function-call. This didn't work so well because the first call was may or may-not be within a sub-shell (which prevented proper setup of the pass-thru file descriptor, resulting in dialogs that would not display). Approved by: adrian (co-mentor) (implicit)
* Comments.dteske2012-11-271-2/+2
| | | | Approved by: adrian (co-mentor) (implicit)
* Split IP address validation routines and improve error detection for dotted-dteske2012-11-252-37/+91
| | | | | | quad notation in IPv6 addresses. Approved by: adrian (co-mentor) (implicit)
* Whitespace.dteske2012-11-244-4/+4
| | | | Approved by: adrian (co-mentor) (implicit)
* Add IPv6 address-validation routine.dteske2012-11-242-2/+157
| | | | Approved by: adrian (co-mentor) (implicit)
* Replicate a feature from sysinstall documented indteske2012-11-1644-103/+216
| | | | | | | | | | | | stable/9/usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below): If /usr/sbin/sysinstall is linked to another filename, say `/usr/local/bin/configPackages', then the basename will be used as an implicit command name. To get a list of modules you can link to, see `bsdconfig -h' output. Approved by: adrian (co-mentor) (implicit)
* Resurrect and integrate stable/9/usr.sbin/sysinstall/help/usermgmt.hlpdteske2012-10-263-2/+96
| | | | Approved by: adrian (co-mentor) (implicit)
* Remove unnecessary quotation to clean things up.dteske2012-10-261-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* Don't mask fwe(4) lp(4) or plip(4) devices from ifconfig(8) list.dteske2012-10-261-3/+0
| | | | Approved by: adrian (co-mentor) (implicit)
* Resurrect and integrate stable/9/sysinstall/help/tcp.hlpdteske2012-10-263-3/+46
| | | | Approved by: adrian (co-mentor) (implicit)
* Tighten-up displays that use a NULL prompt (e.g., networking and usermgmt).dteske2012-10-261-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* Fix copy/paste error.dteske2012-10-261-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* Switch from using a msgbox to display help files to a textbox instead. Thedteske2012-10-264-40/+81
| | | | | | | | | | | problem with using a msgbox was one of truncation in the case of Xdialog(1) and lack of screen real-estate (since the msgbox is not scrollable in X11 while a textbox is). The textbox renders the text much better and is more appropriate for this type of data display. Approved by: adrian (co-mentor) (implicit)
* When Xdialog(1) is passed a NULL argument to its `--help' option, Xdialog(1)dteske2012-10-252-2/+2
| | | | | | | acts like dialog(1) in that it returns exit status 2 when the help button is chosen. Approved by: adri (co-mentor) (implicit)
* Resurrect usage.hlp and securelevel.hlp from sysinstall(8) and integrate themdteske2012-10-228-27/+149
| | | | | | into bsdconfig(8). Approved by: adrian (co-mentor) (implicit)
* 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)
OpenPOWER on IntegriCloud