#!/bin/sh ### Special setup for one floppy PICOBSD ### # WARNING !!! We overwrite this file during execution with a new rc file. # Awful things happen if this file's size is > 1024B echo "===> mfs_tree/etc/rc <===" stty status '^T' trap : 2 trap : 3 HOME=/; export HOME PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin export PATH trap "echo 'Reboot interrupted'; exit 1" 3 mount -o rdonly /dev/fla0a /fla cd /fla cp -Rp etc /; cp -Rp usr / cd / umount /fla mount -o rdonly /dev/fla0e /fla cd /fla cp -p *.conf /usr/local/etc/df cd / umount /fla mv /usr/lib/ld-elf.so.1 /usr/libexec cd /etc pwd_mkdb -p ./master.passwd . rc exit 0