Commit Graph

456 Commits

Author SHA1 Message Date
phk
59e847221d Fix a potential bug in stage2.
disable the dialog_msgbox in TellEm(), until we find out why it
hangs on second or third invocation.
1994-11-04 21:38:37 +00:00
dg
68629cf45a From njw@cs.city.ac.uk (Nick Williams):
/sbin/umount does not return the correct exit status due to incorrect
logic in its internals.

Further, because of the nature of the code, you *cannot* use it to
umount a directory from a union mountpoint. Well, you can sometimes,
it depends on if the directory is at the top of the union stack or not :)

Submitted by:	njw@cs.city.ac.uk (Nick Williams)
1994-11-04 17:51:37 +00:00
ache
25f8152cc1 -i case goes to background pause and acts like -a case on receiving
SIGTERM. This helps to keep CMOS clock updated before reboot.
Idea from J.Wunsch.
1994-11-03 03:16:16 +00:00
ache
59192b5d77 Restore jkh's changes, now it works for const strings 1994-11-03 00:30:27 +00:00
ache
7e1fe0352f Now autosizing code works with const strings too.
Prototype added.
1994-11-03 00:28:05 +00:00
jkh
6dba721269 Don't use autosizing code after all - it doesn't like const strings. 1994-11-02 22:39:57 +00:00
phk
9fb2768520 a missing star. 1994-11-02 22:06:24 +00:00
jkh
a00b05c580 Last changes before going to bed. Disk label editor should now work
a fair bit better.
1994-11-02 11:00:35 +00:00
ache
d9244963cc Restore back -i, -a 1994-11-02 10:04:11 +00:00
ache
4f370d253c Restore back -i, -a 1994-11-02 09:40:06 +00:00
jkh
affa14b605 Stage0 can't dump you into a shell. There isn't one. Just reboot.
Stage5 didn't have a large enough dialog box.  Fix that.  Also use
Andrew's autosizing code.
1994-11-02 09:05:49 +00:00
phk
2584bf5a50 Make MkDir() actually do "mkdir -p", so that we can mount on /home/foo, even if
/home isn't a mountpoint.
1994-11-02 08:52:15 +00:00
jkh
42861ec6c3 Fix more mongoloid coding style.
Make a stab at getting free space display to work.
Forward decls to shut compiler warnings up.
Increase some fields to width 2 in order to get edit_line to let you
actually edit them.
Sanity check values and yell at bonehead users.
1994-11-02 08:15:46 +00:00
ache
80107c21b2 Restore things broken by phk, please use patches to 'cvs update'
instead of whole files commiting!
1994-11-02 07:37:40 +00:00
ache
2fb916de4b Restore things broken by phk, please use patches on 'cvs update'
instead of whole files!
1994-11-02 07:34:01 +00:00
jkh
c34f3a4657 More miscellaneous changes. Clear the screen in some appropriate spots. 1994-11-02 07:15:56 +00:00
jkh
75dd6b40db Get stage0 and stage5 working.
Try to reformat this code to be a little more human.  Weird europeans
have been writing this, and can't even seem to agree a single coding
style for more than 4 consecutive lines! :-)
1994-11-02 06:19:53 +00:00
wollman
98584b9f82 Add support for filesystem-specific `-o' options, and re-implement the
most common cd9660 and nfs options like God intended them.  (It is now
possible to say

	mount -o ro,soft,bg,intr there:/foo/bar /foo/bar

again.)  This whole getmntopt() business is an incredible botch;
it never should have been anything more than a wrapper around
getsubopt(3).  Because if the way the current hackaround is implemented,
options which take arguments (like the old `rsize' and `wsize') are still
unavailable, and must be accessed the new, broken way.

(It's unimaginable how Berkeley managed to screw up one of the few things
about NFS that Sun actually got right to begin with!)
1994-11-01 23:51:53 +00:00
ache
224a7209c0 Remove options, run adjkerntz as daemon now 1994-11-01 16:22:22 +00:00
phk
e391c34ea4 Public apology:
I have walked all over Paul Richards code again, and severely lobotomized
some of his stuff, in order to cut some corners for the 2.0-Alpha release.
I belive that we can now manipulate fdisk and disklabel-stuff sufficiently
for the release to actually be produced.
It's not that I don't like Paul and his code, I just need something I
can kick out of the door RSN.

Sysinstall is now under absolute code-freeze, only Jordan has my permission
to commit to this code (stage0 & 5).  I would appreciate if everybody
else would finds problems in sysinstall send patches to me, and I will
commit them. THANKYOU.

The fdisk/disklabel editors are made in pure ncurses, and follow a model
"a`la spreadsheet".

There are some important functions which are missing still, and I would
appreciate if somebody would look at them.
The FDISK part needs a "whole-disk" option, and it needs a "rewrite
MBR-boot code" option.
The DISKLABEL part needs to be able to "import DOS-partition".
Both need a "HELP" function, (display a file "/HELP" using dialog is OK).

It seems to me like the wd.c and sd.c should reread the physical record
when a DIOCGDINFO is made, so that they can pick up changes in the
MBR-data.  Otherwise there will be a couple of weird cases where we
cannot avoid replicating code from the kernel.

