summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig
Commit message (Collapse)AuthorAgeFilesLines
* Use f_show_msg() instead of f_dialog_msgbox() where appropriate. The maindteske2013-07-0518-49/+46
| | | | | | | | | | | | difference between these two functions: Usage: f_show_msg() $format_string [ $format_args ... ] Usage: f_dialog_msgbox() $text [ $hline ] The former lends itself well to displaying the $msg_* i18n text, prompts, etc. While the latter is better for text you do not control (error strings captured as a response from external commands) -- or if you have to control the hline.
* Add the necessary code to uninstall packages (re-install still pending).dteske2013-07-053-1/+135
| | | | | | | | | | | | | Both scripted access (packageDelete) and UI access have been tested successfully with a variation of different situations including: + Uninstall a package which no other installed package depends + Uninstall multiple packages which no other installed packages depend + Uninstall multiple packages which depend on each other + Similar to above but when ordered removal requires tracing dependencies + Purposefully do things like uninstall a package that is not installed + Try to uninstall a package which other installed packages still depend + Try to uninstall multiple packages which other installed packages depend + And many more.
* Add minor debugging.dteske2013-07-051-0/+1
|
* Prevent f_package_add() from re-performing f_package_detect_installed()dteske2013-07-051-0/+1
| | | | | even though f_package_config() may have already detected the installed packages.
* Don't deselect a package right after installing it (this went unnoticeddteske2013-07-051-2/+0
| | | | | | because [currently] we exit after performing requests actions -- if we ever change this to returning to the package selection screen, this would have made an impact).
* Minor debugging changes/additions.dteske2013-07-051-7/+14
|
* Fix a typo in a comment.dteske2013-07-051-1/+1
|
* Add the beginnings of the old networking services functionality ofdteske2013-07-053-1/+59
| | | | | | | sysinstall(8). The UI for this will come later while this exposes the functionality to the scripted interface. Tested successfully to first install the pcnfsd package from the `Latest' repository, and second to configure mountd_flags="-n" in rc.conf(5).
* Add the necessary code to install packages (uninstall and re-install stilldteske2013-07-054-1/+290
| | | | | | | | | | | | | pending). Both scripted access (packageAdd) and UI access have been tested successfully with a variation of different situations including: + Install a package with no dependencies + Install a package with dependencies that are already installed + Install a package with dependencies where some are already installed + Repeat each of the above from FTP and local Directory + Purposefully do things like try to install a package that does not exist + Try to install a package for which a dependency could not be loaded + Try to install a package that is in the INDEX bot not on the media + And many more.
* Add debugging for each of the initialized default variables.dteske2013-07-051-0/+23
|
* Add mustberoot.subr to the list of includes for scripts, exposing the helperdteske2013-07-051-0/+1
| | | | | function f_mustberoot_init() to make it easy to write scripts that can more easily transition to the super-user via sudo(8).
* Remove separate processing of dependent packages from the "Review" screendteske2013-07-051-11/+2
| | | | | since f_package_add (packageAdd resword) processes dependencies itself. NOTE: This is in preparation for incoming package management code.
* Get rid of place-holder in preparation for incoming package mgmt code.dteske2013-07-051-3/+0
|
* Comments.dteske2013-07-051-2/+14
|
* Allow global default as general fall-back for package management routines.dteske2013-07-051-2/+3
|
* Set name of device to directory path (displayed during package operations).dteske2013-07-051-0/+1
|
* Implement $probe_only for the media access modules. sysinstall(8) wasdteske2013-07-049-20/+45
| | | | | | | | | | | | | | | | allowed to ignore the probe_only argument of its member functions solely because in the C language, the file accessor methods open and return a file descriptor and reading of the data is optional. In shell, the file accessor methods return data on stdout and that data should not be ignored (large files could block execution). So, we must adhere to the probe_only flags and in some cases (in the case of FTP, for example) change the `get' strategy to simply test existence and return an appropriate status. This was required because the up-coming package management stuff makes heavy use of the probe_only argument to try different package suffixes. Every media access module must implement $probe_only for the `get' accessor.
* More whitespace.dteske2013-06-2457-107/+108
|
* Whitespace.dteske2013-06-241-2/+2
|
* Add a newline character to the end of the "Check URL again" error messagedteske2013-06-231-1/+1
| | | | | because long URLs do not induce extra height despite wrapping by dialog(1). NOTE: For even longer lines, the cursor up/down keys work to scroll through
* Merge r248313 from stable/9 sysinstall(8) to head bsdconfig(8):dteske2013-06-239-22/+678
| | | | | | | | | | | | Add support for installation directly via HTTP. While we're here, remove the menu-item for Passive FTP (since moving to ftp(1) and switching FTPMODE to `auto' by default -- see r251613 -- the single remaining FTP menu-item works for both ftp.f.o and ftp-archive.f.o; previously each requiring separately active versus passive both work with the `auto' setting). In scripting you still have mediaSetFTPActive and mediaSetFTPPassive but the remaining FTP menu-item uses mediaSetFTP which defaults to `auto' (aforementioned SVN r251613).
* Implement the $probe_only parameter (previously unimplemented).dteske2013-06-231-3/+8
|
* Fine-tune the parsing of the URL. Re-order, comment, and add debugging todteske2013-06-232-17/+66
| | | | each case of unique URL format.
* Fix a code typo that prevented the probing of the current defaultrouterdteske2013-06-221-1/+1
| | | | in-order to pre-populate the editor.
* Oops, previous revision (r252084) broke non-full-path resolution (e.g.,dteske2013-06-221-1/+1
| | | | | ftp://ftp.freebsd.org or ftp://ftp.freebsd.org/). Now both full-path and non-full resolution is working regardless of trailing-slash.
* Trim the trailing `/' from the ftp_dir when validating that the directorydteske2013-06-221-1/+4
| | | | | | exists on the FTP server. This now means that when you specify a full-path to the repository on the FTP server that it doesn't matter whether you have a trailing `/' or not.
* Take advantage of the fact that f_getvar evaluates the $var_to_get parameterdteske2013-06-222-6/+5
| | | | | within braces, allowing all manner of parameter expansions (properly quoted or escaped, of course).
* Fix a regression introduced by r251967, resulting in:dteske2013-06-221-1/+1
| | | | | /usr/libexec/bsdconfig/110.mouse/mouse: 134: Syntax error: ";;" unexpected (expecting "fi")
* Fix a regression introduced by r251967, resulting in:dteske2013-06-221-1/+1
| | | | | /usr/libexec/bsdconfig/080.console/console: 136: Syntax error: ";;" unexpected (expecting "fi")
* Add missing local declaration.dteske2013-06-211-1/+1
|
* Remove unused library include.dteske2013-06-211-1/+0
|
* Alphabetize library includes.dteske2013-06-2121-33/+33
|
* Style.dteske2013-06-212-18/+10
|
* Typo and grammar fixes to comments.dteske2013-06-212-2/+2
|
* Fix a code typo in a case-statement match expression that prevented IPv6dteske2013-06-201-1/+1
| | | | URLs with port designator from working properly (e.g. http://[::1]:80/).
* When the fall-back of a case-statement is the last thing executed in adteske2013-06-202-21/+19
| | | | | | | | while-loop _and_ all prior matches in the same case-statement either break or continue, we can safely break the fall-back out of the case-statement. This should improve readability and allow for longer-lines by reducing the level of indentation by-one for the fall-back case. (a continuation of SVN r252019)
* When the fall-back of a case-statement is the last thing executed in adteske2013-06-205-41/+33
| | | | | | | while-loop _and_ all prior matches in the same case-statement either break or continue, we can safely break the fall-back out of the case-statement. This should improve readability and allow for longer-lines by reducing the level of indentation by-one for the fall-back case.
* Remove pedanticism and consolidate some logic.dteske2013-06-201-7/+1
|
* Add debugging (for a case that shouldn't arise, but makes it more obviousdteske2013-06-203-0/+6
| | | | if a menu addition is made in one plce but forgotten in another).
* Style -- no ;; needed on fallback clause within case-statement.dteske2013-06-192-3/+3
|
* Whitespace.dteske2013-06-192-40/+31
|
* Whitespace and comments.dteske2013-06-196-8/+10
|
* Alphabetize reserved-word (resword) registration.dteske2013-06-191-4/+4
|
* Alphabetize includes.dteske2013-06-191-1/+1
|
* Remove extra whitespace lines.dteske2013-06-194-8/+0
|
* Change a humongous if-statement at the end of f_install_zoneinfo_file() intodteske2013-06-191-114/+110
| | | | an early return, allowing a huge chunk of code to be indented one-level less
* Take advantage of newly updated f_dialog_{yesno,noyes}() functions fromdteske2013-06-191-22/+4
| | | | SVN r251977 (adding an $hline parameter).
* When I first wrote the timezone module, it was in sysutils/tzdialog and itdteske2013-06-191-105/+31
| | | | pre-dates bsdconfig. Update the code to take advantage of f_dialog_msgbox().
* Change the f_dialog_{yesno,noyes}() function-arguments in `dialog.subr' todteske2013-06-181-6/+6
| | | | | | | | | | | accomodate an $hline value for overriding the default. This change does not effect any current modules as it turns out that not one single usage of either f_dialog_yesno() or f_dialog_noyes() relied on accepting more than a first argument (read: all occurrences quoted the first parameter; so $* was never depended upon). This will allow some custom invocations of --yesno and --noyes to roll over to these functions (for example, in `timezone/timezone').
* Perform some code consolidation and replace nested case-statements withdteske2013-06-181-67/+71
| | | | more logical if-else statements for each menu selection.
OpenPOWER on IntegriCloud