1998-08-27 17:38:45 +00:00
|
|
|
#!/bin/sh
|
1999-06-14 15:45:56 +00:00
|
|
|
# $Id: update.en,v 1.2.2.1 1999/05/07 10:03:03 abial Exp $
|
1998-08-27 17:38:45 +00:00
|
|
|
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... "
|
1999-06-14 15:45:56 +00:00
|
|
|
kget /start_floppy/boot/kernel.conf
|
1998-08-27 17:38:45 +00:00
|
|
|
umount /dev/fd0a
|
|
|
|
cd ${pwd}
|
|
|
|
echo " Done."
|