head	1.11;
access;
symbols
	RELENG_8_4:1.11.0.2
	RELENG_9_1_0_RELEASE:1.10.4.1.4.2
	RELENG_9_1:1.10.4.1.0.4
	RELENG_9_1_BP:1.10.4.1
	RELENG_8_3_0_RELEASE:1.10.2.1.8.1
	RELENG_8_3:1.10.2.1.0.8
	RELENG_8_3_BP:1.10.2.1
	RELENG_9_0_0_RELEASE:1.10.4.1.2.1
	RELENG_9_0:1.10.4.1.0.2
	RELENG_9_0_BP:1.10.4.1
	RELENG_9:1.10.0.4
	RELENG_9_BP:1.10
	RELENG_7_4_0_RELEASE:1.9.24.1.6.1
	RELENG_8_2_0_RELEASE:1.10.2.1.6.1
	RELENG_7_4:1.9.24.1.0.6
	RELENG_7_4_BP:1.9.24.1
	RELENG_8_2:1.10.2.1.0.6
	RELENG_8_2_BP:1.10.2.1
	RELENG_8_1_0_RELEASE:1.10.2.1.4.1
	RELENG_8_1:1.10.2.1.0.4
	RELENG_8_1_BP:1.10.2.1
	RELENG_7_3_0_RELEASE:1.9.24.1.4.1
	RELENG_7_3:1.9.24.1.0.4
	RELENG_7_3_BP:1.9.24.1
	RELENG_8_0_0_RELEASE:1.10.2.1.2.1
	RELENG_8_0:1.10.2.1.0.2
	RELENG_8_0_BP:1.10.2.1
	RELENG_8:1.10.0.2
	RELENG_8_BP:1.10
	RELENG_7_2_0_RELEASE:1.9.24.1.2.1
	RELENG_7_2:1.9.24.1.0.2
	RELENG_7_2_BP:1.9.24.1
	RELENG_7_1_0_RELEASE:1.9.32.1
	RELENG_6_4_0_RELEASE:1.9.30.1
	RELENG_7_1:1.9.0.32
	RELENG_7_1_BP:1.9
	RELENG_6_4:1.9.0.30
	RELENG_6_4_BP:1.9
	RELENG_7_0_0_RELEASE:1.9
	RELENG_6_3_0_RELEASE:1.9
	RELENG_7_0:1.9.0.28
	RELENG_7_0_BP:1.9
	RELENG_6_3:1.9.0.26
	RELENG_6_3_BP:1.9
	RELENG_7:1.9.0.24
	RELENG_7_BP:1.9
	RELENG_6_2_0_RELEASE:1.9
	RELENG_6_2:1.9.0.22
	RELENG_6_2_BP:1.9
	RELENG_5_5_0_RELEASE:1.9
	RELENG_5_5:1.9.0.20
	RELENG_5_5_BP:1.9
	RELENG_6_1_0_RELEASE:1.9
	RELENG_6_1:1.9.0.18
	RELENG_6_1_BP:1.9
	RELENG_6_0_0_RELEASE:1.9
	RELENG_6_0:1.9.0.16
	RELENG_6_0_BP:1.9
	RELENG_6:1.9.0.14
	RELENG_6_BP:1.9
	RELENG_5_4_0_RELEASE:1.9
	RELENG_5_4:1.9.0.12
	RELENG_5_4_BP:1.9
	RELENG_4_11_0_RELEASE:1.2.2.8
	RELENG_4_11:1.2.2.8.0.8
	RELENG_4_11_BP:1.2.2.8
	RELENG_5_3_0_RELEASE:1.9
	RELENG_5_3:1.9.0.10
	RELENG_5_3_BP:1.9
	RELENG_5:1.9.0.8
	RELENG_5_BP:1.9
	RELENG_4_10_0_RELEASE:1.2.2.8
	RELENG_4_10:1.2.2.8.0.6
	RELENG_4_10_BP:1.2.2.8
	RELENG_5_2_1_RELEASE:1.9
	RELENG_5_2_0_RELEASE:1.9
	RELENG_5_2:1.9.0.6
	RELENG_5_2_BP:1.9
	RELENG_4_9_0_RELEASE:1.2.2.8
	RELENG_4_9:1.2.2.8.0.4
	RELENG_4_9_BP:1.2.2.8
	RELENG_5_1_0_RELEASE:1.9
	RELENG_5_1:1.9.0.4
	RELENG_5_1_BP:1.9
	RELENG_4_8_0_RELEASE:1.2.2.8
	RELENG_4_8:1.2.2.8.0.2
	RELENG_4_8_BP:1.2.2.8
	RELENG_5_0_0_RELEASE:1.9
	RELENG_5_0:1.9.0.2
	RELENG_5_0_BP:1.9
	RELENG_4_7_0_RELEASE:1.2.2.7
	RELENG_4_7:1.2.2.7.0.4
	RELENG_4_7_BP:1.2.2.7
	RELENG_4_6_2_RELEASE:1.2.2.7
	RELENG_4_6_1_RELEASE:1.2.2.7
	RELENG_4_6_0_RELEASE:1.2.2.7
	RELENG_4_6:1.2.2.7.0.2
	RELENG_4_6_BP:1.2.2.7
	RELENG_4_5_0_RELEASE:1.2.2.4
	RELENG_4_5:1.2.2.4.0.6
	RELENG_4_5_BP:1.2.2.4
	RELENG_4_4_0_RELEASE:1.2.2.4
	RELENG_4_4:1.2.2.4.0.4
	RELENG_4_4_BP:1.2.2.4
	RELENG_4_3_0_RELEASE:1.2.2.4
	RELENG_4_3:1.2.2.4.0.2
	RELENG_4_3_BP:1.2.2.4
	RELENG_4:1.2.0.2
	PRE_SMPNG:1.2
	RELENG_3_5_0_RELEASE:1.1.2.1
	RELENG_3:1.1.0.2;
