blob: c6ec9da61be3217f6c1165a5ee8d8903b441a623 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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."
|