summaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Make WITHOUT_DYNAMICROOT=foo work again: remember to referencePoul-Henning Kamp2006-04-011-2/+2
| | | | | | | libbsdxml and libsbuf. Notes: svn path=/head/; revision=157375
* Amazing.. two screwups in one commit.Julian Elischer2006-03-311-1/+2
| | | | | | | | I'm piling on thise pointy hats on top of each other. At least they nest.. Notes: svn path=/head/; revision=157335
* I can't believe that no-one noticed that I broke ipfw table delJulian Elischer2006-03-311-1/+2
| | | | | | | | for over a month! put {} around if clause with multiple statements Notes: svn path=/head/; revision=157332
* Unbreak the build.Jason Evans2006-03-271-6/+1
| | | | Notes: svn path=/head/; revision=157173
* For now, bring back some of the old bits as a fix for specifying md(4)Wojciech A. Koszek2006-03-271-0/+7
| | | | | | | | | | | | device number at creation time with -u option. Together with XMLizing mdconfig(8), I broke this functionality. This change is temporary. Complete fix will be commited soon. Approved by: cognet (mentor) Notes: svn path=/head/; revision=157166
* Teach md(4) and mdconfig(8) how to understand XML. Right now there won't beWojciech A. Koszek2006-03-262-65/+158
| | | | | | | | | | | | | | | a problem with listing large number of md(4) devices. Either 'list' or 'query' mode uses XML. Additionally, new functionality was introduced. It's possible to pass multiple devices to -u: # ./mdconfig -l -u md0,md1 Approved by: cognet (mentor) Notes: svn path=/head/; revision=157160
* Keep proper order of includes. Additionally, sort them. Make functions usedWojciech A. Koszek2006-03-261-23/+20
| | | | | | | | | in that file static. Approved by: cognet (mentor) Notes: svn path=/head/; revision=157159
* Implement the 'resetconfig' command.Lukas Ertl2006-03-232-4/+45
| | | | | | | | PR: kern/94835 Submitted by: Ulf Lilleengen <lulf@stud.ntnu.no> Notes: svn path=/head/; revision=157052
* Unbreak WITHOUT_LIBPHREAD/WITHOUT_LIBC_R option support, dependingRuslan Ermilov2006-03-211-1/+6
| | | | | | | on platform. Notes: svn path=/head/; revision=156944
* Minor style(9) and KNF elimination as I prepare to fix a bug.Warner Losh2006-03-201-14/+8
| | | | Notes: svn path=/head/; revision=156925
* Extend coverage of the MK_IPX build option to the following:Ruslan Ermilov2006-03-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | - <netipx> headers [1] - IPX library (libipx) - IPX support in ifconfig(8) - IPXrouted(8) - new MK_NCP option New MK_NCP build option controls: - <netncp> and <fs/nwfs> headers - NCP library (libncp) - ncplist(1) and ncplogin(1) - mount_nwfs(8) - ncp and nwfs kernel modules User knobs: WITHOUT_IPX, WITHOUT_IPX_SUPPORT, WITHOUT_NCP. [1] <netsmb/netbios.h> unconditionally uses <netipx> headers so they are still installed. This needs to be dealt with. Notes: svn path=/head/; revision=156905
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-174-8/+16
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* Add new modes.Søren Schmidt2006-03-151-0/+4
| | | | Notes: svn path=/head/; revision=156749
* There is no IFF_POLLING flag anymore.Gleb Smirnoff2006-03-121-1/+1
| | | | Notes: svn path=/head/; revision=156591
* Flush stdout after printing name of created device, so it can be properlyPawel Jakub Dawidek2006-03-121-1/+3
| | | | | | | | | | | read when 'ggatec create' is used in backticks or its output is piped to another command. Submitted by: Paul Schenkeveld MFC after: 3 days Notes: svn path=/head/; revision=156590
* Revert to setting vlan and vlandev parametes synchronously, as soonYaroslav Tykhiy2006-03-091-0/+9
| | | | | | | | | | | | | | | | | | as both have been read from the command line. Still use the callback, but this time only to verify that both vlan and vlandev have been found on the command line. This should allow for control over the relative order of processing parameters, which is needed to satisfy some caveats of the if_vlan driver. E.g., MTU cannot be changed on a vlan interface until it's attached to its parent. PR: bin/94028 Reviewed by: ru MFC after: 3 days Notes: svn path=/head/; revision=156498
* Explain why the first partition should start at offset 16.Pawel Jakub Dawidek2006-03-081-0/+2
| | | | | | | Requested by: hrs Notes: svn path=/head/; revision=156430
* Add some notes how to properly dump kernel onto gmirror provider.Pawel Jakub Dawidek2006-03-081-1/+42
| | | | | | | | Reviewed and corrected by: brueffer MFC after: 3 days Notes: svn path=/head/; revision=156422
* Revert `proto ip' back to the previous behavior. The kernel side ofHajimu UMEMOTO2006-03-052-5/+3
| | | | | | | | | ipfw2 doesn't allow zero as protocol number. MFC after: 3 days Notes: svn path=/head/; revision=156315
* Fix evil examples - first partition should start at offset 16.Pawel Jakub Dawidek2006-03-041-5/+5
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=156278
* Print "clear" and "dump" only once.Wojciech A. Koszek2006-03-031-2/+2
| | | | | | | | | Reviewed by: pjd Approved by: cognet (mentor) MFC after: 3 days Notes: svn path=/head/; revision=156257
* When there are no mount options, an implicit "rw" should be printed inGiorgos Keramidas2006-03-031-1/+6
| | | | | | | | | the output of ``mount -p''. Approved by: rodrigc Notes: svn path=/head/; revision=156229
* use standard mode instead of 500 for /sbin/init.Luigi Rizzo2006-02-281-1/+0
| | | | | | | | | | | | | | | | | | As discussed on -current, there is no sensitive info in /sbin/init to prevent reading it from non-privileged users, nor any reason to remove the 'x' bit as the first thing the program does is check the uid and exit if it is not run by root. Instead (and this is why i make the change), mode 500 prevents operation when exporting the partition without -maproot=0 to diskless clients. All previuos releases are affected by the same problem, so a merge to RELENG_6 at least would be appropriate (after proper re@ approval of course). Notes: svn path=/head/; revision=156105
* Bump a date in .Dd field. Last change brought some new functionality.Wojciech A. Koszek2006-02-271-1/+1
| | | | | | | | | Spotted by: brueffer Approved by: cognet (mentor) MFC after: 1 week Notes: svn path=/head/; revision=156093
* Extend kldunload(8) functionality and fix minor problems:Wojciech A. Koszek2006-02-273-40/+50
| | | | | | | | | | | | | | | | | | | o multiple modules can be unloaded at once (specified either by id or be module name) o exit with EX_USAGE after usage() is called. o remove unused variables, since we keep command line flags as bitmask, in 'opt'. o 'kldload -n ...' does nothing. Add comment to this options. Additionally: o Update manual page to conform new functionality. o Increace WARNS to 6. Because we can. Approved by: cognet (mentor) MFC after: 1 week Notes: svn path=/head/; revision=156091
* Big style(9) fix. This commit brings no functional change.Wojciech A. Koszek2006-02-271-53/+56
| | | | | | | | Approved by: cognet (mentor) MFC after: 1 week Notes: svn path=/head/; revision=156087
* explain what list chan displaysSam Leffler2006-02-271-4/+23
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=156079
* Avoid moving onto a new line while testing if there is a syslog priorityDavid Malone2006-02-271-1/+2
| | | | | | | | | | | | in the buffer. This isn't exactly the patch that Stephen submitted, but is based on one of his suggestions. PR: 93841 Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu> MFC after: 2 weeks Notes: svn path=/head/; revision=156076
* It has not been possible to specify a dumpdev in loader.conf since 2002,Kris Kennaway2006-02-271-10/+0
| | | | | | | so don't raise false hopes here. Notes: svn path=/head/; revision=156046
* o Bump date (thanks ru)Warner Losh2006-02-261-18/+11
| | | | | | | | | | | | o Also, fdisk_pc98 appears to support -i, so add it to the man page. o Ditto -v o Change the name from PC partition table maintenance program to NEC PC-98x1 partition table maintenance program, since it is possible to have a DOS MBR formatted disk on FreeBSD/pc98 now (although we don't install any tools for this). Notes: svn path=/head/; revision=156032
* Fixes and new features:Warner Losh2006-02-262-12/+62
| | | | | | | | | | | | | | | | | | | | | o Merge the -I switch from i386 verison to initialize the partition table to use the maximum amount possible for a single FreeBSD table. o Improve warning when the geom method fails (which I think it always will until geom_pc98 is updated to respond to this ctl message) o when writing out the boot sector, we have to write out a minimum of 1024 bytes or the sector size. This is different than the i386 case where we need to write out a minimum of 512 bytes (which is also the minimum sector size). We already handle this difference on reading, but didn't in writing, so attempting to write a new partition table would fail. o Add MID to the -s output, since pc98 users are likely interested in both of these parameters. # I can now initialize disks on my pc98 machine either by -I or by # manually entering the parameters. I don't know if fdisk -B works or not, # since I'm not willing to risk my only working boot disk to test it.. Notes: svn path=/head/; revision=156020
* If we specify: mount -u (update), without specifying anCraig Rodrigues2006-02-251-11/+7
| | | | | | | | | | | | | | | additional -r (read-only) flag or or -w (read-write) flag, then assume we want, mount -u -w. When doing a mount update, this will implicitly pass a "noro" mount option down to the VFS layer. vfs_mergeopts() in vfs_mount.c will then remove the "ro" mount option if it exists in the mount options for a mounted file system. This means that "mount -u" works the same as "mount -u -w" and will convert a read-only mount to read-write. Notes: svn path=/head/; revision=155997
* Update text to reflect that:Craig Rodrigues2006-02-251-9/+31
| | | | | | | | | | | - mount(8) now calls the nmount(2) system call directly, not mount(2) - specifying a filesystem type with -t will not automatically invoke an external /sbin/mount_XXXX program....this only happens for certain file system types. For all other file system types, nmount(2) is called directly. Notes: svn path=/head/; revision=155992
* Revert a minor glitch of revision 1.69Giorgos Keramidas2006-02-241-2/+2
| | | | | | | | Submitted by: Andriy Tkachuk <andrit@ukr.net> X-MFC after: RE approval Notes: svn path=/head/; revision=155981
* cleanup line break formattingSam Leffler2006-02-231-95/+95
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=155931
* Use kld(3) for loading geom_md.ko.Pawel Jakub Dawidek2006-02-181-20/+3
| | | | Notes: svn path=/head/; revision=155807
* Add new -E option, which allows to specify location of the mdconfig(8)Maxim Sobolev2006-02-162-8/+20
| | | | | | | | | utility instead of using default _PATH_MDCONFIG (/sbin/mdconfig). MFC after: 1 week Notes: svn path=/head/; revision=155769
* add miss args to mac:del and mac:kickSam Leffler2006-02-151-3/+3
| | | | | | | | Submitted by: Anders Hanssen MFC after: 3 days Notes: svn path=/head/; revision=155740
* fix off by one malloc sizesSam Leffler2006-02-141-3/+3
| | | | | | | | Submitted by: Michal Mertl MFC after: 1 week Notes: svn path=/head/; revision=155702
* oops, mismerge from working sources.. not only add new code,Julian Elischer2006-02-141-2/+0
| | | | | | | but remove old code! Notes: svn path=/head/; revision=155640
* Stop ipfw from aborting when asked to delete a table entry thatJulian Elischer2006-02-142-1/+13
| | | | | | | | | | | doesn't exist or add one that is already present, if the -q flag is set. Useful for "ipfw -q /dev/stdin" when the command above is invoked from something like python or TCL to feed commands down the throat of ipfw. MFC in: 1 week Notes: svn path=/head/; revision=155639
* s/Februari/February/.Joel Dahl2006-02-121-1/+1
| | | | Notes: svn path=/head/; revision=155565
* Add a simple manpage.Marcel Moolenaar2006-02-112-1/+74
| | | | Notes: svn path=/head/; revision=155557
* Add an example how to use keyfiles for encrypted providers which should bePawel Jakub Dawidek2006-02-111-1/+37
| | | | | | | | | attached before the root file system is mounted. MFC after: 3 days Notes: svn path=/head/; revision=155538
* - Allow to use -b without passphrase or with keyfiles as it will bePawel Jakub Dawidek2006-02-111-20/+16
| | | | | | | | | | | | | | | | | supported for a moment. - Don't allow to use -i when no passphrase is given. Now if iterations is equal to -1 (not set), we know that we should not ask for the passphrase on boot. It still doesn't handle situation when one key is protected with passphrase and the other is not. There is no quick fix for this. The complete solution will be to make number of iterations a per-key value. Because this need metadata format change and is only needed for devices attached on boot, I'll leave it as it is for now. MFC after: 3 days Notes: svn path=/head/; revision=155536
* really truncate long ssid's when !verboseSam Leffler2006-02-081-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=155461
* Teach gbde(8) to use a key file in addition to a passphrase. ThisColin Percival2006-02-082-25/+85
| | | | | | | | | | | makes it practical to use GBDE for "something you have plus something you know" security together with a USB flash drive. Reviewed by: phk MFC after: 7 days Notes: svn path=/head/; revision=155453
* Correct RFC for NTP.Jesus R. Camou2006-02-061-1/+1
| | | | | | | | | | PR: docs/92629 Submitted by: Daniel Gerzo <danger@rulez.sk> Noticed by: Michal F. Hanula <f@7f000001.org> Approved by: trhodes (mentor) Notes: svn path=/head/; revision=155394
* Fix a markup glitch.Ruslan Ermilov2006-02-031-1/+1
| | | | Notes: svn path=/head/; revision=155263
* Document carp(4) arguments.Jesus R. Camou2006-02-031-1/+26
| | | | | | | | | | | PR: docs/92653 Submitted by: Jeremy C. Reed <reed@reedmedia.net> Reviewed by: ru Approved by: trhodes (mentor) MFC after: 5 days Notes: svn path=/head/; revision=155254