mirror of
https://github.com/opnsense/src.git
synced 2026-03-21 10:20:09 -04:00
23 lines
456 B
Bash
Executable file
23 lines
456 B
Bash
Executable file
#!/bin/sh
|
|
# $FreeBSD$
|
|
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/boot/kernel.conf
|
|
umount /dev/fd0a
|
|
cd ${pwd}
|
|
echo " Done."
|