summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Compile fdisk for arm as well.cognet2005-10-031-0/+4
|
* Document that -q option is also applicable to the "change" command.ru2005-10-021-2/+2
| | | | | PR: docs/85095 Submitted by: Rostislav Krasny
* o Restore kerneldumpheader.architectureversion bytes swoppingmaxim2005-10-021-1/+2
| | | | | | | | mangled in rev. 1.72. PR: bin/86805 Submitted by: Gavin Atkinson MFC after: 3 days
* Now ifconfig is the one right way to turn polling on. Thus, removeglebius2005-10-011-5/+6
| | | | the "if" clauses.
* For the sake of consistency and easier typing,yar2005-09-292-1/+6
| | | | | | | | introduce "-tunnel" as an alias for "deletetunnel". The latter is overly long and prone to typos, but keep it for POLA since it costs nothing. MFC after: 5 days
* Forgot to touch .Dd in the previous commit.yar2005-09-291-1/+1
|
* Deprecate the useless argument to -vlandev.yar2005-09-292-5/+10
| | | | | | Submitted by: Fredrik Lindberg <fli+freebsd-current at shapeshifter.se> (implementation) Reviewed by: brooks MFC after: 5 days
* err() -> errx() where appropriate.ru2005-09-291-5/+5
|
* Add a note in example as well, that last sector is used for metadata,pjd2005-09-291-1/+2
| | | | | | | so it don't provoke confusions. Noticed by: Victor Sudakov <sudakov@sibptus.tomsk.ru> MFC after: 2 days
* Introduce "route del" as an alias to "route delete".tobez2005-09-283-1/+7
| | | | Reviewed by: arch
* Redirect bridge(4) to if_bridge(4) and rename sysctl accordingly.mlaier2005-09-281-4/+4
| | | | Reminded by: ru
* Simplified markup.ru2005-09-281-10/+3
|
* Update usage.pjd2005-09-241-1/+1
|
* Add '-q' option, which (when used with '-m' option) just tells if the givenpjd2005-09-232-3/+15
| | | | | | | | module is loaded or compiled into the kernel. This is useful mostly in startup scripts, when module should be loaded only if it wasn't compiled into the kernel nor already loaded, eg.: kldstat -q -m g_eli || kldload geom_eli.ko || err 1 'geom_eli module failed to load.'
* Since special interface types get their own subsectionsyar2005-09-221-98/+104
| | | | | | (not in mdoc(7) sense yet) in ifconfig(8) manpage, create such subsections for gif(4) and vlan(4) so that their specific options are not mixed up with general options.
* - Understand EADDRINUSE, and forget EDQUOT. [1]glebius2005-09-211-2/+6
| | | | | | | | | - Add description for EEXIST. - Change description for ENOBUFS. Routing socket can return this error for many different reasons, including general memory shortage, mbuf memory shortage and rtentry zone. PR: kern/64090 [1]
* Mention the default location of alternative super block on adelphij2005-09-201-2/+2
| | | | | | | | UFS2 file system, in fsck_ffs(8). Submitted by: KOMATSU Shinichiro <koma2 at lovepeers ! org> PR: docs/86362 MFC After: 3 days
* Merged from src/sbin/fdisk/fdisk.c revision 1.81.nyan2005-09-181-1/+4
| | | | | | - Call gctl_free() to free resource allocated with gctl_get_handle(). MFC after: 3 days
* Clarify wording for -m flag.rodrigc2005-09-171-2/+12
| | | | PR: docs/84704
* Call gctl_free() to free resource allocated with gctl_get_handle().rodrigc2005-09-171-1/+4
| | | | | | PR: bin/84664 Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net> MFC after: 3 days
* Add "-q" argument to sysctl(8), which suppresses a limited set of warnings/rwatson2005-09-152-5/+17
| | | | | | | errors generated. In particular, it suppresses "unknown oid" when attempting to get or set a sysctl not present in the kernel. MFC after: 1 week
* Fix system shutdown timeout handling by again supporting longer runningrse2005-09-152-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | shutdown procedures (which have a duration of more than 120 seconds). We have two user-space affecting shutdown timeouts: a "soft" one in /etc/rc.shutdown and a "hard" one in init(8). The first one can be configured via /etc/rc.conf variable "rcshutdown_timeout" and defaults to 30 seconds. The second one was originally (in 1998) intended to be configured via sysctl(8) variable "kern.shutdown_timeout" and defaults to 120 seconds. Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999 (as it obviously is actually not used within the kernel itself) and hence was intentionally but misleadingly removed in revision 1.107 from init_main.c. Kernel sysctl(8) variables are certainly a wrong way to control user-space processes in general, but in this particular case the sysctl(8) variable should have remained as it supports init(8), which isn't passed command line flags (which in turn could have been set via /etc/rc.conf), etc. As there is already a similar "kern.init_path" sysctl(8) variable which directly affects init(8), resurrect the init(8) shutdown timeout under sysctl(8) variable "kern.init_shutdown_timeout". But this time document it as being intentionally unused within the kernel and used by init(8). Also document it in the manpages init(8) and rc.conf(5). Reviewed by: phk MFC after: 2 weeks
* Xref msdosfs(5)joel2005-09-141-0/+1
| | | | Approved by: brueffer (mentor)
* Don't consider being unable to open the bounds file worthy of printingrwatson2005-09-131-1/+2
| | | | | | | | | at LOG_WARNING by default; instead, consider it something to be printed to the tty when 'verbose' mode is set. This avoids printing out extra lines at every boot on a system with crash dumps enabled, but that has not yet had to generate a crashdump. MFC after: 1 week
* Clean up.le2005-09-121-198/+106
| | | | | | | Remove unused functions. Reduce indentation level by reverting the logic of the enclosing conditional statement.
* Even if there are no valid keys in metadata, but provider is attachedpjd2005-09-101-5/+5
| | | | | | | we can still use setkey subcommand. MFC after: 3 days Found by: regression tests
* Avoid updating resolv.conf when no changes have actually occured.brooks2005-09-081-0/+10
| | | | Submitted by: ume
* When we fail to aquire a lease, our lease expires without a sucessfulbrooks2005-09-081-0/+1
| | | | | | | | | renewal, or we lose link, be more forceful about clearing interface state so another interface that connects to the same network has a chance of working. This doesn't address attemping to connect to both at once, but appears to allow unplugging from a wired interface and then inserting a wireless card that associates with an AP bridged to the same LAN.
* Moved descriptions of securelevels from init(7) to security(7).garys2005-09-031-62/+5
| | | | | | | | | | Files used both "securelevel" and either "secure level" or "security level"; all are now "security level". PR: docs/84266 Submitted by: garys Approved by: keramida MFC after: 3 days
* When we supersed the subnet-mask, write the forced value to the leasebrooks2005-09-021-10/+14
| | | | | | file. This is what the ISC client does. Submitted by: Rostislav Krasny <rosti dot bsd at gmail dot com>
* Add support for setting GPT partition labels. The partitions to bemarcel2005-09-015-33/+343
| | | | | | | | | | | | labeled are selected in the same way as with the remove command. Update the manpage to have the selection options described for the label command and referenced to it from the remove command. The label can be specified on the command line with the -l option or read from a file with the -f option. In both cases, the label is assumed to be encoded in UTF-8. PR: ia64/83124 MFC after: 1 week
* Dot the i's: multiple devices can be specified, so the usage shouldmarcel2005-09-013-5/+7
| | | | have ellipsis following the device.
* Add a comment before the statement that is responsible for themarcel2005-09-011-0/+2
| | | | | removal of the GPT entry. There's a bit of code around that one statement that it's good to have it stand out a bit more.
* Document the -l and -u options of the show command.marcel2005-08-311-1/+15
|
* o Replace unicode16() by utf8_to_utf16().marcel2005-08-314-19/+139
| | | | | | | | o Introduce utf16_to_utf8(). o Add option -l to the show command to display the GPT label instead of the friendly partition type. o Add option -u to the show command to suppress the friendly output and print th raw UUIDs instead.
* /* -> /*- for license.marcel2005-08-3111-11/+11
|
* Introduce a new helper function check_search() derived for res_hnok tobrooks2005-08-301-0/+56
| | | | | | | | | | | | | | | check the domain-name parameter according to the rules for "search" strings as documented in resolv.conf(5). Specifically, the string must be no more than 256 bytes long and contain no more than six valid domain names separated by white space. The previous unchecked values could result in a mangled resolv.conf file which could effectively deny access to local sites. This is not a security issue as rogue dhcp servers could already do this without sending invalid strings. Reviewed by: cperciva MFC After: 3 days
* When using files as backing stores for devices, and the user has requested thecsjp2005-08-301-0/+11
| | | | | | | | | | | | | device be created read+write, check to see if the backing store is read only through the use of the access(2) system call. If this check fails returning EACCES, EPERM or EROFS then gracefully downgrade the access to read only. Also print a warning message to stderr, informing the user that the access mode they requested is not available. This behavior used to be handled by md(4) but was changed in revision 1.154 Discussed with: pjd, phk, Dario Freni <saturnero at freesbie dot org> Reviewed by: phk
* This script was helpful during development, but has no reason tomarcel2005-08-301-11/+0
| | | | be kept alive. Removal is long overdue as it is.
* Don't print the total number of partitions removed now that we printmarcel2005-08-301-7/+1
| | | | | | | the name of the partitions that we remove. A summary is unnecessary and even makes parsing of the output more difficult. MFC after: 1 week
* Extend utility to allow recovering single file from the deffectivesobomax2005-08-291-12/+28
| | | | | | media. MFC after: 2 weeks
* Make it clear that the .ko extention of a module to be loadedkeramida2005-08-271-3/+10
| | | | | | | | is optional. PR: docs/85356 Submitted by: Julien Gabel <jpeg@thilelli.net> MFC after: 3 days
* As with NO_CRYPT, don't try to compile geli(8) when NO_OPENSSL is definedmarius2005-08-271-1/+1
| | | | | | either. MFC after: 1 week
* The $medium string often contains quoted values with spaces in them (ssids,brooks2005-08-261-6/+6
| | | | | | | for example). Follow the example of the ISC script and wrap ifconfig calls using $medium in eval "..." so this works. Reported by: iedowse
* Update Document.takawata2005-08-261-0/+3
|
* In read_string(), when the last character was a backslash, unincrementbrooks2005-08-261-0/+1
| | | | | | the output index instead of keeping what ever trash was in the buffer. Reported by: iedowse
* Use a more robust, grep-free command to get the interface of the currentbrooks2005-08-261-2/+1
| | | | | | default route. Submitted by: Rostislav Krasny <rosti dot bsd at gmail dot com>
* Don't and/remove a route to our assigned IP through 127.0.0.1. Itbrooks2005-08-261-4/+4
| | | | | | | serves no apparent purpose (we commented this out ages ago in the ISC scripts) and cases problems with some ADSL setups. Reported by: Rostislav Krasny <rosti dot bsd at gmail dot com>
* MFOpenBSD rev 1.9: fix a buffer overflow when processing config filebrooks2005-08-241-1/+1
| | | | | | | lines that are exactly 81 characters in length. Obtained from: OpenBSD MFC After: 3 days
* Add __FBSDID to all .c files in dhclient to aid in determining filebrooks2005-08-2316-4/+48
| | | | versions when dealing with user problems.
OpenPOWER on IntegriCloud