rc revision 61120
1#!/bin/sh
2# $FreeBSD: head/release/picobsd/mfs_tree/etc/rc 61120 2000-05-31 12:27:38Z luigi $
3# WARNING !!! We remove this file during execution (see EOF).
4# Awful things happen if its 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
23gzip -d *.gz
24pwd_mkdb -p ./master.passwd
25umount /mnt
26echo "Ok. (Now you can remove ${dev} if you like)"
27echo ""
28. rc
29exit 0
30