If you want to play with this, look at src/release/Makefile.  You may need
to step back to version 1.38 of sys/i386/isa/fd.c to make "rootable"
floppies, it is not clear at this time if that indeed is the problem I
have been having.

Sleep well, my friends, and expect the real Alpha in 24H, if the tree is
still solid.
1994-11-01 10:10:43 +00:00
ache
133682c900 Remove extra :%s from syslog formats 1994-11-01 08:34:32 +00:00
ache
a2d7fb4596 Now:
adjkerntz -i writes kernel clock only, don't touch RTC clock
adjkerntz -a writes RTC clock only, don't touch kernel clock
1994-11-01 06:20:52 +00:00
jkh
89ef070565 Latest changes from Uben.
Submitted by:	uben
1994-10-31 23:58:04 +00:00
ache
8c4e4ab40c Don't make too big windows, count actually text width/height 1994-10-31 04:49:15 +00:00
ache
79262b9907 Change hardcoded 24x80 to LINES-1, COLS
Remove compiler warning
1994-10-31 04:07:43 +00:00
joerg
d9ece1ef04 Fixed a type. 1994-10-30 18:23:22 +00:00
pst
00c9120b02 add md5 1994-10-29 23:58:55 +00:00
pst
70e126010a This commit was generated by cvs2svn to compensate for changes in r3995,
which included commits to RCS files with non-trunk default branches.
1994-10-29 23:58:02 +00:00
pst
51b49316ee Incorproate version of md5 placed into public domain by RSA. 1994-10-29 23:58:02 +00:00
phk
3053743aee Fixed another bunch of problems. I belive we are in a working shape now. 1994-10-29 12:03:59 +00:00
phk
d4bf38900c Fixed to make sysinstall work again. Notable changes:
Removed a dialog_clear() which somebody aimlessly had slammed into TellEm()
in absence of any understanding of the structure of this program. :-(

Skip through stage0 for now.

Make write_bootblocks write the disklabel using the kernel-call, and forget
about the boot-blocks for now.  This is wrong, but I havn't found the real
problem yet.  I will continue work on this problem.

Added a Debug-feature.  There is a printf' like Debug() now which sends its
output to ttyv1 (Alt-F2), and all "discarded output" from sub-processes end
up there too.  Made TellEm() put it's messages there also, so that we can
see where what happens.

Set the PATH for the shell we shouldn't start at the end :-)

set "npartitions" after the disklabel-editor returns, so that we actually
can edit all the 8 parts of the label.
1994-10-29 10:01:40 +00:00
jkh
10a7840a1b Add ipfw. 1994-10-29 08:22:13 +00:00
joerg
64cdb7f637 Fixed an evil bug where rawname() could write across the boundaries of
an array. The bug became obvious in the old system where the array was only
32 characters long (now MAXPATHLEN). Dump honored its name then (:-)
and dumped its core when calling dump -w for a fstab that contained rather long
NFS file system names. Even though this is rather unlikely to happen now,
a bug is a bug:)
1994-10-28 17:26:27 +00:00
jkh
5384c767d7 Totally refrobnicate stage0. Add an extern to sysinstall.h so we can
all share the same `selection' variable.
1994-10-28 15:19:57 +00:00
jkh
2d9e0b68de Fix up the man page a little more, delete the README that crept in
(but I'm actually just as happy to have in the attic, for reference).
1994-10-28 15:12:22 +00:00
jkh
75284d9008 This commit was generated by cvs2svn to compensate for changes in r3965,
which included commits to RCS files with non-trunk default branches.
1994-10-28 15:06:53 +00:00
jkh
8f38a9e26e Add the ipfw command, for IP firewall construction.
Submitted by:	danny ugen
1994-10-28 15:06:53 +00:00
jkh
cb82096387 Add the ipfw command, for IP firewall construction.
Submitted by:	danny ugen
1994-10-28 15:06:53 +00:00
phk
6e0d8cab14 Added two #defines to make this compile, until Paul gets out of bed again :-) 1994-10-28 03:02:47 +00:00
jkh
ce6e9e5a88 Correct a little spelling. 1994-10-26 10:33:36 +00:00
paul
16a785f0d1 Clean up the mess from the previous commit which used a out of sync
patch file.

Now, we should be able to configure disklabels using the editor.
1994-10-26 07:34:38 +00:00
paul
00a46bee86 Added some glue code so disklabel editor can be used to edit disklabel
and have changes propagated to later stages.
1994-10-26 07:14:51 +00:00
phk
55d5a381e4 So there. Now we live on the hard-disk! 1994-10-26 05:41:02 +00:00
paul
1c1a01a242 Completed disklabel configuration editor. The editor is working but the
glue code to pass the edited configuration onto the following stages
isn't done yet.
1994-10-26 04:09:19 +00:00
phk
2ae71d4f8c New and Improved! crunch with gzip, newfs, fsck and cpio. gzip result.
fits on 1200 kb floppy with unstripped GENERIC kernel.
1994-10-26 02:53:15 +00:00
ache
3ffd223439 Sync with termcap.src 1994-10-26 02:20:47 +00:00
ache
3c47008e93 Sync with termcap.src 1994-10-26 01:20:11 +00:00
ache
59adcb0482 Remove unneeded dialog_update() because now in dialog_clear() 1994-10-25 22:23:18 +00:00
bde
8b3dde5352 Don't write outside of partp[] if the user gives an invalid partition
number for the partition to be made active.  Do nothing instead.  This
allows clearing all the active flags by specifying an invalid partition.
1994-10-25 17:46:53 +00:00
ache
7f2d1d0726 Use configurable dialog attributes instead of hard-coded ones 1994-10-24 05:16:00 +00:00
ache
c9b8b8c1a7 label.c: add delwin(window)
mbr.c: use proper dims for newwin, add shadow
both: add ' ' and ESC as valid end-keys
1994-10-24 04:14:23 +00:00
ache
8013f46cd7 Use proper dims for newwin.
Remove double-clear.
Add shadow.
1994-10-24 04:07:22 +00:00
ache
b0ffecf00b Clear screen on exit per Paul request 1994-10-24 03:55:25 +00:00
paul
e4a1b28eb2 Remove a couple of display_disklabel call used
for debuging.
Reviewed by:
Submitted by:
Obtained from:
1994-10-24 03:33:29 +00:00
paul
e661ae2fa9 Round partitions to the next whole cylinder.
Fill in devicename and mountpoint structures from default_disklabel()
so stage2 code knows what to do.
New file label.c for disklabel editing code.
1994-10-24 03:30:56 +00:00
sef
be1a95d225 Reviewed by: jkh
Print out summary information on receipt of SIGINFO; also, stop the
kernel printing of information and restore it on exit.  Now, it needs
an option to be quiet. ;)
1994-10-22 17:30:35 +00:00
ache
b06ffefae2 Fatal() fixed:
end_dialog() called too early here.
1994-10-22 02:37:24 +00:00
ache
efa820b483 Cosmetique: just fix tabs after patch of diff -cb (previous) 1994-10-22 02:35:09 +00:00
ache
75b639f534 ExitSysinstall() fixed:
use dialog functions properly.
don't clear screen with last message on exit(0), I want to see it still.
relay on dialog_active properly.
1994-10-22 02:32:16 +00:00
dg
8a6cbee88c Restrict fs_maxfilesize to 2^40; this is part of a bug fix from Kirk
McKusick to work around problems in FFS related to the blkno of a 64bit
offset not fitting into an int.

Submitted by:	Marshall Kirk McKusick
1994-10-22 02:21:53 +00:00
paul
2e4c4d4c33 Fixed a typo and moved a dialog_clear() line. 1994-10-21 18:26:25 +00:00
paul
b64f7c5ebf Fix all the bugs introduced by the source shuffle.
All the mbr code now seems to be working. We can build a basic
unix disklabel in any existing DOS partition while retaining the
existing mbr bootcode or we can install to the whole disk which
puts FreeBSD's boot code into the MBR and creates a clean MBR
partition table with FreeBSD in partition 0 taking up the whole disk.
1994-10-21 18:08:33 +00:00
phk
7e7ba68785 Now stage2 runs all the way.. 1994-10-21 05:36:43 +00:00
ache
6d796bf8e8 Add hardcoded cons25-m entry for mono console, if termcap.small
not fit on installation floppy.
1994-10-21 04:48:51 +00:00
ache
a7e8f05083 Second time bugfix, please be carefully.
Use dialog functions in Fatal only if dialog_active, else
use fprintf(stderr, because it may be called before dialog
initialization
1994-10-21 04:43:07 +00:00
phk
dbeb224eb9 Latest changes from me. Over to you Paul... 1994-10-21 02:14:54 +00:00
ache
d3c63309bc Remove ncurses.h, now included into dialog.h 1994-10-20 21:58:10 +00:00
ache
cf4cb75ef0 remove unneded includes
use dialog functions properly
move alloc_memory early to prevent core dump at stage 3
Change 25x80 to 24x80
Fix setenv diagnostic
Fix Fatal to call end_dialog()
1994-10-20 19:30:56 +00:00
phk
6f74447f38 Now stage 2 should do it's job I hope. Havn't tested yet. 1994-10-20 06:48:40 +00:00
phk
ed4d0cba77 Just a safety measure for me and Paul. 1994-10-20 06:14:29 +00:00
phk
f930c16f2b Remake lost changes to sysinstall.h. Sorry Paul ! 1994-10-20 06:08:19 +00:00
phk
700c220c35 Integrate my code a lot more with Pauls. (I have left sysinstall.c
here, even though it isn't used in the Makefile for Paul not to have
an heart-attack when he wakes up. :-)

Way to go still...
1994-10-20 05:00:00 +00:00
phk
fc7c4debd9 The beginning of some structural changes, and the merge of my code into
Pauls.
1994-10-20 02:51:55 +00:00
phk
58071d3303 Added a big comment about the general scheme of things during install... 1994-10-20 01:17:26 +00:00
paul
5f0d355f35 More code rearrangment, moved all mbr code into its own file
so it can be used by other programs.

Added all the necessary menus to take the user through the installation
of the bootblocks.
1994-10-19 23:58:03 +00:00
bde
51bb0bcc12 Don't change the active partition when the user says not to change it.
Convert absolute sector 0 to C/H/S 0/0/0, not 0/0/1.

Open in O_RDWR mode for the undocumented -a option, so that -a can be
used without -u.
1994-10-19 21:25:28 +00:00
ache
a8875ddbc1 Fix several dialog/terminal problems.
Add code to autodetect terminal entry, if TERM undefined
1994-10-18 18:45:49 +00:00
paul
92715090e5 Lates snapshot:
Re-organised files, moved bootcode routines into their own files.
Check return types of everything and pass error messages to
windows so we get good diagnostics.

Made start on stage 2 installation. Implemented a status file that
keeeps track of where we are in the installation process and allows
installation from media sequences.
1994-10-18 07:56:34 +00:00
ache
d9a422ecd0 Remove machdep.color_display 1994-10-18 03:41:16 +00:00
ache
60833eb4ee Document new machdep variables, pointed by Rod 1994-10-17 18:55:21 +00:00
paul
8619a7cc5d Fixed bug in exec code, cp -R now works.
Added code so sysinstall can run as init.
1994-10-17 07:13:13 +00:00
paul
785c4dddb1 Remove a bogus BINDIR line 1994-10-16 06:17:03 +00:00
paul
8ed18fa48e Add DPADD for libraries. 1994-10-16 02:25:54 +00:00
paul
db1472d335 Add some missing libraries to LDADD 1994-10-16 00:04:42 +00:00
paul
db46506fba Added sysinstall 1994-10-15 14:37:30 +00:00
paul
0e84693cef Work in progress. 1994-10-15 14:34:49 +00:00
gpalmer
41d224a018 Move `ft' into machine-dependant section. 1994-10-15 00:08:57 +00:00
ache
8caada094c revision 1.6
date: 1994/03/06 08:55:02;  author: ache;  state: Exp;  lines: +4 -1
Stop count getty spacing problem, if we issue kill -1 1
----------------------------
revision 1.5
date: 1994/03/04 17:51:39;  author: ache;  state: Exp;  lines: +9 -2
I got a lot of
"getty repeating too quickly on port %s, sleeping"
from init.bsdi, it means that getty start and exit in five seconds.
This is common situation for poor quality Russian phone lines:
modem got CONNECT message and after retries got NO CARRIER.
So I introduce spacing count, it means that this warning and
sleep occurse only after GETTY_NSPACE times of sequental attempts.
----------------------------
revision 1.4
date: 1994/02/28 21:53:52;  author: ache;  state: Exp;  lines: +71 -10
I found (and fix) ugly bugs in init.bsdi (this bugs not present
in old init)

