Commit Graph

21 Commits

Author SHA1 Message Date
David E. O'Brien
6949461a18 Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456]. 2004-11-19 03:51:12 +00:00
Luigi Rizzo
6008a3d4b6 Upgrade the root partition mount to r/w before trying to write to it.
MFC after: 3 days
2002-11-17 20:19:34 +00:00
Luigi Rizzo
f106b4e132 Add entry for the "screen" program. 2002-07-14 14:17:28 +00:00
Dima Dorfman
b90faaf350 sysctl -w -> sysctl 2002-05-11 06:06:11 +00:00
Luigi Rizzo
4b70a96b46 Add a few popular entries. 2002-03-24 21:13:53 +00:00
Luigi Rizzo
45b51b4564 Use machdep.guessed_bootdev to guess the boot device. 2002-03-11 05:15:44 +00:00
Luigi Rizzo
5a9365040d The probable boot device is "machdep.guessed_bootdev". 2002-03-10 20:37:04 +00:00
Luigi Rizzo
62afeb55c9 Further cleanup: remove useless entries from PATH, and be prepared
to use kern.bootdevname (if available) to identify the boot device
for updating the configuration. Fallback to /dev/fd0 as before.
2002-03-08 12:43:57 +00:00
Luigi Rizzo
124c9fa3f4 Do not depend on "expr" for doing arithmetic, use the shell builtin functions
(picobsd might not have the command available).
2002-03-08 12:33:48 +00:00
Luigi Rizzo
9db97a0145 Unbreak "update" script, by doing a mkdir -p of the relevant
directories when writing to disk.

Use the (yet to be committed) sysctl variable kern.bootdevname
to derive the device name, fallback to /dev/fd0 if kern.bootdevname
is unset or not available.
2002-03-08 12:14:46 +00:00
Luigi Rizzo
2fd53e8815 Use a default of 25 lines for xterm. This only affects the behaviour
over a serial line, because the terminal negotiations using ssh/telnet
does the right thing anyways.
2002-03-08 12:10:13 +00:00
Luigi Rizzo
107a6eaf0a Major cleanup of PicoBSD startup scripts, which now should be
closer to doing "the right thing".

The structure is now the following:

  * /etc/rc (from MFS) loads the rest of /etc and /root from
    /fd and then from floppy (if present), then transfers control
    to /etc/rc1

  * /etc/rc1 loads defaults from /etc/rc.conf.defaults, tries to
    set the hostname basing on the MAC address of the first ethernet
    interface, and then sources /etc/rc.conf and /etc/rc.conf.local
    for local configurations

  * The rest of the startup process is then performed (rc.network and so on).

Everything except the initial /etc/rc (from MFS) can be overridden with
a local version loaded from floppy. But in most cases, you should only need
to customize the following files in /etc:

	rc.conf    rc.firewall    hosts

Previously there were a number of inconsistencies in the calling
between files, and also a lot of clutter in rc.conf and rc.firewall.
Also, "rc1" was called "rc" and would overwrite the initial /etc/rc
from MFS, making it really hard to figure out what was going on in
case of bugs.
2002-03-08 05:15:08 +00:00
Luigi Rizzo
9db35c8cc3 Add entry for xterm-color 2002-03-06 19:47:20 +00:00
Luigi Rizzo
72fb1b86f9 Add entries for "dumb" and "dialup" terminals, as the shell in HEAD
refuses to start if it does not find a matching entry for the terminal
type.

My impression is that this is a problem in the shell, because
at least on PicoBSD images, the shell itself coredumps.
Anyways, this is the quickest fix i can come up with.
2001-11-01 16:52:34 +00:00
Luigi Rizzo
a177be2c24 Use /dev/fd0 instead of /dev/fd0c for mounting the floppy.
This must have to do with the use of devfs in -CURRENT, but i
have no idea when the devfs is actually mounted (is it a
side effect of mount -t nonfs or what ?) and when /dev/fd0c becomes
available.
For the time being, let's use this hack. Once I understand how devfs
works, this can be reverted back to the previous value, and also the
part of the build script which creates device entries can be nuked.
This is for -current only.
2001-06-21 08:53:21 +00:00
Josef Karthauser
a795418197 MF4S: Syncronise with Luigi's work in -stable. 2001-04-24 07:46:35 +00:00
Luigi Rizzo
e5b68d5513 The magic for autodetecting the boot media does not work anymore
on STABLE or CURRENT.  Put the explicit name for the floppy.
2001-01-27 03:23:44 +00:00
Roger Hardiman
85ae82d6f6 remove rc and login.conf files prior to extraction of the new
rc and login.conf files from the /etc directory on the floppy.

This prevents the overwrite yes/no prompt from occuring in gzip.
(some PicoBSD disks use gzip and some use minigzip, so the gzip -f flag (force)
is not an option. minigzip has a different meaning for the -f flag.}
2000-07-03 22:31:08 +00:00
Roger Hardiman
3092789a18 Add a missing 'fi' from an if statement 2000-07-01 12:04:15 +00:00
Luigi Rizzo
1bcc7e80bf Move mfs-related files to a different subtree 2000-05-31 12:27:38 +00:00
Luigi Rizzo
f09a623ad9 Move mfs-related files to a new location 2000-05-31 12:25:39 +00:00