rc revision 62486
1#!/bin/sh 2# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc 62486 2000-07-03 22:31:08Z roger $ 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 ### 17set `df /` ; dev="/dev/$8" 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