1) Init don't setup TERM environment variable for default terminal
type from /etc/ttys before calling getty/window.

2) When "kill -1 1" issued, init don't restart getty when
/etc/ttys parameters was changed (it only kill "off" end empty entries).

3) Small memory leak if "window" /etc/ttys parameter specified and
"kill -1 1" issued.

Obtained from: FreeBSD 1.x
1994-10-14 17:15:40 +00:00
jkh
41c5667e0d Add ft.
Submitted by:	babb
1994-10-14 06:14:58 +00:00
jkh
c3aeeea542 Put back the `:' in the trinary ?: so this can actually compile again! :) 1994-10-13 08:46:44 +00:00
phk
88c7cdf9f6 Added '-F file' option of mount_mfs. This allows me to make floppy images
without waiting for my floppy-drive all the time :-)  Might have other
interesting uses too.
1994-10-12 22:04:36 +00:00
dg
3f2df8ff53 Backed out part of the last change that prevents the rpos table from
being output if <= 1 rpos; there is a bug in the kernel which doesn't
quite get along with this. Changed default #rpos to 1, and fixed up
manual page. Converted nrpos to 1 if user specifies 0.
1994-10-09 20:10:56 +00:00
ache
bd9221d7c5 Modify adjkerntz to not write RTC clock per initial call,
suggested by Bruce
1994-10-04 19:15:13 +00:00
gpalmer
816e0ba143 Moce comcontrol, fdisk & mount_msdos out of machine-independance into
an I386 specific statement. Also add necessary code to allow
machine-dependance in this makefile

Reviewed by:	rgrimes
1994-10-02 03:38:08 +00:00
dg
e4d9163144 Fixed manpage to conform to current reality.
Submitted by:	Rod Grimes, with additional sentence by me.
1994-10-01 20:00:28 +00:00
dg
a6ad1a7695 1) If nrpos <= 1, don't output rpos table (and set fs_cpc to 0) - disabling
the use of the rotational position table.
2) Allow specification of 0 rotational positions (disables function).
3) Make rotdelay=0 and nrpos=0 by default.

   The purpose of the above is to optimize for modern SCSI (and IDE) drives
that do read-ahead/write-behind.
1994-10-01 16:56:22 +00:00
dg
58fa6b3529 Corrected message when no rotational position table is found. 1994-10-01 16:53:53 +00:00
pst
975bf60144 This commit was generated by cvs2svn to compensate for changes in r3248,
which included commits to RCS files with non-trunk default branches.
1994-09-30 21:16:09 +00:00
pst
4e04b757fb Router Discovery from Sun Microsystems 1994-09-30 21:16:09 +00:00
pst
c0bc5fccd3 This commit was generated by cvs2svn to compensate for changes in r3245,
which included commits to RCS files with non-trunk default branches.
1994-09-30 20:47:35 +00:00
pst
f6f60cfa00 Router discovery code - Courtesy Sun Microsystems 1994-09-30 20:47:35 +00:00
ache
c03b54f851 Add code to skip "userquota"/"groupquota" options needed for
quotaon/quotacheck
1994-09-29 16:39:26 +00:00
pst
ced2a4c78a disklabel will dump core if you give it too few numbers to process
Obtained from: NetBSD misc/490 - John Kohl
1994-09-26 04:45:11 +00:00
wollman
fb5ce4d4f8 Fix one more _PATH_UNIX. 1994-09-24 03:18:32 +00:00
wollman
0df0b6cca0 Get rid of _PATH_UNIX completely; use getbootfile(3) instead.
DANGER WILL ROBINSON!
_PATH_UNIX is currently defined as the literal string "don't use this".
I am of two minds about this myself, but wanted to get something into the
tree as quickly as possible.
1994-09-24 00:08:43 +00:00
wollman
1c6db624c5 Document more MIB variables. 1994-09-23 19:04:02 +00:00
wollman
d7ad5c7c58 Add two new flags:
-q just shut up, will you?!
	-u unlink output file after successful load
1994-09-22 22:35:53 +00:00
wollman
2df90f55f0 Automatically load NFS and a bevy of other filesystems. 1994-09-22 22:17:02 +00:00
wollman
84993e8c7b Automatically load filesystem if not present in system and loadable. 1994-09-22 02:15:34 +00:00
wollman
3f0c8c1320 Use getvfs* functions to map between VFS types and names.
Automatically load UFS if it is not present but is loadable.
(This won't happen now, but could happen if we fix NFS diskless support.)
1994-09-22 02:07:33 +00:00
ache
a8f1a7bf99 Correction for new sysctl interface 1994-09-19 23:18:41 +00:00
ache
d578e9f68d rewritted to use sysctl, no more /var/run/.adjkerntz now 1994-09-19 23:09:34 +00:00
dfr
58ec0d0ed1 Added support for MSDOS file systems. 1994-09-19 18:47:12 +00:00
dfr
8f612a6f51 Added mount_msdos.
Obtained from: NetBSD
1994-09-19 15:30:36 +00:00
ache
629d1c31bf bugfix: change gidset[] type from int to gid_t 1994-09-19 13:52:38 +00:00
dg
2a10b92750 Various fixes:
modload doesn't honor it's -p argument.

It also will destroy the input file when you don't specify an output
symbol file with -o.

Submitted by:	John Kohl
1994-09-18 04:12:13 +00:00
wollman
587e989a65 Per discussion on the mailing-lists, move LKMs from /sbin to /lkm, and
arrange for that directory to get created by mtree.  Also, process secure
directory after all the others, because the programs there may overlay
ones installed from the main part of the tree.
1994-09-16 20:24:29 +00:00
bde
9bf7a8942d Don't exit early if the device is not character special or if the
device driver cannot supply a label (real or faked).  This allows
you to practice using fdisk on disposable media (e.g., "dd count=1
<dev/zero >/tmp/junk; fdisk /tmp/junk", "dd count=1 </etc/passwd
>/tmp/fix-up-the-mess; fdisk /tmp/fix-up-the-mess") and allows me
to test DOSpartitioning and labelling on floppies.
1994-09-15 20:19:51 +00:00
pst
6c7c5d442c Missing 'break' after setting interface route flag was causing interface
routes to not be properly marked as static.
1994-09-15 08:35:37 +00:00
phk
9b788a571d Fixed a bug where mount_nfs would core-dump if used with IP# directly.
Also moved some KERBEROS related stuff inside the #ifdef.

Should we always try to do a reverse lookup (IP#->name) ?
It has som merit, but is probably against the tradition or huh ?
1994-09-15 02:06:59 +00:00
wollman
ead9df0ee3 Add ip_mroute_mod, if NOLKM is not defined. 1994-09-14 22:23:47 +00:00
wollman
d77e94481a Makefile to generate the ip_mroute_mod.o LKM. After talking this over
with DavidG, I've come to the conclusion that unless and until we define
a new directory to put these things in, /sbin is the right place.
(OSF/1 does a lot worse for non-executables in /sbin...).
1994-09-14 22:11:51 +00:00
dg
d15e871d35 Fixed slattach to do flags ioctl via network device rather than tty.
Submitted by:	Rich Murphey, and fixed up by me.
1994-09-14 05:40:56 +00:00
jkh
f50fd6077e Add fdisk to SUBDIR. 1994-09-13 05:32:20 +00:00
dg
7176abdb84 Woops, last patch was by Wolfgang Solfrank. 1994-09-09 11:16:03 +00:00
dg
04f1af751e Two fixes from the NetBSD group (Charles Hannum):
1) dir.c: get byte order right in mkentry()
2) pass1.c: When doing -c2 conversion, do secsize reads for a symlink -
   not doing so was causing the conversion to fail because the device
   driver can't deal with short reads.
1994-09-09 11:06:27 +00:00
pst
8234f9c627 Fix endian bug introduced at Berkeley during the Net2->4.4-lite transition.
Fix is courtesy of the NetBSD folks.

Reviewed by:	pst
1994-09-08 01:06:46 +00:00
dg
8a96cb09ac Get rid of the need for the readonly mandatory option - set readonly
flags regardless of whether the user specified it.
1994-09-07 15:07:43 +00:00
bde
a35b913c69 Fix punctuation. 1994-09-05 13:54:02 +00:00
jkh
9d62c37d7a What cretin named both a global and a function "reboot"? Global
changed to Reboot.
Submitted by:	jkh
1994-08-28 10:00:49 +00:00
nate
6828767320 Bring in my changes from the 1.1 init.bsdi which causes a reboot (was a
halt before)  if init is sent an interrupt signal.  This is necessary
for <CTL><ALT><DEL> to do the right thing if enabled.
1994-08-27 21:32:01 +00:00
dg
3afd086395 Added comcontrol ...this thing *really* should be renamed. 1994-08-26 16:30:55 +00:00
dg
c926825c65 Set fs_clean. 1994-08-26 10:41:13 +00:00
rich
e902734770 Once again, slattach sources ported from 1.1.5 with fixes.
Reviewed by:	davidg, bde
Submitted by:	rich
1994-08-23 08:28:32 +00:00
rich
585dbe2e95 Slattach ported from 1.1.5 plus Bruce Evans suggested fix (close
FDs and fork before redialing) to prevent dialer from hanging with
newer sio.c.

Also moved history from the source to the cvs log (here) per
David G's suggestion.

This compiles but needs testing now...  Rich

/*
 * Hacks to support "-a|c|n" flags on the command line which enable VJ
 * header compresion and disable ICMP.
 * If this is good all rights go to B & L Jolitz, otherwise send your
 * comments to Reagan (/dev/null).
 *
 * nerd@percival.rain.com (Michael Galassi) 92.09.03
 *
 * Hacked to change from sgtty to POSIX termio style serial line control
 * and added flag to enable cts/rts style flow control.
 *
 * blymn@awadi.com.au (Brett Lymn) 93.04.04
 *
 * Put slattach in it's own process group so it can't be killed
 * accidentally. Close the connection on SIGHUP and SIGINT. Write a
 * syslog entry upon opening and closing the connection.  Rich Murphey
 * and Brad Huntting.
 *
 * Add '-r command' option: runs 'command' upon recieving SIGHUP
 * resulting from loss of carrier.  Log any errors after forking.
 * Rich 8/13/93
 *
 * This version of slattach includes many changes by David Greenman, Brian
 * Smith, Chris Bradley, and me (Michael Galassi).  None of them are
 * represented as functional anywhere outside of RAINet though they do work
 * for us.  Documentation is limited to the usage message for now.  If you
 * make improovments please pass them back.
 *
 * Added '-u UCMD' which runs 'UCMD <old> <new>' whenever the slip
 * unit number changes where <old> and <new> are the old and new unit
 * numbers, respectively.  Also added the '-z' option which forces
 * invocation of the redial command (-r CMD) upon startup regardless
 * of whether the com driver claims (sometimes mistakenly) that
 * carrier is present. Also added '-e ECMD' which runs ECMD before
 * exiting.
 *
 * marc@escargot.rain.com (Marc Frajola) 93/09/10
 *
 * Minor fixes to allow passive SLIP links to work (connections with
 * modem control that do not have an associated dial command). Added
 * code to re-check for carrier after dial command has been executed.
 * Added SIGTERM handler to properly handle normal kill signals. Fixed
 * bug in logic that caused message about no -u command to be logged
 * even when -u was specified and the sl number changes. Tried to get
 * rid of redundant syslog()'s to minimize console log output. Improved
 * logging of improper command line options or number of command
 * arguments. Removed spurious newline characters from syslog() calls.
 *
 * gjung@gjbsd.franken.de
 *
 * sighup_handler changed to set CLOCAL before running redial_cmd.
 * added flag exiting, so exit_handler is not run twice.  Fork
 * before reopening tty.
 */
1994-08-23 08:07:17 +00:00
dg
67bffff585 Nuked the 2 second DTR wait; this is handled correctly in the sio driver. 1994-08-23 04:42:45 +00:00
ache
adf4d413b7 adjkerntz added 1994-08-22 20:21:31 +00:00
dg
a5abb5a8ce Better support for clean bit: prompt the user to fix it if it's wrong
when not preening, and indicate if it was fixed when preening.
1994-08-21 08:47:10 +00:00
dg
3ac572dd0d Install aliases "fasthalt" and "fastboot" for halt and boot respectively.
This is for "backwards compatibility". Documented these aliases in the
manual page.
1994-08-21 05:48:34 +00:00
dg
2ac86e910f fastboot is no longer - don't install it. 1994-08-21 04:57:00 +00:00
dg
d886814497 Added a "clean" field to the output - to show the state of the clean flag. 1994-08-20 16:57:45 +00:00
dg
5a72b7524e Added filesystem clean bit support. This only affects fsck during a
preen (-p), and in that case the filesystem is skipped if it is clean.
A new flag "-f" for 'force' has been added which basically gives back
the old behavior of checking all the filesystems all the time. This
very closely models the behavior of SunOS and Ultrix.
1994-08-20 16:56:36 +00:00
dg
2b0f09efbf Killed explicit OS specification. 1994-08-19 13:40:41 +00:00
dg
fd3ab12c80 Kill explicit OS specification. 1994-08-19 13:39:20 +00:00
dg
d53e255e7b NetBSD -> FreeBSD 1994-08-19 13:29:23 +00:00
dg
e968aad777 netbsd -> kernel, NetBSD -> FreeBSD 1994-08-19 13:28:21 +00:00
dg
9d76062a6d Terry Lambert's loadable kernel module support - modload & modunload
utilities w/improvements from the NetBSD group.
1994-08-19 12:07:23 +00:00
wollman
7bfdde5ade `init' needs crypt() for insecure consoles. 1994-08-15 02:45:37 +00:00
jkh
4b24ec11cb Make keywords.h get properly built.
Submitted by:	jkh
1994-08-14 06:57:34 +00:00
dg
1af10415cb Use nulls to pad proctitle rather than spaces...makes ps(1) output more
readable.
1994-08-11 13:40:58 +00:00
wollman
52d2ac9615 Suppress irritating extra newline after kern.boottime. 1994-08-08 15:37:35 +00:00
dg
ea89989ee5 Added support for setting the per-interface MTU. 1994-08-08 10:45:06 +00:00
wollman
d262c1349f Delete obsolete references to librpc.a. 1994-08-08 00:09:22 +00:00
wollman
f19a26b912 Get rid of update. Make man page installation work with our scheme
(and rename a few in the process).
1994-08-05 16:31:05 +00:00
dg
f6961c3742 Changed output formatting to accurately represent the precision. 1994-08-05 10:34:19 +00:00
dg
17e7606224 Converted 'vmunix' to 'kernel'. 1994-08-05 09:14:37 +00:00
wollman
8e1bbb06c3 Convert to our man installation style. Also fixed long-standing bug
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
1994-08-05 02:42:42 +00:00
dg
18e1c1e92d Fixed so that it can grok old style "fastlinks". 1994-08-02 12:54:27 +00:00
dg
7a7b7c5a31 Don't call getmntopts with a null pointer as an option string; it'll
dereference it. Pass optarg from getopts as it should have been done.
This bug caused mount_cd9660 to segfault whenever -o was used.
1994-08-02 11:45:43 +00:00
dg
a5c882153b Fixed NULL pointer dereference that occured when any options were
specified.
1994-08-02 11:42:10 +00:00
jkh
b95edccba4 Update this to the latest version from Steve Gerakines. This is an easy
drop-in for me and looks substantailly neater than the previous version,
so I'll give the floppy tape users a break (but just this once :).
1994-06-22 04:49:04 +00:00
rich
c68cd0f655 Changes from Paul Kranenburg which bring us into sync with his sources:
handling of errors through the standard err() and warn()
 more fixes for Geoff Rehmet's NULL pointer bug.
 fixes NULL pointer bugs when linking mono and nested X servers.
 supports a `-nostdlib' option.
 accept object files without a symbol table
 don't attempt dynamic linking when `-A' is given