locks; strict;
comment	@# @;


1.11
date	2012.11.17.01.50.17;	author svnexp;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2009.04.06.11.14.30;	author luigi;	state Exp;
branches
	1.10.2.1
	1.10.4.1;
next	1.9;

1.9
date	2002.11.17.20.19.34;	author luigi;	state Exp;
branches
	1.9.14.1
	1.9.24.1
	1.9.30.1
	1.9.32.1;
next	1.8;

1.8
date	2002.03.10.20.37.04;	author luigi;	state Exp;
branches;
next	1.7;

1.7
date	2002.03.08.12.43.57;	author luigi;	state Exp;
branches;
next	1.6;

1.6
date	2002.03.08.05.15.08;	author luigi;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.21.08.53.21;	author luigi;	state Exp;
branches;
next	1.4;

1.4
date	2001.04.24.07.46.27;	author joe;	state Exp;
branches;
next	1.3;

1.3
date	2001.01.27.03.23.43;	author luigi;	state Exp;
branches;
next	1.2;

1.2
date	2000.07.03.22.31.08;	author roger;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2000.05.31.12.27.38;	author luigi;	state Exp;
branches
	1.1.2.1;
next	;

1.11.2.1
date	2012.11.17.01.50.17;	author svnexp;	state dead;
branches;
next	1.11.2.2;

1.11.2.2
date	2013.03.28.13.03.30;	author svnexp;	state Exp;
branches;
next	;

1.10.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.10.2.1.2.1
	1.10.2.1.4.1
	1.10.2.1.6.1
	1.10.2.1.8.1;
next	1.10.2.2;

1.10.2.2
date	2012.11.17.10.36.14;	author svnexp;	state Exp;
branches;
next	;

1.10.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.10.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.10.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.10.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.10.2.1.8.2;

1.10.2.1.8.2
date	2012.11.17.08.24.55;	author svnexp;	state Exp;
branches;
next	;

1.10.4.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.10.4.1.2.1
	1.10.4.1.4.1;
next	1.10.4.2;

1.10.4.2
date	2012.11.17.11.36.30;	author svnexp;	state Exp;
branches;
next	;

1.10.4.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.10.4.1.2.2;

1.10.4.1.2.2
date	2012.11.17.08.36.29;	author svnexp;	state Exp;
branches;
next	;

1.10.4.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.10.4.1.4.2;

1.10.4.1.4.2
date	2012.11.17.08.47.20;	author svnexp;	state Exp;
branches;
next	;

