aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Make the installation menu loop on the provided package directory (if oneJordan K. Hubbard1995-05-261-2/+11
| | | | | | | is provided). Notes: svn path=/head/; revision=8758
* Tighten up the TCP/IP dialog a little.Jordan K. Hubbard1995-05-263-5/+7
| | | | | | | Simply install procedure a bit. Notes: svn path=/head/; revision=8757
* Totally revamp the TCP/IP dialog; now network selection makes a bit more sense.Jordan K. Hubbard1995-05-2617-525/+311
| | | | | | | | | | | Root floppy (which actually may be able to go completely away at some point soon!) is now loadable from ftp/nfs/dos as well as CDROM and (of course) floppy. Fix more problems on Poul's Gripe List. Notes: svn path=/head/; revision=8756
* Reviewed by: rgrimes, jkh and davidg (sort of)Bill Paul1995-05-261-119/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rod, Jordan and David have more or less given me the OK on this with the understanding that it doesn't change any functionality. It doesn't: these are bug fixes only. No other part of the system should be affected. Of course, since I'm the only one working on NIS, you'll just have to take my word on it. :) Fixes for the following annoyingly subtle bugs: - ypbindproc_setdom_2 is supposed to be declared void *, not boot_t *, and it fails to correctly signal failures back to the ypset(8) command: we need to call one of the svcerr_*() functions (in this case, svcerr_noprog() seems a logical choice -- we're really cheating a bit here because nothing else quite fits) to tell ypset that the attempt to set the binding for a domain failed. If we don't do this, failed ypset attempts either appear (incorrectly) to succeed, or they time out. - The lock handling for child processes isn't quite right. The child broadcaster processes have to release all locks on the binding files and the ypbind.lock file. - The parent ypbind process will SEGV if you do the following: -- start ypbind with the -ypset or -ypsetme flag -- type 'ypwhich -d random_unserved_domain' -- type 'ypset -d random_unserved_domain anyhost' -- type 'ypwhich -d random_unserved_domain' again -- wait about 60 seconds What happens is this: the ypwhich command causes ypbind to fork a broadcaster process that searches for a server for random_unserved_domain. If you then use ypset to force a binding while this process is still alive, the state flags that tell the ypbind parent process that the child is running will be cleared. The second ypwhich command then causes a *second* child process to be forked for random_unserved_domain, which is verbotten. When the first broadcaster exits and tells the parent that it wasn't able to find a server for the domain, the parent clobbers the entry for random_unserved_domain. Then the second broadcaster exits and the same thing happens, only trying to clobber the entry twice causes a SEGV. The fix for this is a slight change in program structure: since we can't have more than one broadcaster for a given domain at a time, we save the pipe descriptors and pid for the child broadcaster in members of the _dom_binding struct for the domain. (As a side effect, we can get rid of the global child_fds variable.) So when rpc_received() finds that it's been asked to do a ypset for a domain for which a broadcaster process exists, it sends a SIGINT to the child to kill it and closes the pipe to the now-dead child. This keeps everything in sync and insures that we don't leak file descriptors. - ping() should be using YPPROC_DOMAIN rather than YPPROC_DOMAIN_NONACK when it does its clnt_call() to the server. - Removed the check for client_handle == NULL in ping() and make client_handle local to ping instead of a member of the _dom_binding struct. This fixes another potential ypset problem: using ypset to force a binding to a machine that has an NIS server but which *doesn't* support the domain we're after can result in permanently bogus bindings. - the 'server OK' message prints the wrong IP address. Notes: svn path=/head/; revision=8755
* Add CRC checking to sysinstall.Jordan K. Hubbard1995-05-252-4/+6
| | | | | | | Submitted by: gpalmer Notes: svn path=/head/; revision=8752
* Bring in all my fixes to Poul's gripe list as of last night.Jordan K. Hubbard1995-05-2520-156/+252
| | | | Notes: svn path=/head/; revision=8751
* media_strategy.c: Add explanation for URL.Poul-Henning Kamp1995-05-251-11/+18
| | | | | | | ftp.c: Clean up debug, improve error handling. Notes: svn path=/head/; revision=8746
* Cleanup.Jordan K. Hubbard1995-05-255-8/+12
| | | | Notes: svn path=/head/; revision=8742
* Put back some changes that were smashed in yesterday's release treeJordan K. Hubbard1995-05-2510-34/+98
| | | | | | | shoot-down. Notes: svn path=/head/; revision=8739
* Invoke the _right_ shell. Sigh.Jordan K. Hubbard1995-05-242-4/+4
| | | | Notes: svn path=/head/; revision=8738
* Whoops - that last feature I committed to put a diagnostic shell inJordan K. Hubbard1995-05-242-2/+6
| | | | | | | | ttyv3 would work a lot better if I actually exec'd a shell! :-) Reviewed by: Notes: svn path=/head/; revision=8737
* 1. Spawn a shell on VTY4 and leave it lying around.Jordan K. Hubbard1995-05-248-6/+40
| | | | | | | | 2. Bring in Gary's prompt stuff in extractGeneric. 3. Add another global for telling when we're running as init. Notes: svn path=/head/; revision=8735
* Never commit before breakfast: A typo. Sorry Gary.Poul-Henning Kamp1995-05-241-4/+4
| | | | Notes: svn path=/head/; revision=8732
* Take out configSysconfig() until I get it written.Jordan K. Hubbard1995-05-242-2/+6
| | | | Notes: svn path=/head/; revision=8730
* Close the transfer socket.Poul-Henning Kamp1995-05-241-1/+5
| | | | Notes: svn path=/head/; revision=8729
* "Bring out your dead!" Always try to reap the children we leave around.Jordan K. Hubbard1995-05-241-2/+2
| | | | Notes: svn path=/head/; revision=8728
* Bring everybody up to date on my morning's work.Jordan K. Hubbard1995-05-2412-436/+524
| | | | | | | | | | | | | | | | | | | | | | | 1. Fix a few bugs in the ftp installation code and implement proper ftp and network shutdown routines. 2. Clean up the menus a fair bit - add a FreeBSD configuration menu. 3. Eliminate the last of the "chaining" - the installation now does the most obvious thing in the most obvious cases and doesn't present you with more menus than you were expecting. This makes it necessary to be a little more explicit in places, but it's still less confusing. 4. Add a few more safety nets for the user. Change a few hard-and-fast limits to warnings (it now runs as non-root, Bruce). 5. Add descriptions for all the supported ethernet cards. 6. Make the cpio floppy extract put up a menu requesting the drive you wish to use if you have more than one; don't just always assume drive A. Notes: svn path=/head/; revision=8727
* Makefile:Gary Palmer1995-05-243-17/+30
| | | | | | | | | | | | | Add testftp: target ftp.c: add more debugging output and fix a few more problems media_strategy: make the ftp system actually do something resembling common sense. it now works after a fashion, although it soon falls over for some reason. Notes: svn path=/head/; revision=8726
* Sync to latest ftp-capable sysinstall. We're getting there!Jordan K. Hubbard1995-05-2419-347/+612
| | | | Notes: svn path=/head/; revision=8722
* Allow pkg_manage to take a directory argument; I need this for the CDROM.Jordan K. Hubbard1995-05-242-7/+12
| | | | Notes: svn path=/head/; revision=8719
* A few more typos fixed and some general cleanup done.Jordan K. Hubbard1995-05-242-22/+28
| | | | Notes: svn path=/head/; revision=8718
* Add missing arg to fprintf() error message.David Greenman1995-05-241-2/+2
| | | | | | | Submitted by: Mike Grupenhoff Notes: svn path=/head/; revision=8716
* Add a final configuration menu and the beginnings of the backing codeJordan K. Hubbard1995-05-2410-68/+124
| | | | | | | | for it. The ftp installation method is working well enough to test. Many more bug fixes, says Gary. Notes: svn path=/head/; revision=8715
* Add my first cut at TCP/IP device configuration. If this works, theJordan K. Hubbard1995-05-239-19/+100
| | | | | | | | | ftp installation method should now function. We'll know as soon as my make release builds the floppies. I'm just committing this out of my release tree now so that it doesn't get clobbered again. Notes: svn path=/head/; revision=8709
* 1. Bring in the first cut of Poul's ftp routines. We still don'tJordan K. Hubbard1995-05-2322-227/+918
| | | | | | | | | | | | | use them yet, but it's close (we're working on the last wrinkles in the CD install for now). 2. Complete the CDROM installation strategy code. 3. Simplify the distribtuion loading code. 4. General error message cleanup. 5. Write the /etc/fstab file now and split those routines into config.c 6. Clean up the menus a little more. Notes: svn path=/head/; revision=8705
* Implement most of the CD extract code.Jordan K. Hubbard1995-05-2210-347/+502
| | | | | | | | | Clean up a few last display bugs. Add sanity checking that makes sure user creates root and swap partitions. Add swap partitions with swapon(). Notes: svn path=/head/; revision=8702
* Add a undocumented '-d' flag to set debugging.Poul-Henning Kamp1995-05-211-2/+5
| | | | Notes: svn path=/head/; revision=8688
* Check status of the device init routine properly.Jordan K. Hubbard1995-05-211-2/+3
| | | | Notes: svn path=/head/; revision=8686
* Try AGAIN to get the disklabel editor to do the right thing.Jordan K. Hubbard1995-05-216-28/+28
| | | | | | | | | | | | | This is getting ridiculous. I may have to put the clear() back and take the performance penalty, Poul. Tweak the TCP/IP setup menu to look a little nicer. Add lp0 to the list of available network devices (it was found before but simply not described properly). Notes: svn path=/head/; revision=8681
* Stick in another strategic clear().Jordan K. Hubbard1995-05-212-4/+4
| | | | Notes: svn path=/head/; revision=8679
* Do my best to translate this into english.. :-)Jordan K. Hubbard1995-05-212-396/+392
| | | | | | | | Some parts were so incomprehensible that I had to excise them entirely, but I did my best with the material provided. Notes: svn path=/head/; revision=8678
* 1. Start syncing up the network strategy code so that folks like Poul andJordan K. Hubbard1995-05-2113-285/+565
| | | | | | | | | | | Justin can see it. 2. Attempt to fix the redisplay problems in label.c some more. Not clearing the screen each time is certainly faster, but it's causing all sorts of problems. Notes: svn path=/head/; revision=8677
* Change device name from cua01 to cuaa0. I'm going to use this doc inJordan K. Hubbard1995-05-212-4/+4
| | | | | | | the installation, so it was necessary. Notes: svn path=/head/; revision=8674
* Correct a display bug that Poul introduced with his last roundJordan K. Hubbard1995-05-212-8/+28
| | | | | | | | | of optimizations. Add a check to make sure that root filesystems are at least 20MB in size (this is just a thumbnail approximation, and we can revise it later if necessary). Notes: svn path=/head/; revision=8672
* Reverse a boolean condition that prevented the user from disablingJordan K. Hubbard1995-05-211-2/+2
| | | | | | | a distribution fetch. Notes: svn path=/head/; revision=8671
* The latest batch from me. Still some screen anomalies (One could considerPoul-Henning Kamp1995-05-212-158/+198
| | | | | | | the entire libdialog one such :-( ) but functionally ok I think. Notes: svn path=/head/; revision=8669
* label.c: wizard mode now returns;Poul-Henning Kamp1995-05-216-10/+10
| | | | | | | | | disks.c: clrtobot() so that deleted stuff disappears. disks.c: offset is signed (for OnTrack diskmanager) system.c: don't setbuf(stdout,0), it's too slow. Notes: svn path=/head/; revision=8668
* Make a fixit.flp target too.Poul-Henning Kamp1995-05-212-12/+20
| | | | | | | Improve the search code for the -u # argument to newfs. Notes: svn path=/head/; revision=8666
* Make newfs options work on rootfs.Poul-Henning Kamp1995-05-216-122/+98
| | | | | | | | | | Add size argument to new_part, so it can come up with a good default for newfs. Fix (possibly) a dialog botch after label.c's wizard mode. Make vsystem even smarter abour crunched binaries (what a speedup!) (You need to recompile crunchgen !) Notes: svn path=/head/; revision=8665
* Added a crunched_here(char *path) function so crunched programs can find outPoul-Henning Kamp1995-05-211-0/+15
| | | | | | | who they share bed and breakfast with. Notes: svn path=/head/; revision=8664
* Now cpio works for me. (it was Mostly confusion about when the chrootPoul-Henning Kamp1995-05-204-30/+20
| | | | | | | | | happened) Make vsystem crunch aware in an intelligent fashion. make the boot.flp target more specific (and faster). Notes: svn path=/head/; revision=8663
* #if 0 out PHK's code until we can find a way of making it crunchgenGary Palmer1995-05-202-6/+12
| | | | | | | dependant so that standalone builds aren't hosed. Notes: svn path=/head/; revision=8662
* 1. Add MBR type menu to take it off of Poul's "gripe sheet".Jordan K. Hubbard1995-05-206-18/+78
| | | | | | | | | 2. Syntax correction from Andrey. Good night! :-) Notes: svn path=/head/; revision=8660
* Don't clear the screen for every redraw in the disklabel andJordan K. Hubbard1995-05-207-24/+31
| | | | | | | | | partition editors (ugh). Fix an utterly bogus message (no arguments :) in dist.c. This should all make Poul a little happier and slide in before the next CTM update window. Notes: svn path=/head/; revision=8659
* Change vsystem to know that the shell is crunched in.Poul-Henning Kamp1995-05-206-16/+124
| | | | | | | Sanitize a couple of messages. Notes: svn path=/head/; revision=8658
* Fix a few message bogons.Jordan K. Hubbard1995-05-202-8/+8
| | | | Notes: svn path=/head/; revision=8654
* Misc cpio evil. I think I'm going to start working locally and just dealJordan K. Hubbard1995-05-204-10/+10
| | | | | | | | | with the diff/CVS hassles - this represents far too many CVS commit messages for you folks, and trying to document each and every iteration of the code is a hassle (and not very useful at that). Notes: svn path=/head/; revision=8653
* Hmmm. Try the raw floppy device! This failure mode is a bit strange.Jordan K. Hubbard1995-05-202-6/+6
| | | | Notes: svn path=/head/; revision=8652
* Whoops - copy_self() was going to the wrong place!Jordan K. Hubbard1995-05-204-10/+12
| | | | | | | Use proper floppy device names. Notes: svn path=/head/; revision=8651
* Use ppp0 for all serial devices. It's somewhat kludge, but atJordan K. Hubbard1995-05-202-4/+6
| | | | | | | least accurate (we only have one ppp device on the floppy). Notes: svn path=/head/; revision=8650