Commit Graph

842 Commits

Author SHA1 Message Date
Jordan K. Hubbard
8f1fd59b90 Fix the DOS discovery code to now re-allocate another virtual device if
it's called multiple times in a row.  Add a new device type "DEVICE_TYPE_DOS"
so that we can look up an previous results.
1995-05-20 11:10:35 +00:00
Jordan K. Hubbard
f10eb488f6 1. Fix a pathological bug I introduced in msgInfo(). Right idea, wrong
implementation.

2. Totally rework device registration.  It's about half the size and
   more powerful now.

3. Add DOS discovery.

4. Start filling in some of the strategy routines.

5. Another clean-up pass over the menus.

6. Make wizard code use Disk typedef.

If I can get the first strategy routine finished tonite, we should have a working
install (from ftp, at least) this weekend.
1995-05-20 10:33:14 +00:00
Jordan K. Hubbard
2cf252e087 Totally re-work cpio_extract.
Erase the annoying "Command output is on debugging screen" message
when it's time to switch back.
1995-05-20 08:31:43 +00:00
Jordan K. Hubbard
dad012f2c6 Correct a few wording bogons in the menus.
Make notify NOT wipe the dialog off right after putting
it up.  Whoops.  Kinda defeated the purpose! :-)
1995-05-20 07:50:20 +00:00
Gary Palmer
e61618782b Make Jordan's ``half baked'' code compile so that make release's aren't
stopped dead in their tracks. Also add the beginnings of my
distribution extraction code in media_strategy.c
1995-05-20 03:49:10 +00:00
Jordan K. Hubbard
7ab5b08b2c This doesn't work - the extract code is half-baked. I commit it only
so that Gary can sync to it before I go to bed.. :)
1995-05-20 00:13:14 +00:00
Jordan K. Hubbard
ceb1d42782 Only apply @mode directives to files.
Don't use the -p flag to tar; it sets the files to the wrong permissions.
Submitted by:	jmz
1995-05-19 22:40:54 +00:00
Jordan K. Hubbard
c7c32addb2 More assorted verbosity. Also don't log informational messages. 1995-05-19 21:30:35 +00:00
Jordan K. Hubbard
1c1834210c Make _DIST_USER use the right flag. 1995-05-19 18:50:59 +00:00
Jordan K. Hubbard
2512487c92 Be more verbose now that we're getting ready to actually extract. 1995-05-19 17:19:39 +00:00
Jordan K. Hubbard
ce4e04980d XF86VGA16 -> XF86VG16 1995-05-19 17:11:07 +00:00
Jordan K. Hubbard
c10caaad51 1. Incorporate Nickolay's ammended patches for Russian screenmap support
as per Andrey's letter.  Make a few modifications for correctness.

2. Add Language menu back to first menu - it was too buried in the
   Options menu.

3. Add size information to all distributions.

4. Add a compat20 distribution (we need to make one of these!!  Any takers?  Please?)

Submitted by:	Nickolay N. Dudorov <nnd@gw.itfs.nsk.su> & jkh
1995-05-19 16:58:58 +00:00
Jordan K. Hubbard
87b47edc82 1. Copy the boot floppy into /stand before extracting the CPIO floppy.
2. On Justin's advice, remind the user when they should switch back
   from the debugging screen, if they're looking over there.
