rc revision 71703
1#!/bin/sh 2# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc 71703 2001-01-27 03:23:44Z luigi $ 3# WARNING !!! We overwrite this file during execution with a new rc file. 4# Awful things happen if this file's size is > 1024B 5 6stty status '^T' 7trap : 2 8trap : 3 9 10HOME=/; export HOME 11PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin 12export PATH 13 14trap "echo 'Reboot interrupted'; exit 1" 3 15 16### Special setup for one floppy PICOBSD ### 17dev="/dev/fd0c" 18echo "Reading /etc from ${dev}..." 19mount -o rdonly ${dev} /mnt 20cd /mnt/etc ; cp -Rp . /etc/ 21cp -Rp /mnt/root / 22cd /etc 23#rm files to stop overwrite warning 24rm rc login.conf 25gzip -d *.gz 26pwd_mkdb -p ./master.passwd 27umount /mnt 28echo "Ok. (Now you can remove ${dev} if you like)" 29echo "" 30. rc 31exit 0 32