rc revision 91876
161120Sluigi#!/bin/sh 261120Sluigi 361120Sluigistty status '^T' 461120Sluigitrap : 2 561120Sluigitrap : 3 661120Sluigi 761120SluigiHOME=/; export HOME 891876SluigiPATH=/bin; export PATH 991876Sluigidev=`sysctl -n kern.bootdevname` 1091876Sluigi[ -z ${dev} ] && dev="/dev/fd0" 1161120Sluigi 1261120Sluigitrap "echo 'Reboot interrupted'; exit 1" 3 1391853Sluigiecho "Loading /etc from MFS:/fd ..." 1491853Sluigicp -Rp /fd/* / 1591853Sluigiecho "Updating /etc from ${dev}..." 1691853Sluigimount -o rdonly ${dev} /fd && \ 1791853Sluigi{ cd /fd; cp -Rp etc root / ; cd / ; umount /fd ; } 1861120Sluigicd /etc 1962486Sroger#rm files to stop overwrite warning 2075900Sjoefor i in *; do 2191853Sluigi [ -f $i.gz ] && rm $i 2275900Sjoedone 2361120Sluigigzip -d *.gz 2491853Sluigi. rc1 2561120Sluigiexit 0 26