1#!/bin/sh 2# $FreeBSD: releng/11.0/release/picobsd/mfs_tree/etc/rc 190761 2009-04-06 11:14:30Z luigi $ 3 4stty status '^T' 5trap : 2 6trap : 3 7 8HOME=/; export HOME 9PATH=/bin; export PATH 10dev=`sysctl -n machdep.guessed_bootdev` 11[ -c "${dev}" ] || dev="/dev/fd0" 12 13trap "echo 'Reboot interrupted'; exit 1" 3 14set `df /`; mount -u $8 / # upgrade mount to rw 15echo "Loading /etc from MFS:/fd ..." 16cp -Rp /fd/* / 17echo "Updating /etc from ${dev}..." 18mount -o rdonly ${dev} /fd && \ 19{ cd /fd; cp -Rp etc root / ; cd / ; umount /fd ; } 20cd /etc 21#rm files to stop overwrite warning 22for i in *; do 23 [ -f $i.gz ] && rm $i 24done 25gzip -d *.gz 26. /etc/rc1 27exit 0 28