freebsd-nq/release/picobsd/floppy.tree/etc/update
Doug White 223b633217 Commit PicoBSD mega-patch:
. Bring PicoBSD up to date with -CURRENT reality.
. Make PicoBSD smart and not spam /dev/vn0 and /mnt.  Now it uses the first
  unused vn device and creates a temporary mountpoint in /tmp.
. Miscellaneous build cleanups and optimizations.

Unfortunately the bridge, isp, and router floppies are too big and need
the axe treatment.  The install floppy needs updating to -CURRENT. Dial and
net build and (appear to) run OK.  I will be adressing these in the
near future (unless someone beats me to it :-) ).

PR:		misc/17737
Submitted by:	Omachonu Ogali <oogali@intranova.net>
2000-04-25 19:00:08 +00:00

23 lines
430 B
Bash
Executable File

#!/bin/sh
# $FreeBSD$
pwd=`pwd`
set `df /` ; dev="$8"
echo -n "Updating /etc contents on ${dev}... "
mount ${dev} /start_floppy
if [ "X$?" != "X0" ] ; then
echo ""
echo "Cannot mount ${dev} read-write!"
exit 1
fi
cd /etc
rm *.db
rm passwd
cp -Rp . /start_floppy/etc/
pwd_mkdb master.passwd
echo " Done."
echo -n "Updating kernel parameters... "
kget /start_floppy/boot/kernel.conf
umount /start_floppy
cd ${pwd}
echo " Done."