rc revision 75900
1#!/bin/sh 2# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc 75900 2001-04-24 07:46:35Z joe $ 3### Special setup for one floppy PICOBSD ### 4# WARNING !!! We overwrite this file during execution with a new rc file. 5# Awful things happen if this file's size is > 1024B 6 7stty status '^T' 8trap : 2 9trap : 3 10 11HOME=/; export HOME 12PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin 13export PATH 14dev="/dev/fd0c" # 15 16trap "echo 'Reboot interrupted'; exit 1" 3 17# Copy from MFS version of the files, and then from FS version. 18cd /fd; cp -Rp etc root / ; cd / 19echo "Reading /etc from ${dev}..." 20mount -o rdonly ${dev} /fd 21cd /fd; cp -Rp etc root / ; cd / ; umount /fd 22cd /etc 23#rm files to stop overwrite warning 24for i in *; do 25 if [ -f $i.gz ]; then 26 rm $i 27 fi 28done 29gzip -d *.gz 30pwd_mkdb -p ./master.passwd 31echo "Ok. (Now you can remove ${dev} if you like)" 32echo "" 33. rc 34exit 0 35