summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFV of r195794edwin2009-08-271-2/+2
| | | | | | | | | MFV of tzcode2009k zic.c: Do not end a binary file with a POSIX-style time zone string for locations that end up in permanent DST (thanks to Andreas Schwab).
* - Use the headers from ACPI-CA to define various constants and structuresjhb2009-08-254-740/+523
| | | | | | | | | | | | for table layouts, etc. rather than homerolling our own structures and constants in acpidump.h. - Verify the extended checksum on the RSDP. - Handle new ACPI 3.0 fields in MADT including X2APIC entries and UIDs for local SAPICs. - Add handling for new ACPI 3.0 flags in the FADT. Reviewed by: jkim MFC after: 1 month
* Document that ppp handles pipe(2) descriptors specially in -direct mode.brian2009-08-251-1/+14
| | | | MFC after: 3 days
* When ``ppp -direct'' is invoked by a program that uses pipe(2) tobrian2009-08-244-126/+305
| | | | | | | | | | | | | create stdin and stdout, don't blindly try to use stdin as a bi-directional channel. Instead, detect the pipe and set up a special exec handler that indirects write() calls through stdout. This fixes the problem where ``set device "!ssh -e none host ppp -direct label"'' no longer works with an openssh-5.2 server side as that version of openssh ignores the USE_PIPES config setting and *always* uses pipes (rather than socketpair) for stdin/stdout channels. MFC after: 3 days
* When realloc()ing device memory for transfer to another ppp process,brian2009-08-243-11/+13
| | | | | | | | don't continue to use the realloc()d pointer - it might have changed! Remove some stray diagnostics while I'm here. MFC after: 3 days
* Unhardcode 0x100 inside kbdcontrol.ed2009-08-241-71/+73
| | | | | | | | | | In preparation for Unicode support for the keyboard layer, we'd better get rid of all the hardcoded 0x100/0xff constants in kbdcontrol. Instead, add a flag called SPECIAL stored in the top bit of the integer. Adding Unicode support is very simple now; just change u_char map[] to u_int map[] in keyent_t, change the bounds checking in kbdcontrol to 0x1FFFFF and modify the ioctls to allow loading these new keymaps.
* Oops. Needed to adjust a little bit more of the line for packages-8-stablekensmith2009-08-241-1/+1
| | | | | | | now that we're prepping for 8.0's release. Submitted by: pluknet at gmail dot com Pointy hat: kensmith
* - Add AS lookup functionality to traceroute6(8) as well.ume2009-08-233-3/+42
| | | | | | | | | - Support for IPv6 transport for AS lookup. - Introduce $RA_SERVER to set whois server. - Support for 4 byte ASN. - ANSIfy function declaration in as.c. Tested by: IHANet folks.
* Enable _DIRENT_HAVE_D_TYPE so wpa_cli scans directories properlysam2009-08-231-0/+2
| | | | | | | | for it's unix domain socket. Before this change wpa_cli would take the first file in the directory that was not "." or "..". Submitted by: Brandon Gooch <jamesbrandongooch@gmail.com> MFC after: 3 days
* Make head 9.0-CURRENT in preparation for lifting code freeze.kensmith2009-08-221-1/+3
| | | | Approved by: re (implicit)
* Add support for backing up the old kernel when installing a new kernelsimon2009-08-191-1/+161
| | | | | | | | | | | | | | | | | | using freebsd-update. This applies to using freebsd-update in "upgrade mode" and normal freebsd-update on a security branch. The backup kernel will be written to /boot/kernel.old, if the directory does not exist, or the directory was created by freebsd-update in a previous backup. Otherwise freebsd-update will generate a new directory name for use by the backup. By default symbol files are not backed up to save diskspace and avoid filling up the root partition. This feature is fully configurable in the freebsd-update config file, but defaults to enabled. MFC after: 1 week (stable/7) Reviewed by: cperciva Approved by: re (kib)
* Update the mptutil man page for FreeBSD 8.0scottl2009-08-171-3/+6
| | | | Approved by: re
* Update the man page for manual section 8scottl2009-08-171-1/+1
| | | | Approved by: re
* Update the man page for FreeBSD 8.0scottl2009-08-171-14/+6
| | | | Approved by: re
* Move mfiutil.1 to mfiutil.8 for consistency. Remove superfulous README.scottl2009-08-173-104/+1
| | | | Approved by: re
* Prevent sysinstall from needlessly waiting for confirmation when using an USBrink2009-08-161-1/+2
| | | | | | | | | | | | | device in non-interactive mode. If there are no USB devices, sysinstall gives an error messages, and if there is >1, it'll ask which one is to be used. This change allows a non-interactive install from USB media to succeed without any user interaction if there is exactly one USB disk device in the system it can use. Submitted by: Daniel O'Connor < doconnorat gsoft dot com dot au > Reviewed by: randi Approved by: re (rwatson)
* iostat: add a bit of space between tty in/out columnskeramida2009-08-151-6/+6
| | | | | | | | | The columns for tty input and output may bump against each other if the tty output needs more than 5 columns. Add a bit of space that pushes everything 1 column to the right, but also avoids the problem. Approved by: re (rwatson)
* - Avoid overflowing the swap size counters in human-readable modestas2009-08-151-2/+3
| | | | | | | | | | by introducing the new CONVERT_BLOCKS macro which operates on sizes already converted to number of blocks. With this macro it is not longer needed to perform needless multiplication by blocksize just to divide on it later in CONVERT macro. Approved by: re (kib) MFC after: 1 week
* Remove bogus char cast.remko2009-08-141-1/+1
| | | | | | | PR: 118014 Submitted by: Gardner Bell <gbell72 at rogers dot com> Approved by: re (rwatson), imp (mentor, implicit) MFC after: immediate
* Make sysinstall recognize /dev/ada* disk devices. The description stringcperciva2009-08-141-0/+1
| | | | | | | | | "SATA disk device" reflects the current state of /dev/ada*; this may be changed in the future if other drive types start appearing as /dev/ada*. Submitted by: randi Details about what disks can appear as /dev/ada* supplied by: scottl Approved by: re (rwatson)
* Add mptutil, a basic utility for managing MPT SCSI/SATA/SAS controllers.scottl2009-08-1412-0/+4429
| | | | | | | | Drive and controller status can be reported, basic attributes changed, and arrays and spares can be created and deleted. Approved by: re Obtained from: Yahoo! Inc.
* Fix is 32bit bug missed in testing.scottl2009-08-141-7/+8
| | | | Approved by: re
* ntroduce mfiutil, a basic utility for managing LSI SAS-RAID & Dell PERC5/6scottl2009-08-1314-0/+5259
| | | | | | | | | | | | | | controllers. Controller, array, and drive status can be checked, basic attributes can be changed, and arrays and spares can be created and deleted. Controller firmware can also be flashed. This does not replace MegaCLI, found in ports, as that is officially sanctioned and supported by LSI and includes vastly more functionality. However, mfiutil is open source and guaranteed to provide basic functionality, which can be especially useful if you have a problem and can't get MegaCLI to work. Approved by: re Obtained from: Yahoo! Inc.
* Fix references to the kernel distributions to use the correct namesjhb2009-08-122-3/+3
| | | | | | | | | (uppercase). PR: docs/137415 Submitted by: Yuri Gorchakov Approved by: re (rwatson, kib) MFC after: 3 days
* Do not truncate IPv6 addresses when printing them in thebz2009-08-121-1/+1
| | | | | | | | | jls -av 7.x multi-IP jail backward compat output. Reported by: ed Tested by: ed Reviewed by: rwatson Approved by: re
* Apply the ntp-related part of r195626 to the correct part of the tree --cperciva2009-08-121-2/+0
| | | | | | | | the mkver which is used in builds is the one in usr.sbin/ntp/scripts, not the one in contrib/ntp/scripts. Pointy hat to: cperciva Approved by: re (rwatson)
* Handle kernels that don't have IPv6 by not sending an "ip6.addr"jamie2009-07-311-8/+32
| | | | | | | | parameter unless a (numeric) IPv6 address is given. Even the default binaries built with -DINET6 will work with IPv6-less kernels. With an eye to the future, similarly handle the possibility of an IPv4-less kernel. Approved by: re (kib), bz (mentor)
* Style tweak.rwatson2009-07-301-2/+1
| | | | | Approved by: re (kib) MFC after: 3 days
* Parse the System Resource Affinity Table ('SRAT') used to describe affinityjhb2009-07-292-8/+148
| | | | | | | | relationships between CPUs and memory. Reviewed by: jkim Approved by: re (kib) MFC after: 1 week
* Some jail parameters (in particular, "ip4" and "ip6" for IP addressjamie2009-07-252-28/+43
| | | | | | | | | restrictions) were found to be inadequately described by a boolean. Define a new parameter type with three values (disable, new, inherit) to handle these and future cases. Approved by: re (kib), bz (mentor) Discussed with: rwatson
* Change the name displayed in sysinstall(8) from 'Wizard Mode'trasz2009-07-253-4/+4
| | | | | | | to 'Expert Mode', to make it less confusing to new users, to whom a 'wizard' is a set of simple dialogs with the 'next >>>' button. Approved by: re (kensmith)
* It is believed the last of the base system that could have an issue withkensmith2009-07-221-10/+10
| | | | | | | IDs larger than 16-bits has been updated so adjust sysinstall to allow IDs up to the current system-wide size of 32-bits. Approved by: re (kib)
* Remove the "dedicated disk mode" partitioning option from sysinstall, incperciva2009-07-221-16/+2
| | | | | | | | | | both the disk partitioning screen (the 'F' key) and via install.cfg (the VAR_DEDICATED_DISK option). This functionality is currently broken in 8.x due to libdisk and geom generating different partition names; this commit merely acts to help steer users away from the breakage. Submitted by: randi Approved by: re (kensmith)
* Don't get stuck in an infinite loop comparing (short++ <= maxshort)brian2009-07-191-3/+2
| | | | | | | PR: 136893 Submitted by: Aragon Gouveia - aragon at phat dot za dot net (mostly) Approved by: re (kib) MFC after: 3 weeks
* Bump the version of all non-symbol-versioned shared libraries inkensmith2009-07-191-1/+1
| | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson)
* add mesh supportsam2009-07-172-17/+9
| | | | | Submitted by: rpaulo Approved by: re (kib)
* Correct the name of the Mongolian Documentation package.kensmith2009-07-161-1/+1
| | | | Approved by: re (kib)
* fix Jouni's email addresssam2009-07-127-7/+7
| | | | Approved by: re (blanket)
* Give a more expected behavior to -[hns] options, defaulting to alljamie2009-07-082-11/+18
| | | | | | | parameters instead of ignoring the options and giving the old-style default output. Approved by: re (kib), bz (mentor)
* Fix a typo in the examples.jamie2009-07-081-2/+2
| | | | Approved by: re (kib), bz (mentor)
* Add support for using a livefs from a USB disk.cperciva2009-07-084-3/+33
| | | | | Submitted by: randi Approved by: re (kensmith)
* Refactor code from installFixitCDROM into a new function, fixit_livefs_common.cperciva2009-07-081-49/+70
| | | | | | | | | | While doing so, improve style and reword some comments. This should not result in any functional changes, but the fixit_livefs_common function will be used by future code. Submitted by: randi Approved by: re (kensmith)
* Add a missing phrase.brian2009-07-051-1/+1
| | | | | | | Submitted by: Jason McIntyre jmc at kerhand dot co dot uk Approved by: re (kib) Obtained from: OpenBSD MFC after: 3 weeks
* Disable r194497 for now. It doesn't work well with ports-mgmt/tinderbox.brian2009-07-051-0/+2
| | | | Approved by: re (ken)
* Add a new options (-s) that, when specified, skips the question aboutattilio2009-07-042-24/+33
| | | | | | | | | | adjusting the clock to UTC. That avoids to write on /etc/wall_cmos_clock which is useful in some cases (example: host user in a jail). Sponsored by: Sandvine Incorporated Initially submitted by: Matt Koivisto <mkoivisto at sandvine dot com> Approved by: re (kib)
* - Properly order headers, local variables and prototypes. [1]stas2009-07-011-18/+11
| | | | | | | | - Remove unneeded headers. - Return non-zero error code in usage(). Approved by: re (kib) Suggested by: bde [1]
* - Fix the bug in write(2) called with incorrect parameters resulting in writesstas2009-07-012-52/+64
| | | | | | | | | | | | | always started from the start of the packet. - Fix usage string (multiple addresses can be specified). - Make the source more style(9) compliant. - Improve error reporting (do not silently fail if something goes wrong). - Make functions static. - Use warns level 6. Approved by: re (kib) Discussed with: Marc Balmer <marc@msys.ch>, brian, mbr
* Compiles without higher warn levelmbr2009-06-301-2/+0
| | | | | | M wake/Makefile Approved by: re (previous commit)
* Don't imply that only FTP urls are supported when we can't fetchbrian2009-06-301-1/+1
| | | | | | | a package. Approved by: re (kib) MFC after: 3 weeks
* Add wake, a tool to send Wake on LAN frames to hosts on a local Ethernet networkmbr2009-06-304-0/+244
| | | | | | | | | | | | Submitted by: Marc Balmer <marc@msys.ch> Reviewed by: rwatson Approved by: re M usr.sbin/Makefile A usr.sbin/wake AM usr.sbin/wake/wake.c AM usr.sbin/wake/Makefile AM usr.sbin/wake/wake.8
OpenPOWER on IntegriCloud