summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Bring in Kris Moore's pc-sysinstall shell script from PC-BSD. Thisimp2010-06-2470-0/+8185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shell script is the back end logic necessary for an installer. It contains both query routines to allow a front-end installer to present reasonable choices to the user and also action routines which allow the front end installer to put a FreeBSD distribution onto a disk. It supports installing onto the usual suspects, as well as advanced features like Mirroring, ZFS, Encryprion and GPT labels. While this is only the back-end of the installer, it can do unattended scripted installations. In PC-BSD's world view, all installations are scripted and all the front-end does is write the script. As such, it is useful in its own right. This has been extensively tested over the past several releases of PC-BSD. However, differences between that environment and FreeBSD suggest there will be a period of shake-out while those differences are discovered and corrected. A text-based front-end is in the works. For the GUI-based front-end, you can use the PC-BSD distribution. Kris' BSDcan paper on pc-sysinstall is linked off his talk on the BSDcan site: http://www.bsdcan.org/2010/schedule/events/173.en.html The man page is written by Josh Paetzel, and I wrote the Makefiles for the FreeBSD integration. Kris wrote the rest. This represents version r7010 in the PC-BSD repo. http://svn.pcbsd.org/pcbsd/current/pc-sysinstall Submitted by: kris@ Sponsored by: iX Systems
* Update the man page to reflect the changes to the netDev configurationrandi2010-06-231-6/+4
| | | | | | | variable. Approved by: cperciva (mentor) MFC after: 3 days
* If a device can't be opened, don't keep going but display the errorbrucec2010-06-231-0/+2
| | | | | | | | returned from open() and quit. PR: bin/81035 Submitted by: Peter Schuller <peter.schuller at infidyne.com> Approved by: rrs (mentor)
* Make it easier to cancel a failing installation by only attempting tobrucec2010-06-232-9/+19
| | | | | | | | | extract distributions once. If a distribution fails to fetch/extract and the user doesn't want to retry, abort the installation. Reviewed by: randi Approved by: rrs (mentor) MFC after: 1 month
* When installing on a machine which doesn't have a VGA card installed, enablebrucec2010-06-231-0/+29
| | | | | | | | | | | a getty on the serial port so that it's possible to login when the system is rebooted. PR: bin/23098 Submitted by: Doug Ambrisko <ambrisko at whistle.com> Reviewed by: randi Approved by: rrs (mentor) MFC after: 1 month
* Remove unnecessarily inflammatory commentary.randi2010-06-221-3/+0
| | | | Approved by: cperciva (mentor)
* Syntax, commas and stuff. Comments from jhb.sbruno2010-06-211-2/+2
| | | | | PR: bin/147572 MFC after: 2 weeks
* Clean up item_add and remove -fno-strict-aliasing from CFLAGS. Note thatrandi2010-06-204-5/+5
| | | | | | | the "aux" value in libdialog is really an opaque pointer, but libdialog stores it as a long for historical reasons. Approved by: cperciva (mentor)
* Initialise the "trials" variable to zero earlier in case we unexpectedlygavin2010-06-191-1/+1
| | | | | | error out early. Found by: clang static analyzer
* Remove dead assignments, we overwrite the variable almost immediately.gavin2010-06-192-3/+0
| | | | Found by: clang static analyzer
* Expand man page to document the fact that mptutil/mpt doesn't support RAID ↵sbruno2010-06-171-0/+12
| | | | | | | | | | | volumes in excess of 2TB. Document workaround via geom or zfs Modified submitter's original patch to reference why this is broken and what to do to work around the issue. Submitted by: hubert@tournier.org PR: bin/147572 Reviewed by: jhb MFC after: 2 weeks
* * Allow partial MB/GB values to be entered in the slice and label editors.brucec2010-06-163-20/+39
| | | | | | | | | | | | * Don't strdup the name when calling deviceRegister because the string is copied within new_device. * Use a subtype of 165, not 3, when creating a slice in noninteractive mode. PR: bin/135333 PR: bin/66350 Approved by: rrs (mentor) MFC after: 1 month
* Freq sysctls are quite heavy due to set of malloc()/free() calls. Avoidmav2010-06-161-9/+21
| | | | | | | reading current frequency on every period. Instead do it only after changing and periodically from time to time if somebody else change it. Also dynamically decrease sampling frequency up to 4 times on inactivity,
* When Emulate3Button is active, do not set select() timeout in states whenmav2010-06-151-1/+2
| | | | | | it is not needed. No need to kick CPU every 20ms without a purpose. Reviewed by: philip@
* Use literal format strings. Found by clang.emaste2010-06-141-2/+2
|
* Further unbreak powerpc & sparc64.marcel2010-06-141-1/+3
|
* Update for hostapd & wpa_supplicant 0.6.10.rpaulo2010-06-144-484/+2
|
* Fix build breakages on ia64 introduced some commits ago.marcel2010-06-132-36/+37
|
* style(9) fixes:imp2010-06-131-5/+3
| | | | | | | | | o make cmd scoped to the whole do_rules function, since it really is scoped to the whole fucnion. Making it static was the wrong way to fix referencing it outside of the block in which it was declared (and conforms to the style of the rest of the file). o remove a couple of meaningless blank lines o properly wrap one line.
* Enable ofwdump(8) on ARM as this is a useful tool to inspect a flattenedraj2010-06-131-0/+4
| | | | device tree.
* Unbreak the build on less common architectures.ed2010-06-131-1/+6
| | | | Submitted by: Andreas Tobler <andreast list fgznet ch>
* Clean up code by removing pre-C99 struct hack preprocessor magic.cperciva2010-06-111-6/+0
| | | | Approved by: randi (maintainer)
* Make sysinstall WARNS=2 clean.randi2010-06-116-8/+6
| | | | | Approved by: cperciva (mentor) MFC after: 1 month
* Cache the last result from if_indextoname for printing. This speeds upmlaier2010-06-111-3/+9
| | | | | | | | | | | "arp -an" when using a lot of aliases (on a single interface). A better fix would include a better interface for if_indextoname than getting the whole address list from the kernel just to find the one index->name mapping. Reported & analyzed by: Nick Rogers MFC after: 3 days
* More mdoc nitpicking to improve compatibility to mdocmluqs2010-06-111-0/+1
| | | | | | | | - .Nd in section NAME is not optional - .Ed was missing - "indent" is not a flag, but a literal argument for -offset - stop switching font sizes for acronyms - use .Brq instead of rolling our own
* mdoc nitpicking: the title argument shall be uppercaseuqs2010-06-111-1/+1
|
* Fix uninitialized variables that cause a crash when the network israndi2010-06-101-0/+3
| | | | | | | | initialized and sysinstall is not running as init. Submitted by: Nick Mills Approved by: cperciva (mentor) MFC after: 3 days
* mdoc: replace troff macros with -mdoc equivalentsuqs2010-06-082-25/+21
|
* Fix warnings found by Coverity.fabient2010-06-053-4/+8
| | | | | Found with: Coverity Prevent(tm) MFC after: 1 month
* Add comment that this value is unused.edwin2010-06-051-1/+1
| | | | | | | It is obvious that it isn't used, but both clang and Coverity talk about it. Found with: Coverity Prevent(tm) CID: 8066
* When there is a problem with writing, also bail out.edwin2010-06-051-1/+2
| | | | Found with the clang checker.
* Plug resource leak.trasz2010-06-051-0/+1
| | | | | Found with: Coverity Prevent CID: 7040
* Make chown(1) emit more useful error message when user/group name is invalid.trasz2010-06-031-3/+1
|
* Add file include processing for newsyslog.gordon2010-05-292-19/+116
| | | | | | | | | | | | | Format for the include line in /etc/newsyslog.conf is: <include> /etc/defaults/newsyslog.conf Other notes of interest: Globbing is supported in <include> statements. Properly detect circular include loop dependencies. Reviewed by: gad@ Approved by: wes@ (mentor) MFC after: 2 months
* Convert newsyslog to using queue(3) macros instead of a home rolled version.gordon2010-05-291-113/+71
| | | | | | Reviewed by: gad@ Approved by: wes@ (mentor) MFC after: 2 months
* mdoc: use mdoc spelling of Umlautsuqs2010-05-271-1/+1
|
* mdoc: .Ud has attitude, it takes no argument!uqs2010-05-271-1/+1
|
* mdoc: Garbage collect unused/unneeded macrosuqs2010-05-272-2/+2
|
* mdoc: Remove leading garbage, empty lines and order preambleuqs2010-05-273-4/+1
|
* Change the current working directory to be inside the jail created bycperciva2010-05-271-0/+4
| | | | | | | | | | | | | | the jail(8) command. [10:04] Fix a one-NUL-byte buffer overflow in libopie. [10:05] Correctly sanity-check a buffer length in nfs mount. [10:06] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-10:04.jail Security: FreeBSD-SA-10:05.opie Security: FreeBSD-SA-10:06.nfsclient
* Cleanup manpage as suggested by jhb@ to start new sentences on a new line.sbruno2010-05-241-3/+3
| | | | MFC after: 2 Weeks
* Explain how the new sub-second interval from changeset:208389 works.sbruno2010-05-231-1/+8
| | | | | | Approved by: scottl(mentor) Obtained from: Yahoo Inc. MFC after: 2 weeks
* Flush all routes before adding the default route in order to allowrandi2010-05-221-2/+12
| | | | | | | | | sysinstall to cleanly re-initialize the network. PR: bin/145553 Submitted by: gcooper Approved by: cperciva (mentor) MFC after: 3 days
* Allow sub-second interval timings for iostat and vmstat.sbruno2010-05-212-6/+12
| | | | | | | | | | | e.g. vmstat -w.5 iostat -w.5 Reviewed by: jhb Approved by: scottl (mentor) Obtained from: Yahoo Inc. MFC after: 2 weeks
* Add a new build option, MAN_UTILS. This option lets you control buildingjkim2010-05-191-1/+5
| | | | | | | | | utilities and related support files for manual pages, which were previously controlled by MAN. For POLA, the default depends on MAN, i.e., WITHOUT_MAN implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS. This patch is slightly improved by me from: PR: misc/145212
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-1910-13/+13
| | | | Reviewed by: ru
* Garbage collect unused variable, missed in r200840uqs2010-05-191-5/+0
| | | | Found by: clang static analyzer
* - Fix terminating argument to execl(3), sizeof(NULL) != sizeof(char *)uqs2010-05-193-23/+11
| | | | | | | | | | | might be true on some systems [1] - Rewrite gotos to use return directly - Some spelling fixes - Reduce unneeded/non-standard Makefile settings Requested by: bde, imp [1] Explanation provided by: bde [1] Reviewed by: imp
* Add a sentence to the man page explaining that the -d optionbcr2010-05-181-1/+4
| | | | | | | | | can only be used when ntpd is compiled with DEBUG support. PR: docs/138206 Submitted by: Oliver Pinter (oliver dot pntr at gmail dot com) MFC after: 5 days Approved by: roberto
* Slightly improve wording.ivoras2010-05-171-1/+2
|
OpenPOWER on IntegriCloud