rc revision 91876
1#!/bin/sh 2 3stty status '^T' 4trap : 2 5trap : 3 6 7HOME=/; export HOME 8PATH=/bin; export PATH 9dev=`sysctl -n kern.bootdevname` 10[ -z ${dev} ] && dev="/dev/fd0" 11 12trap "echo 'Reboot interrupted'; exit 1" 3 13echo "Loading /etc from MFS:/fd ..." 14cp -Rp /fd/* / 15echo "Updating /etc from ${dev}..." 16mount -o rdonly ${dev} /fd && \ 17{ cd /fd; cp -Rp etc root / ; cd / ; umount /fd ; } 18cd /etc 19#rm files to stop overwrite warning 20for i in *; do 21 [ -f $i.gz ] && rm $i 22done 23gzip -d *.gz 24. rc1 25exit 0 26