1.9.14.1
date	2012.11.17.07.41.09;	author svnexp;	state Exp;
branches;
next	;

1.9.24.1
date	2009.04.06.11.21.14;	author luigi;	state Exp;
branches
	1.9.24.1.2.1
	1.9.24.1.4.1
	1.9.24.1.6.1;
next	1.9.24.2;

1.9.24.2
date	2012.11.17.08.03.28;	author svnexp;	state Exp;
branches;
next	;

1.9.24.1.2.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.9.24.1.4.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.9.24.1.6.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.9.24.1.6.2;

1.9.24.1.6.2
date	2012.11.17.08.16.53;	author svnexp;	state Exp;
branches;
next	;

1.9.30.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.9.32.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.2.2.1
date	2000.11.30.22.55.08;	author luigi;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	2001.02.14.23.35.11;	author luigi;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2001.02.20.00.10.07;	author luigi;	state Exp;
branches;
next	1.2.2.4;

1.2.2.4
date	2001.02.20.03.24.30;	author luigi;	state Exp;
branches;
next	1.2.2.5;

1.2.2.5
date	2002.03.08.05.17.26;	author luigi;	state Exp;
branches;
next	1.2.2.6;

1.2.2.6
date	2002.03.08.12.44.34;	author luigi;	state Exp;
branches;
next	1.2.2.7;

1.2.2.7
date	2002.03.13.18.15.51;	author luigi;	state Exp;
branches;
next	1.2.2.8;

1.2.2.8
date	2002.12.02.20.05.35;	author luigi;	state Exp;
branches;
next	1.2.2.9;

1.2.2.9
date	2012.11.17.07.24.22;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1
date	2000.05.31.12.36.30;	author luigi;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2000.07.01.04.20.07;	author dwhite;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2000.07.01.04.22.19;	author dwhite;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2000.07.01.21.31.01;	author dwhite;	state Exp;
branches;
next	1.1.2.5;

1.1.2.5
date	2000.07.03.22.33.37;	author roger;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Switching exporter and resync
@
text
@#!/bin/sh
# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $

stty status '^T'
trap : 2
trap : 3

HOME=/; export HOME
PATH=/bin; export PATH
dev=`sysctl -n machdep.guessed_bootdev`
[ -c "${dev}" ] || dev="/dev/fd0"

