summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix uucp lockingache1995-09-192-38/+29
| | | | | Remove unnecesary TIOCSETD Move SLIO* before startup script call
* Implement uucp-lockingache1995-09-193-10/+172
| | | | Cleanup debug/syslog code
* Change new -U option to -S to go the same way as startslip.ache1995-09-182-7/+7
|
* New option: -S #: set SLIP unit numberache1995-09-182-5/+18
|
* New options:ache1995-09-182-30/+113
| | | | | | | | | -K #: set SLIP keepalive timeout -O #: set SLIP outfil timeout -U #: set SLIP unit number sighup handler now sets tty disc for non-redial case too. Implement SIGURG handling (from keepalive). POSIXing speed settings.
* Add new options:ache1995-09-172-12/+52
| | | | | | | -K: set keepalive SLIP timeout -O: set outfill SLIP timeout Handle SIGURG from keepalive like SIGHUP now, i.e. reconnect. Back out background scription change, cause some synchro problems.
* Turn on scsiformat.joerg1995-09-171-7/+8
| | | | reformat.
* Finally replace the defunct 4.4BSD scsiformat.c by Peter's wrapperjoerg1995-09-173-9/+172
| | | | | | | around scsi(8). I've done extensive testing of it with a spare disk in the past, and it's ready for prime-time now. Submitted by: dufault
* Shorten a variable name.dg1995-09-171-4/+4
|
* Use default COPTS.dg1995-09-171-2/+1
|
* Use daemon() instead of fork/setsid/close.ache1995-09-161-26/+15
| | | | Rearrange things to do fork as later as possible.
* Oops. Fix my error with -W optionache1995-09-151-2/+2
|
* Close line before fork, or becomes close twice.ache1995-09-151-28/+26
| | | | Debug output cleanup.
* Tune it to REALLY sense carrier drop.ache1995-09-152-102/+117
| | | | | | | | | Now works with dialin devices too. Add new option in slattach style -l: dont use modem control. Add new option -W: specify max number of dial tries for one phone. Remove -p option, this ugly hack not needed. Fix script timeout expires. Some code cleanups.
* Restore TTYDISC on exit. Move setting of control terminalache1995-09-151-9/+14
| | | | after TTYDISC setting
* Wait until login completed before starting SLIP (5 secs)ache1995-09-151-0/+3
|
* Pass sequence number to called scripts via LINE env. variable.ache1995-09-152-3/+18
| | | | It allows specific per phone number tunings
* Add reference to /usr/share/examples/startslipache1995-09-141-1/+2
|
* Add example scriptsache1995-09-143-0/+16
|
* All changes still related to original version:ache1995-09-143-59/+195
| | | | | | | Don't close line twice. Change typo == to = in assignment. Don't restart, if ioctl fails. Implement uucp-style locking to help dialout pgms.
* Now understand "host!login:" style prompts additionly.ache1995-09-142-86/+167
| | | | | | | | | | | | | | | | | Add -t to specify login script timeout. Add -w to specify retry wait time. Describe -p option. Now understand several -s sections (for several host phone numbers). Remove -F sw (software flow control), it is impossible with slip. Change -F hw (hardware flow control) option to -h as in slattach, we don't need option with argument for only one case. Call downscript on SIGTERM. Improve debug diagnostic. Allow startslip work with several slip lines without killing each other. Unlink pid file on exit. Skip \r and \0 in login script parsing instead making them \n. Use absolute path to default script (/sbin/ifconfig). Call up/down script in background to prevent hang on them.
* Avoid the "calculated sectors per cylinder disagrees with disklabel"joerg1995-09-091-1/+9
| | | | | warning for the default case where the user hasn't specified either -t or -u on the command line. It's been confusing our users.
* Fixed error in maxcontig calculation that caused it to default to "1".dg1995-09-081-1/+1
|
* Check a pointer in skipdirs() before dereferencing it. I don't fullyjoerg1995-09-011-1/+1
| | | | | | | | | | understand why it can become a null pointer under some circumstances, but i've got a pile of tapes where this happens, and running it thru a debugger proved that simply ending the loop in this case did the right thing. Anyway, it cannot make it worse than now, where restore kills itself with "Memory fault".
* Update to the slices era. Make /dev/rfoo0 the defaults, notjoerg1995-09-014-30/+162
| | | | | | | | | | | | /dev/rfoo0d. Scan a list of devices instead of insisting on all the world being wd0. Allow for disk names to be specified (e.g. `sd0') instead of full path names only. Sync the man page with the reality.
* Correct minor nit - to filter out SYN packets, the keyword isgpalmer1995-08-311-1/+1
| | | | | `syn' not `tcpsyn' (which matches `tcp' which blocks all tcp packets)
* Remove -O2 from COPTS, known rogueache1995-08-291-2/+2
|
* Document the -a option, and mention ``noauto''.dg1995-08-262-0/+10
|
* The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTOdg1995-08-266-22/+10
| | | | | is a kernel flag, and the kernel definately doesn't need to know about it.
* Sigh. This isn't my night. I forgot the manpage updates too!jkh1995-08-232-0/+10
| | | | Thanks, Andrey.
* Add a "noauto" flag so that you can do things like prevent your systemjkh1995-08-234-6/+16
| | | | | | from not coming up multiuser just because you have a CD mount in fstab but no CD in the drive. Submitted by: "Full Name Not Supplied" <simon@masi.ibp.fr>
* Add $Id$gpalmer1995-08-221-0/+3
|
* Reset the umask before creating the output file; otherwise runningjoerg1995-08-161-1/+2
| | | | | ldconfig as root with a restrictive umask yielded ld.so.hints unreadable by the world (and thus useless).
* Add (apparently) Larry McVoy's warning....peter1995-08-121-0/+2
|
* Fix init to correctly detect processes that are exiting multiplempp1995-08-081-1/+1
| | | | times per second.
* nspace count was incremented only in child, so warning never displayedache1995-08-081-9/+13
| | | | Pointed by: Mike Pritchard <mpp@mpp.minn.net>
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-073-12/+2
| | | | which is no longer bogusly installed in /usr/include.
* Just when you thought it was safe...wpaul1995-08-071-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - getnetgrent.c: address some NIS compatibility problems. We really need to use the netgroup.byuser and netgroup.byhost maps to speed up innetgr() when using NIS. Also, change the NIS interaction in the following way: If /etc/netgroup does not exist or is empty (or contains only the NIS '+' token), we now use NIS exclusively. This lets us use the 'reverse netgroup' maps and is more or less the behavior of other platforms. If /etc/netgroup exists and contains local netgroup data (but no '+'). we use only lthe local stuff and ignore NIS. If /etc/netgroup exists and contains both local data and the '+', we use the local data nd the netgroup map as a single combined database (which, unfortunately, can be slow when the netgroup database is large). This is what we have been doing up until now. Head off a potential NULL pointer dereference in the old innetgr() matching code. Also fix the way the NIS netgroup map is incorporated into things: adding the '+' is supposed to make it seem as though the netgroup database is 'inserted' wherever the '+' is placed. We didn't quite do it that way before. (The NetBSD people apparently use a real, honest-to-gosh, netgroup.db database that works just like the password database. This is actually a neat idea since netgroups is the sort of thing that can really benefit from having multi-key search capability, particularly since reverse lookups require more than a trivial amount of processing. Should we do something like this too?) - netgroup.5: document all this stuff. - rcmd.c: some sleuthing with some test programs linked with my own version of innetgr() has revealed that SunOS always passes the NIS domain name to innetgr() in the 'domain' argument. We might as well do the same (if YP is defined). - ether_addr.c: also fix the NIS interaction so that placing the '+' token in the /etc/ethers file makes it seem like the NIS ethers data is 'inserted' at that point. (Chances are nobody will notice the effect of this change, which is just te way I like it. :)
* Remove IMAXBEL clearing, our cfmakeraw() already fixed for itache1995-08-041-1/+0
| | | | | | Reviewed by: Submitted by: Obtained from:
* Remove a newline from the output of savecore(8), so the bogus numberjoerg1995-07-301-1/+0
| | | | | | | | | 1024 that used to remain on a line of its own after savecore completed its job will be overwritten later in the /etc/rc process. Reviewed by: Submitted by: graichen@sirius.physik.fu-berlin.de (Thomas Graichen) Obtained from:
* scsi(8) used to fall off the end of main(), returning an arbitraryjoerg1995-07-301-1/+2
| | | | | | | | value. Reviewed by: Submitted by: Obtained from:
* Change `install' to `${INSTALL}' so that default install flags can bebde1995-07-251-1/+1
| | | | specified in the top level Makefiles.
* Man page was incorrectly pointing to /etc/dump, it should be /sbin/dump.rgrimes1995-07-151-1/+1
| | | | Submitted by: faried nawaz <fn@big-brother.csrv.uidaho.edu>
* Fix to match new API. Fixes memory leak, faster.phk1995-07-121-6/+9
|
* Remove a bogus fclose. Normally the "w" stream for /var/crash/bounds wasbde1995-07-111-1/+0
| | | | | | fclosed twice and this didn't seem to cause any problems, but when /var/crash was on an an unwritable nfs-mounted partition, fclose(NULL) caused a core dump.
* The mode page editor never cleaned up the temp files. Thanksdufault1995-07-111-1/+32
| | | | | to Joerg for noticing. This low risk bug fix is appropriate for 2.1.
* Changes to support version 3 of the NFS protocol.dfr1995-06-278-209/+538
| | | | | | | | | | | | | | | | | | The version 2 support has been tested (client+server) against FreeBSD-2.0, IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support is stable AFAIK. The version 3 support has been tested with a loopback mount and minimally against an IRIX 5.3 server. It needs more testing and may have problems. I have patched amd to support the new variable length filehandles although it will still only use version 2 of the protocol. Before booting a kernel with these changes, nfs clients will need to at least build and install /usr/sbin/mount_nfs. Servers will need to build and install /usr/sbin/mountd. NFS diskless support is untested. Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
* When tuneing filesystems with tunefs, it is not obvious what the currentjoerg1995-06-252-0/+39
| | | | | | | | | | | | | | | | | parameters are. You can use dumpfs, but that's not obvious which settings are tuneable, and is far from clear to the non-guru (it's like using a hexdump of a tar archive to get a table-of-contents). There is also an undocumented option in the man page that can be dangerous. Suppose your disk driver decides to scramble all writes while you tell tunefs to update all backup superblocks. This suggested change adds a '-p' (print) switch to bring it in line with some SVR4 systems. (Slightly changed by me, mostly for optics. - joerg) Submitted by: peter@haywire.dialix.com
* When using dump/rdump on large filesytems (my case 3 GB), the lseekjoerg1995-06-241-2/+4
| | | | | | | | | | claims multiple times to have failed. The problem is a off_t is converted into a int and checked for a negative. A true lseek check should be checking if the off_t is equal to -1 for failure. (Suggested fix from PR #bin/461) Submitted by: mark tinguely <tinguely@opus.cs.ndsu.NoDak.edu>
* Add an "-m" flag to merge instead of replace the entries. We canasami1995-06-242-41/+75
| | | | | | | | | | | now safely add a line like ldconfig -m ${PREFIX}/lib in ports' Makefiles and packing lists without throwing away some directories the user may have added. Submitted by: Mostly by Paul Kranenburg <pk@cs.few.eur.nl>
OpenPOWER on IntegriCloud