blob: b5aae37508b602218d667c89f7b7235cc8b38664 (
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="/dev/$8"
echo -n "Updating /etc contents on ${dev}... "
mount ${dev} /mnt
if [ "X$?" != "X0" ] ; then
echo ""
echo "Cannot mount ${dev} read-write!"
exit 1
fi
cd /etc
rm *.db
rm passwd
cp -Rp . /mnt/etc/
pwd_mkdb master.passwd
echo " Done."
echo -n "Updating kernel parameters... "
kget /mnt/boot/kernel.conf
umount /mnt
cd ${pwd}
echo " Done."
|