freebsd-nq/release/picobsd/net/lang/update.en
1999-01-14 23:23:19 +00:00

24 lines
500 B
Bash
Executable File

#!/bin/sh
# $Id: update.en,v 1.1.1.1 1998/08/27 17:38:43 abial Exp $
pwd=`pwd`
echo -n "Updating /etc contents on startup floppy... "
mount /dev/fd0a /start_floppy
if [ "X$?" != "X0" ]
then
echo ""
echo "Cannot mount the floppy read-write!"
echo "Check the write-protection..."
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/kernel.config
umount /dev/fd0a
cd ${pwd}
echo " Done."