trap "echo 'Reboot interrupted'; exit 1" 3
set `df /`; mount -u $8 / # upgrade mount to rw
echo "Loading /etc from MFS:/fd ..."
cp -Rp /fd/* /
echo "Updating /etc from ${dev}..."
mount -o rdonly ${dev} /fd && \
{ cd /fd; cp -Rp etc root / ; cd / ; umount /fd ; }
cd /etc
#rm files to stop overwrite warning
for i in *; do
    [ -f $i.gz ] && rm $i
done
gzip -d *.gz
. /etc/rc1
exit 0
@


1.11.2.1
log
@file rc was added on branch RELENG_8_4 on 2013-03-28 13:03:30 +0000
@
text
@d1 27
@


1.11.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 27
#!/bin/sh
# $FreeBSD: releng/8.4/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $

stty status '^T'
trap : 2
trap : 3

HOME=/; export HOME
PATH=/bin; export PATH
dev=`sysctl -n machdep.guessed_bootdev`
[ -c "${dev}" ] || dev="/dev/fd0"

trap "echo 'Reboot interrupted'; exit 1" 3
set `df /`; mount -u $8 / # upgrade mount to rw
echo "Loading /etc from MFS:/fd ..."
cp -Rp /fd/* /
echo "Updating /etc from ${dev}..."
mount -o rdonly ${dev} /fd && \
{ cd /fd; cp -Rp etc root / ; cd / ; umount /fd ; }
cd /etc
#rm files to stop overwrite warning
for i in *; do
    [ -f $i.gz ] && rm $i
done
gzip -d *.gz
. /etc/rc1
exit 0
@


1.10
log
@SVN rev 190761 on 2009-04-06 11:14:30Z by luigi

provide the absolute path for /etc/rc1
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.10.4.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.10.4.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/9/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $
@


1.10.4.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.10.4.1.4.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $
@


1.10.4.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.10.4.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $
@


1.10.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.10.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $
@


1.10.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.10.2.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $
@


1.10.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.10.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.10.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.9
log
@Upgrade  the root partition mount to r/w before trying to write to it.

MFC after: 3 days
@
text
@d26 1
a26 1
. rc1
@


1.9.14.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/release/picobsd/mfs_tree/etc/rc 107026 2002-11-17 20:19:34Z luigi $
@


1.9.24.1
log
@SVN rev 190763 on 2009-04-06 11:21:14Z by luigi

put the absolute path for /etc/rc1

Approved by:	re (blanket on picobsd)
@
text
@d26 1
a26 1
. /etc/rc1
@


1.9.24.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/release/picobsd/mfs_tree/etc/rc 190763 2009-04-06 11:21:14Z luigi $
@


1.9.24.1.6.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.9.24.1.6.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/release/picobsd/mfs_tree/etc/rc 190763 2009-04-06 11:21:14Z luigi $
@


1.9.24.1.4.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.9.24.1.2.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.9.32.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.9.30.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.8
log
@The probable boot device is "machdep.guessed_bootdev".
@
text
@d2 1
d14 1
@


1.7
log
@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.
@
text
@d9 2
a10 2
dev=`sysctl -n kern.bootdevname`
[ -z ${dev} ] && dev="/dev/fd0"
@


1.6
log
@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.
@
text
@d8 3
a10 2
PATH=/sbin:/bin:/usr/sbin:/usr/bin; export PATH
dev="/dev/fd0"
@


1.5
log
@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.
@
text
@a1 4
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.4 2001/04/24 07:46:27 joe Exp $
### Special setup for one floppy PICOBSD ###
# WARNING !!! We overwrite this file during execution with a new rc file.
# Awful things happen if this file's size is > 1024B
d8 1
a8 2
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
export PATH
a9 1
cp -p /etc/rc /etc/rc.master
d12 5
a16 6
echo "Reading from MFS ..."
cd /fd; cp -Rp etc root / ; cd /
ls /dev
echo "Reading /etc from ${dev}..."
mount -o rdonly ${dev} /fd
cd /fd; cp -Rp etc root / ; cd / ; umount /fd
d20 1
a20 3
    if [ -f $i.gz ]; then
	rm $i
    fi
d23 1
a23 4
pwd_mkdb -p ./master.passwd
echo "Ok. (Now you can remove ${dev} if you like)"
echo ""
. rc
@


1.4
log
@MF4S: Syncronise with Luigi's work in -stable.
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.3 2001/01/27 03:23:43 luigi Exp $
d14 2
a15 1
dev="/dev/fd0c" #
d18 1
a18 1
# Copy from MFS version of the files, and then from FS version.
d20 1
@


1.3
log
@The magic for autodetecting the boot media does not work anymore
on STABLE or CURRENT.  Put the explicit name for the floppy.
@
text
@d2 2
a3 1
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.2 2000/07/03 22:31:08 roger Exp $
d14 1
d17 2
a18 3

### Special setup for one floppy PICOBSD ###
dev="/dev/fd0c"
d20 2
a21 3
mount -o rdonly ${dev} /mnt
cd /mnt/etc ; cp -Rp . /etc/
cp -Rp /mnt/root /
d24 5
a28 1
rm rc login.conf
a30 1
umount /mnt
@


1.2
log
@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.}
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.1.2.3 2000/07/01 04:22:19 dwhite Exp $
d17 1
a17 1
set `df /` ; dev="/dev/$8"
@


1.2.2.1
log
@Move here the files which only belong to the mfs tree
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.2 2000/07/03 22:31:08 roger Exp $
d17 1
a17 1
dev="/dev/fd0c"
@


1.2.2.2
log
@mount floppy over /fd, so that in case the mount fails we might
still find some useful files in that place.
Remove files which have a matching compressed one (or gunzip complains).
@
text
@d2 1
a2 1
# $FreeBSD$
d17 1
a17 1
dev="/dev/fd0c" #
d19 3
a21 2
mount -o rdonly ${dev} /fd
cd /fd ; cp -Rp * /
d24 1
a24 5
for i in *; do
    if [ -f $i.gz ]; then
	rm $i
    fi
done
d27 1
a27 1
umount /fd
@


1.2.2.3
log
@Do not try to copy everything from the floppy... In fact
the only thing to exclude is the kernel, but for the time being
let's assume that the useful stuff is just in /etc/ and /root/
@
text
@d2 1
a2 1
#
d20 1
a20 1
cd /fd ; cp -Rp etc root /
@


1.2.2.4
log
@Take initial files from either mfs or floppy.
@
text
@d2 1
a2 1
### Special setup for one floppy PICOBSD ###
a12 1
dev="/dev/fd0c" #
d15 3
a17 2
# Copy from MFS version of the files, and then from FS version.
cd /fd; cp -Rp etc root / ; cd /
d20 1
a20 1
cd /fd; cp -Rp etc root / ; cd / ; umount /fd
d30 1
@


1.2.2.5
log
@MFC: sync with the version in -current.
@
text
@d2 3
d11 3
a13 2
PATH=/sbin:/bin:/usr/sbin:/usr/bin; export PATH
dev="/dev/fd0c"
d16 5
a20 5
echo "Loading /etc from MFS:/fd ..."
cp -Rp /fd/* /
echo "Updating /etc from ${dev}..."
mount -o rdonly ${dev} /fd && \
{ cd /fd; cp -Rp etc root / ; cd / ; umount /fd ; }
d24 3
a26 1
    [ -f $i.gz ] && rm $i
d29 4
a32 1
. rc1
@


1.2.2.6
log
@MFC: sync with -current: 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.
@
text
@d8 2
a9 3
PATH=/bin; export PATH
dev=`sysctl -n kern.bootdevname`
[ -z ${dev} ] && dev="/dev/fd0"
@


1.2.2.7
log
@MFC: the variable with the info from the bootloader is [will be]
machdep.guessed_bootdev, the relevant kernel code will be committed in
a couple of days.
@
text
@d9 2
a10 2
dev=`sysctl -n machdep.guessed_bootdev`
[ -c "${dev}" ] || dev="/dev/fd0"
@


1.2.2.8
log
@MFC: Upgrade  the root partition mount to r/w before trying to write to it.
@
text
@a1 1
#$FreeBSD$
a12 1
set `df /`; mount -u $8 / # upgrade mount to rw
@


1.2.2.9
log
@Switch importer
@
text
@d2 1
a2 1
#$FreeBSD: stable/4/release/picobsd/mfs_tree/etc/rc 107523 2002-12-02 20:05:35Z luigi $
@


1.1
log
@Move mfs-related files to a different subtree
@
text
@d2 3
a4 3
# $FreeBSD$
# WARNING !!! We remove this file during execution (see EOF).
# Awful things happen if its size is > 1024B
d23 2
@


1.1.2.1
log
@MFC: move mfs-related files to a different subtree
@
text
@@


1.1.2.2
log
@Quiet gunzip of /etc files.

Submitted by:	Dennis Cartier <guy@@trigger.net>
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.1.2.1 2000/05/31 12:36:30 luigi Exp $
d21 1
d23 1
a23 1
gzip -df *.gz
@


1.1.2.3
log
@Revert part of previous patch: still copy ${MFS}/root to /root in case
there's some shell files in there we actually want.
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.1.2.2 2000/07/01 04:20:07 dwhite Exp $
a20 1
cp -Rp /mnt/root /
@


1.1.2.4
log
@Reverse rest of patch: -f isn't a valid option in minigzip.

Boot to the head applied to: dwhite, guy@@trigger.net
@
text
@d2 1
a2 1
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.1.2.3 2000/07/01 04:22:19 dwhite Exp $
d23 1
a23 1
gzip -d *.gz
@


1.1.2.5
log
@MFC. remove old rc and login.conf files prior to the gzip -d (extract)
to prevent overwrite yes/no warning messages
@
text
@d2 3
a4 3
# $FreeBSD: src/release/picobsd/mfs_tree/etc/rc,v 1.2 2000/07/03 22:31:08 roger Exp $
# WARNING !!! We overwrite this file during execution with a new rc file.
# Awful things happen if this file's size is > 1024B
a22 2
#rm files to stop overwrite warning
rm rc login.conf
@


