rc revision 75900
161120Sluigi#!/bin/sh 261120Sluigi# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc 75900 2001-04-24 07:46:35Z joe $ 375900Sjoe### Special setup for one floppy PICOBSD ### 462486Sroger# WARNING !!! We overwrite this file during execution with a new rc file. 562486Sroger# Awful things happen if this file's size is > 1024B 661120Sluigi 761120Sluigistty status '^T' 861120Sluigitrap : 2 961120Sluigitrap : 3 1061120Sluigi 1161120SluigiHOME=/; export HOME 1261120SluigiPATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin 1361120Sluigiexport PATH 1475900Sjoedev="/dev/fd0c" # 1561120Sluigi 1661120Sluigitrap "echo 'Reboot interrupted'; exit 1" 3 1775900Sjoe# Copy from MFS version of the files, and then from FS version. 1875900Sjoecd /fd; cp -Rp etc root / ; cd / 1961120Sluigiecho "Reading /etc from ${dev}..." 2075900Sjoemount -o rdonly ${dev} /fd 2175900Sjoecd /fd; cp -Rp etc root / ; cd / ; umount /fd 2261120Sluigicd /etc 2362486Sroger#rm files to stop overwrite warning 2475900Sjoefor i in *; do 2575900Sjoe if [ -f $i.gz ]; then 2675900Sjoe rm $i 2775900Sjoe fi 2875900Sjoedone 2961120Sluigigzip -d *.gz 3061120Sluigipwd_mkdb -p ./master.passwd 3161120Sluigiecho "Ok. (Now you can remove ${dev} if you like)" 3261120Sluigiecho "" 3361120Sluigi. rc 3461120Sluigiexit 0 35