1: 2# $FreeBSD$ 3 4export BLOCKSIZE=K 5export PS1="Fixit# " 6export EDITOR="/mnt2/rescue/vi" 7export PAGER="/mnt2/usr/bin/more" 8export SCSI_MODES="/mnt2/usr/share/misc/scsi_modes" 9# the root MFS doesn't have /dev/nrsa0, pick a better default for mt(1) 10export TAPE=/mnt2/dev/nrsa0 11# make geom(8) utilities find their modules 12export GEOM_LIBRARY_PATH="/mnt2/lib/geom:/lib/geom" 13 14alias ls="ls -F" 15alias ll="ls -l" 16alias m="more -e" 17 18echo '+---------------------------------------------------------------+' 19echo '| You are now running from FreeBSD "fixit" media. |' 20echo '| ------------------------------------------------------------- |' 21echo "| When you're finished with this shell, please type exit. |" 22echo '| The fixit media is mounted as /mnt2. |' 23echo '| |' 24echo '| You might want to symlink /mnt/etc/*pwd.db and /mnt/etc/group |' 25echo '| to /etc after mounting a root filesystem from your disk. |' 26echo '| tar(1) will not restore all permissions correctly otherwise! |' 27echo '| |' 28echo '| In order to load kernel modules you might want to add the |' 29echo '| fixit media to the kern.module_path sysctl variable so that |' 30echo '| the kernel knows where to find them. |' 31echo '| |' 32echo '| Note: you can use the arrow keys to browse through the |' 33echo '| command history of this shell. |' 34echo '+---------------------------------------------------------------+' 35echo 36echo 'Good Luck!' 37echo 38 39# Make the arrow keys work; everybody will love this. 40set -o emacs 2>/dev/null 41 42cd / 43