a few variable names have chaged (desc -> fd), and the formatting has
changed which should make it much easier to track his sources.

I tested 'make world' for /usr/src and X twice with these changes.
1994-06-15 22:41:19 +00:00
ats
7eebb6a495 Commented out a pointer to qtar(1), we don't have that yet.
Changed the -description in the SYNOPSIS to description.
1994-06-07 21:38:23 +00:00
ats
ae6360e846 Add the -r and -s flags to the Usage string. 1994-06-05 19:04:11 +00:00
ache
c83074fd5c From Bde:
o Rewrote lots of it to be more like stty.1.  The old one was
	  too verbose and the complicated options no longer exist.
1994-05-30 03:50:01 +00:00
ache
7cceb47337 From Bde:
o Removed bidir options.
1994-05-30 03:49:16 +00:00
rgrimes
7f3b6d61cf I know better than to edit files on freefall, next time take a patch file.
Change vm_paramh. to vm_param.h
1994-05-28 16:21:59 +00:00
rgrimes
800d507bb0 Remove old style manual page depends so make install with NOMAN set
can run.
1994-05-28 06:29:36 +00:00
rgrimes
7f0dd1b948 Disable afterinstall: for manual pages until the manual page fix patch
comes in.
1994-05-28 06:27:25 +00:00
rgrimes
58b996b6c4 Remove stuff for building manual pages the old way. 1994-05-28 06:25:34 +00:00
rgrimes
2790c42791 Comment out missing programs fsdb icheck and ncheck.
Comment out porting work needed program scsiformat.
Remove XNSrouted and routed as they have been moved to usr.sbin.
Reviewed by:
Submitted by:
1994-05-28 06:24:51 +00:00
rgrimes
12365dc0be Must now include vm/vm.h and vm/vm_param.h due to the way we define KERNBASE.
Reviewed by:	David Greenman
1994-05-28 04:15:16 +00:00
rgrimes
f57092a7df Don't build /sbin shared. 1994-05-28 03:56:49 +00:00
rgrimes
f77a4cd18d This commit was generated by cvs2svn to compensate for changes in r1558,
which included commits to RCS files with non-trunk default branches.
1994-05-26 06:35:07 +00:00
rgrimes
9079938dd1 BSD 4.4 Lite sbin Sources
Note:  XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00
rgrimes
d038e02fd6 BSD 4.4 Lite sbin Sources
Note:  XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00
rgrimes
862fdf11a2 BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
rgrimes
7954f22810 This commit was generated by cvs2svn to compensate for changes in r1553,
which included commits to RCS files with non-trunk default branches.
1994-05-26 05:23:31 +00:00
jkh
9d020cf408 Latest error correction code from Steve Gerakines 1994-05-20 10:09:46 +00:00
ache
b04e2deb8d FILES entry corrected 1994-05-03 18:50:13 +00:00
jkh
3136eddb2e Fix gross spelling and typographical errors pointed out by Keith Bostic. 1994-04-24 01:22:07 +00:00
ats
1b507f27d4 Better link ldconfig static instead dynamic. 1994-04-13 20:49:42 +00:00
ats
f7bbb0519c Add that /usr/X386/lib is also in the default path for ldconfig. Bug found
by Satoshi Asami ( asami@cs.berkeley.edu ). Fixed also a minor typo
problem.
1994-04-05 08:24:19 +00:00
jkh
a8ce2b831e This is Paul K's latest set of ld changes. A commit was necessary at this
late stage due to the fact that link.h was copyright Sun Microsystems.