1995-05-19 15:56:02 +00:00
Jordan K. Hubbard
ec9b92d133 Whoops! Put the helpful message telling you to look at the second
screen on the first screen, and not the second.. :-)
1995-05-19 04:17:38 +00:00
Jordan K. Hubbard
977a407e1d Include serial ports as possible network candidates. 1995-05-19 02:31:13 +00:00
Jordan K. Hubbard
a1bfde73e4 Big Sigh. Both A_BOLD and A_UNDERLINE do not appear to work with
syscons (and/or cons25) at all.  This code looked just fine running
on an xterm, but on a console the attributes are all wrong.  I
now have to sacrifice some screen real-estate to pring cheesy
`-' characters to accomplish the same thing.
1995-05-19 02:19:15 +00:00
Jordan K. Hubbard
f8230b2f5f Switch to bold on the header line - the A_UNDERLINE handling appears to be
broken in syscons, or at least in the cons25 termcap entry! :-(  A_BOLD
won't show up on monochrome adapters (I don't think) but they'd be screwed
anyway since I don't have an attribute to use for them now at all.
1995-05-19 02:09:02 +00:00
Gary Palmer
9675b32c2f You want to be in /mnt when extracting the cpio floppy, not in the read
only root filesystem.....
1995-05-19 01:49:57 +00:00
Gary Palmer
aff014ff20 Sigh. Add a ++ which was causing the newfs'ing of non-root filesystems to
fail :-(
1995-05-18 23:36:21 +00:00
Poul-Henning Kamp
18f4c72169 Run bad144 on raw-devs. 1995-05-18 22:00:01 +00:00
Poul-Henning Kamp
b8458cd586 A couple of tweaks to make bad144 scan run. 1995-05-18 21:58:33 +00:00
Poul-Henning Kamp
f7f27cd415 Change the ioctl to match what went into wd.c 1995-05-18 21:26:06 +00:00
Jordan K. Hubbard
561e0b4c76 Use raw devices for newfs.
Write and wizard mode only on enabled disks.
1995-05-18 18:02:31 +00:00
Jordan K. Hubbard
9786c33e55 Poul says that setting fonts on monocrome displays is useless
as most mono displays aren't that intelligent anyway.  Disable it in this
case.
1995-05-18 17:49:09 +00:00
Jordan K. Hubbard
fcddc1c2bc Use CHUNK_BSD_COMPAT as God and Poul intended it be used. 1995-05-18 17:38:02 +00:00
Jordan K. Hubbard
a0b7a5f865 Fix quoting error. 1995-05-18 16:57:52 +00:00
Jordan K. Hubbard
8cdff502c9 I had the arguments to Mount() backwards. Argh. 1995-05-18 16:53:53 +00:00
Gary Palmer
a3bbb2ff49 Dispose of old, #if 0'd, out code which has been proved to be no longer needed. 1995-05-18 16:44:41 +00:00
Gary Palmer
3890483652 Correct a conditional which could cause a off-by-one error in certain
circumstances.
1995-05-18 16:36:14 +00:00
Jordan K. Hubbard
0e8441fc1a Clear the screen after changing the font. 1995-05-18 15:58:32 +00:00
Jordan K. Hubbard
ae1d347651 Whoops! I forgot how uudecode works.. Make it really work here. 1995-05-18 15:46:18 +00:00
Jordan K. Hubbard
a2b4e70705 1. Use 8x16 fonts.
2. Don't use russian screenmap - apparently not necessary with right font.
3. Dequote bogusly quoted font name in english language setting.
4. Use setterm() and hack around an undesirable side-effect (cbreak is unset).
5. be smarter about setting OnVTY, and use it in cases where it makes sense.
Submitted by:	Nickolay N. Dudorov <nnd@gw.itfs.nsk.su>
1995-05-18 15:29:47 +00:00
Jordan K. Hubbard
36678611e6 Add some more debugging information and fix a few missing newlines. 1995-05-18 14:11:16 +00:00
Jordan K. Hubbard
def8bcf342 Fix a very embarassing typo. No wonder this thing was looping! :-) 1995-05-18 13:20:53 +00:00
Jordan K. Hubbard
690e60d830 1. Add serial devices to list of possible network device candidates.
2. Rework tcpip.c a bit so that devices which have been configured also
   have the enabled flag set.
1995-05-18 13:18:35 +00:00
Jordan K. Hubbard
ab9357a910 Also log all user interactions to debugging log. 1995-05-18 12:57:54 +00:00
Jordan K. Hubbard
6aebdd7df9 Do more proper bad144 handling. Thanks, Rod. 1995-05-18 10:43:51 +00:00
Jordan K. Hubbard
4d7b3c6f96 1. Primitive bad144 support (I believe an additional command is needed, but
won't know until Poul wakes up again).
2. Make vsystem() put its output on the debugging fd.
3. DTRT with root filesystem placement - now I see how this has to work
   (thanks, Poul).
4. Many miscellaneous spelling errors fixed and general cleanup.
1995-05-18 09:02:06 +00:00
Jordan K. Hubbard
0b30383382 Use my own version of system() everywhere - it knows where to find the
shell!
1995-05-18 02:42:33 +00:00
Jordan K. Hubbard
4da5212097 1. Set a path to /stand by default.
2. Don't clear() when I can dialog_clear().
1995-05-17 16:16:10 +00:00
Jordan K. Hubbard
498e6d5df3 Remove the seat-belts from the root partition creation code; for some
reason I'm *always* getting CHUNK_PAST_1024 set now, even when it's
definitely not! :-(  Poul, can you perhaps take a look?  Thanks!
1995-05-17 15:41:52 +00:00
Jordan K. Hubbard
d0eeafc570 Commit my latest so that Gary can sync up - this version should also
be the grounds for our first round of testing in the release I'm rolling.
It doesn't load the distributions yet, but it should do everything else.
1995-05-17 14:40:00 +00:00
Gary Palmer
dfa4c76f74 Hopefully the last version of this file. Add a lot more comments, and
actually give the data back to sysinstall in a coherent fashion now.
1995-05-17 12:09:11 +00:00
Gary Palmer
4ea606879a Oops - Jordan managed to grab my ``work in progress file'' which
doesn't even come close to compiling. This file compiles, and should
work.
1995-05-16 20:00:51 +00:00
Garrett Wollman
8ecaae9433 Doc fix - ``active'' specification not parsed by routed in /etc/gateways.
Submitted by:	Mike Newell <mnewell@lupine.nsi.nasa.gov>
1995-05-16 14:10:07 +00:00
Jordan K. Hubbard
b2d228d3d7 This will now compile and even scribble helpfully on your disks.
It remains to be seen how successfully.  The distribution loading code
is still not here yet, but the partition/newfs/mount/cpio-extract cycle
is as complete as it's ever going to get, modulo possible bug fixes.
The TCP/IP setup screen is also sort of here, albeit in a highly-changing
state due to the fact that per-interface information isn't being kept
right now but is being added (thanks, Gary!).
1995-05-16 11:37:27 +00:00
Jordan K. Hubbard
3dee6615c7 This does _not yet compile_; I'm simply bringing in my changes from
this weekend in order to more easily sync with my CVS tree at home.
Another commit relative to these changes will follow shortly.
1995-05-16 02:53:31 +00:00
Jordan K. Hubbard
aa1478bbd2 Fix a problem where pkg_manage refused to allow the user to select a
full directory hierarchy, as is the format of the new ports collection.
It used the old "all packages in one directory" paradigm, which is wrong for
ports now.
Submitted by:	Marc van Kempen <wmbfmk@urc.tue.nl>
1995-05-16 01:30:20 +00:00
Jordan K. Hubbard
88f0d26553 A number of bug fixes to mrouted (no functionality enhancements from 3.5, just
the fixes!):

o Scoped addresses might let traffic in
o IGMP queries sent with wrong timeouts
o Possible core dump in mtrace if we get a request for which we have no route
o If a member on a transit network left a group, mrouted would stop forwarding
  even if there was a downstream router
o Various code cleanups and logging changes

Reviewed by:	wollman
Submitted by:	Bill Fenner <fenner@parc.xerox.com>
1995-05-16 00:28:50 +00:00
Poul-Henning Kamp
b89995508b Basic bad-block scanner. Works. Slow. Adds the bad-spots automatically. 1995-05-15 19:02:09 +00:00
David Greenman
84fbd1c727 Fully initialize (bzero) the stack-allocated "struct sockaddr_in server"
structure. Random junk on the stack would cause the call to bind to fail
in some cases (since the address portion wasn't initialized).
1995-05-15 09:56:49 +00:00
Rodney W. Grimes
e602d31e02 Fix 3 printf's that had the wrong number of arguments.
Submitted by:	gibbs
1995-05-14 19:19:55 +00:00
Gary Palmer
b04042154b tcpdump is in (1) not (l) 1995-05-14 15:21:36 +00:00
Satoshi Asami
d6f5c64683 Added "doc" to the list of subdirs, so that amdref.info* will get
installed in /usr/share/info...closes my own PR, docs/408 (aaah now
I need to figure out how to "close" PRs... ;)....
1995-05-14 11:24:41 +00:00
Rodney W. Grimes
1f6583b909 printf -> fprintf when you use a fd arg :-), oops! 1995-05-14 08:40:37 +00:00
Rodney W. Grimes
46e26c551d Don't add a slash to the end of _PATH_DEV, it already has one.
Print a final newline to stderr after the scan finishes, only do it
at the right place in this version, 1.1.5.1 caused an extra newline
if you where not running -s, and it went to stdout instead of stderr.

Obtained from:	FreeBSD 1.1.5.1
1995-05-14 08:19:08 +00:00
Rodney W. Grimes
1bb5661b59 Add bad144 -s option to scan entire slice of disk.
Obtained from:	FreeBSD 1.1.5.1 (Just the scan function itself was added)
1995-05-14 07:05:47 +00:00
Poul-Henning Kamp
2df6483f69 Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.
1995-05-14 03:37:40 +00:00
David Greenman
bd7917b1a7 Updated to work with Poul-Henning's recent kernel changes in the swap
device table layout...basically, don't output the cruft anymore - it
is now dynamic.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:10:58 +00:00
David Greenman
1295400e49 Updated to work with Poul-Henning's recent changes to the swap device
table.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:08:35 +00:00
Rodney W. Grimes
af9fe6e59d mlink bad144.8 to man8/bad144.8 so we can find the manual page.
Use /${MACHINE} for MANSUBDIR instead of hardcoded /i386

Obtained from:	FreeBSD 1.1.5.1
1995-05-14 02:30:19 +00:00
Poul-Henning Kamp
3ee2ce52b4 remove swapinfo. 1995-05-13 17:27:10 +00:00
Poul-Henning Kamp
59392fe2bc Make pstat act like swapinfo if so invoked. 1995-05-13 17:25:23 +00:00
Garrett Wollman
5e7d9e89ba Don't automatically default dumps to be on a swap device; if the user
wants dumps, he can either configure it explicitly (`dumps on' whatever) or
use the dumpon(8) utility.
1995-05-12 19:12:44 +00:00
Garrett Wollman
55678a2eb9 Learn how to print out kern.dumpdev as a name. 1995-05-12 19:10:56 +00:00
Bill Paul
97f3a7e6e7 One for the road: create a ypbind.lock file under /var/run and try to lock
it. If we can't it means there's already a ypbind running and we should
abort.
1995-05-12 16:52:58 +00:00
Jordan K. Hubbard
59927d47cf 1. Don't check CHUNK_BSD_COMPAT for now; it always returns "no" and is
getting in the way of testing right now.
2. Call system() on commands, not vsystem().  No need for vsystem() here.
3. Add a path for the shell.
1995-05-11 09:01:35 +00:00
Jordan K. Hubbard
a9d7ec4113 Revise this to actually print all the various isa_device field values
it really should have been printing all this time.  Also fix my rather
bogus handling of the id_conflicts value by moving it to the end of
isa_device and dealing with that correctly now.
1995-05-11 07:54:41 +00:00
Jordan K. Hubbard
e0d3af579f Clean this up a bit - add more documentation to the documentation menu. 1995-05-11 06:47:46 +00:00
Jordan K. Hubbard
dae062c15f First round of changes after testing this on actual systems. Clean up
some of the badly displayed menus, use the proper notification box for
messages, make proceed work.
1995-05-11 06:10:56 +00:00
Jordan K. Hubbard
babb4e927f Add a new `conflicts' flag for telling when a device is in conflict with
others.  The flag can be put in descriptive locations, e.g.:

device sb0      at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr
or
device psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr

But is nonetheless boolean only.  You can't turn conflict checking off for
only a given type of conflict.  I didn't deem it worth the trouble at this
stage, and it's far better than the ALLOW_CONFLICT_* that preceeded it.
1995-05-11 02:21:34 +00:00
Bill Paul
4d6e34053f Ack! One slipped through the cracks: remember to return the correctly
filled-in result structure to the caller when a resource allocation
error is encountered in ypbindproc_domain_2.
1995-05-11 00:16:54 +00:00
Bill Paul
c904a246d2 Performace improvements/simplifications/cleanups:
- Make the child process reaper signal-driven. (Previously, we called reaper()
  once a second each time we went through the select() loop. This was
  convenient, but inefficient.)

- Increase main select() timeout from 1 second to 60 seconds and use
  this as the ping timer instead of using timestamps in the _dom_binding
  structure. This nd the reaper() change noted above makes ypbind a little
  less CPU-intensive.

- Don't flag EINTR's from select() as errors since they will happen as a
  result of incoming SIGCHLD's interrupting select().

- Prevent possible resource hogging. Currently we malloc() memory
  each time a user process asks us to establish a binding for a domain,
  but we never free it. This could lead to serious memory leakage if a
  'clever' user did something like ask ypwhich to check the bindings
  for domains 0.0.0.0.0.0.0.0.0.0 through 9.9.9.9.9.9.9.9.9.9 inclusive.
  (This would also make a mess out of the /var/yp/binding directory.)

  We now avoid this silliness by a) limiting the maximum number of
  simultaneous bindings we can manage to 200, and b) free()ing _dom_binding
  structures of secondary domains whose servers have stopped responding.
  We unlink the /var/yp/binding/domain.vers files for the free()ed
  domains too.

  (This is safe to do since a client can prod us into reestablishing the
  binding, at which time we'll simply allocate a new _dom_binding structure
  for it.)

  We keep count of the total number of domains. If asked to
  allocate more than the maximum, we return an error. I have yet to hear
  of anybody needing 200 simultaneous NIS bindings, so this should be
  enough. (I chose the number 200 arbitrarily. It can be increased if need
  be.)

- Changed "server not responding"/"server OK" messages to display server
  IP addresses again since it looks spiffier.

- Use daemon() to daemonify ourselves,

- Added a SIGTERM handler that removes all binding files and unregisters
  the ypbind service from the portmapper when a SIGTERM in received.

- The comment 'blow away everything in BINDINGDIR' has no associated code.
  Give it some: clean out /var/yp/binding at startup (if it exists).

This completes my ypbind wishlist. Barring bug fixes, I shouldn't need to
go poking around in here anymore. (Of course, this means I can start
working on my ypserv whishlist now... :)
1995-05-10 23:02:41 +00:00
Jordan K. Hubbard
36dc394c61 Fix a long-standing bug that broke pkg_info utterly and probably made
pkg_add a little wiggy too.
1995-05-10 23:00:16 +00:00
Jordan K. Hubbard
e8019cb42b Fix a long-standing bug that broke pkg_info utterly and probably made
pkg_add a little wiggy too.  Document the fact that pkg_info can also
take a URL.
1995-05-10 23:00:07 +00:00
Jordan K. Hubbard
82f99dbbda Bump the number of allowable args by a factor of 4. I just scanned
all possible packing lists and found that at least one of them is
pretty large!
1995-05-10 22:33:55 +00:00
Jordan K. Hubbard
28ed622cab Document fetch-by-URL. 1995-05-10 20:56:19 +00:00
Jordan K. Hubbard
c63a4dc13b Re-work make_dist() routine to build the tar command more reasonably.
This should eliminate the problem with truncated packages.
1995-05-10 20:46:06 +00:00
Jordan K. Hubbard
42206c90f4 Don't use curses routines until that part of the system is initialized. 1995-05-10 18:59:51 +00:00
Jordan K. Hubbard
8e3bb099bf Sync up to Poul - use his new Create_Chunk_DWIM() function and use the pointer
it passes back.  Thanks, Poul!
1995-05-10 09:25:49 +00:00
Jordan K. Hubbard
b34c876a61 Make sure that mountpoints start with a /. 1995-05-10 08:03:21 +00:00
Jordan K. Hubbard
4ec1f4bcf2 Whoops - dispatch() takes multiple args now. 1995-05-10 08:00:47 +00:00
Jordan K. Hubbard
351669d743 Fold in all my recent changes.
Do another clean-up pass over this, making the generic menu handler much
more powerful (now handles multiple dispatch).  A few more menus fleshed
out and the beginnings of the distribution handler committed.  Should
be transfering full distributions over in the next commit.
1995-05-10 07:45:00 +00:00
Jordan K. Hubbard
f26b6240ac Switch from bogus absolute path to a relative one.
Closes PR #bin/391
Submitted by:	Stephen McKay <syssgm@devetir.qld.gov.au>
1995-05-09 23:48:54 +00:00
Rodney W. Grimes
ad753d5151 Fix nested comments for -Wcomment warnings. 1995-05-09 12:48:21 +00:00
Rodney W. Grimes
06e81069bd Fix nested includes for -Wcomment. 1995-05-09 12:35:29 +00:00
Jordan K. Hubbard
f9a1c2dee2 Sync these up so that they'll get into my CVS tree at home, where I'll continue
working on the distribution extract stuff.
1995-05-08 21:39:40 +00:00
Jordan K. Hubbard
9e572e47e5 Whoops! Uncomment Write_Disk() again. 1995-05-08 18:41:37 +00:00
Gary Palmer
8b3fe702b7 Change /lib/cpp to /usr/bin/cpp 1995-05-08 16:50:19 +00:00
Jordan K. Hubbard
4d66a82366 Perform a much needed tidying-up pass over this code. Sleep for now,
more tomorrow.
1995-05-08 10:20:56 +00:00
Jordan K. Hubbard
69bbb06233 Add the sorted command executor code. 1995-05-08 06:08:27 +00:00
Jordan K. Hubbard
7f197a5448 Ok, we should now create all filesystems, mount them and extract the
cpio floppy at this point.
1995-05-08 06:06:30 +00:00
Jordan K. Hubbard
83b74c37e4 Implement the geometry command. Clean up the help a little. 1995-05-08 01:27:07 +00:00
Jordan K. Hubbard
65a27a9ba4 Add a wizard button for Poul. 1995-05-08 00:56:28 +00:00
Jordan K. Hubbard
0881c9c4a1 Fix a bug in multi-column output. 1995-05-08 00:38:02 +00:00
Jordan K. Hubbard
27e3eb523c Another sync up for Poul. Added a lot more error checking. 1995-05-07 23:37:34 +00:00
Andrey A. Chernov
020531ce67 Add FreeBSD-specific TS_* states 1995-05-07 23:19:53 +00:00
Andrey A. Chernov
9030041959 Enable sio driver and upcoming rc driver
Add more line disciplines
1995-05-07 22:15:46 +00:00
Jordan K. Hubbard
51f0ec8415 Implement a work-around for Create_Chunk providing no pointer to the
new chunk.  The partition editor now works as well as the underlying
libdisk can support it - have at it, Poul!
1995-05-07 22:07:53 +00:00
Bruce Evans
2d732692dc Fix 3 fatal mismatches in format args involving dbtob() and 7 nonfatal
mismatches.
1995-05-07 08:13:37 +00:00