2000-05-31 12:27:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
stty status '^T'
|
|
|
|
trap : 2
|
|
|
|
trap : 3
|
|
|
|
|
|
|
|
HOME=/; export HOME
|
2002-03-08 12:43:57 +00:00
|
|
|
PATH=/bin; export PATH
|
|
|
|
dev=`sysctl -n kern.bootdevname`
|
|
|
|
[ -z ${dev} ] && dev="/dev/fd0"
|
2000-05-31 12:27:38 +00:00
|
|
|
|
|
|
|
trap "echo 'Reboot interrupted'; exit 1" 3
|
2002-03-08 05:15:08 +00:00
|
|
|
echo "Loading /etc from MFS:/fd ..."
|
|
|
|
cp -Rp /fd/* /
|
|
|
|
echo "Updating /etc from ${dev}..."
|
|
|
|
mount -o rdonly ${dev} /fd && \
|
|
|
|
{ cd /fd; cp -Rp etc root / ; cd / ; umount /fd ; }
|
2000-05-31 12:27:38 +00:00
|
|
|
cd /etc
|
2000-07-03 22:31:08 +00:00
|
|
|
#rm files to stop overwrite warning
|
2001-04-24 07:46:35 +00:00
|
|
|
for i in *; do
|
2002-03-08 05:15:08 +00:00
|
|
|
[ -f $i.gz ] && rm $i
|
2001-04-24 07:46:35 +00:00
|
|
|
done
|
2000-05-31 12:27:38 +00:00
|
|
|
gzip -d *.gz
|
2002-03-08 05:15:08 +00:00
|
|
|
. rc1
|
2000-05-31 12:27:38 +00:00
|
|
|
exit 0
|