This version of ld sync's us up with NetBSD's ld and supports compatablily
with NetBSD's -[zZ] flags (which we had reversed).  Compiling with this
new ld will give you RRS warnings for libraries which do not contain .type
infomation - these wsarnings are harmless and will go away as soon as you
recompile your libraries (cd /usr/src; make libraries).
1994-02-13 20:43:13 +00:00
nate
4415e5bf61 Changed NetBSD -> FreeBSD 1994-02-11 12:12:51 +00:00
rgrimes
c731b9084f Manual is in section 8, you MUST say MAN8= for this to work. Add $Id$ 1994-02-07 08:40:16 +00:00
alm
4268923cf0 import floppy tape controller 1994-02-07 04:36:09 +00:00
alm
4dd216692a This commit was generated by cvs2svn to compensate for changes in r1112,
which included commits to RCS files with non-trunk default branches.
1994-02-07 04:36:09 +00:00
alm
41420413ce import floppy tape controller 1994-02-07 04:36:09 +00:00
ache
bf84251820 Cosmetique patch from bde 1994-02-05 11:42:48 +00:00
ache
3ad2a04712 Fix sign of offset diff.
Use Bruce initial/final hour scheme to avoid critical hours.
1993-12-20 01:53:27 +00:00
nate
7d3198fd4e Fixed Makefile per bug report from Julian Stacey. There was an extra DESTDIR
in front of BINDIR definition.
1993-12-16 21:51:27 +00:00
ache
788c91c4db Attempt to import adjkerntz... 1993-12-16 18:44:40 +00:00
ache
533cd309e9 This commit was generated by cvs2svn to compensate for changes in r867,
which included commits to RCS files with non-trunk default branches.
1993-12-16 18:44:40 +00:00
ache
765bfec485 Change default dtrwait time to 2 seconds. 1993-12-16 04:40:45 +00:00
ache
707b0a81dc Man page added. 1993-12-10 19:27:16 +00:00
ache
48fc4d14bf Modified for work without options COM_BIDIR into kernel. 1993-12-10 19:26:20 +00:00
ache
3a7a6470ed Add 'dtrwait <n>' option to comcontrol to handle
TIOCM[SG]DTRWAIT ioctl.
1993-12-10 01:08:47 +00:00
jkh
e4f5027592 Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
paul
32b24ac461 Cahnged ldconfig.0 to ldconfig.8 for our man system. 1993-11-09 20:39:46 +00:00
paul
ad80b1947a Updated to newest ld from pk.
lib.c:
Pull in archives containing definitions needed by shared objects.
warnings.c:
Less spurious "undefined symbol" msgs for shared library defined
symbols.
ld.c:
Do a better job of recognising data in text segments, eg. `const char []'.
shlib.c,ld/rtld/{Makefile rtld.c}
Use strsep() in stead of strtok() and restore colons in eg. env. vars.
1993-11-09 04:19:36 +00:00
paul
24d976e4e9 Changed ldconfig.0 to ldconfig.8 for our man setup. 1993-11-06 23:15:53 +00:00
paul
c086748db3 Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
rgrimes
ee39253404 The fdisk man page doesn't show correctly the usage possibilities of
fdisk.  It was missing the disk argument.

From: Andreas Schulz <ats@g386bsd.first.gmd.de>
1993-08-10 10:31:35 +00:00
root
f9a8e35555 New manual page system 1993-07-02 06:10:31 +00:00
rgrimes
5fba0401c2 Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00