17063Sphk:
250479Speter# $FreeBSD$
37063Sphk
419571Sjoergexport BLOCKSIZE=K
519571Sjoergexport PS1="Fixit# "
6175537Skensmithexport EDITOR="/mnt2/rescue/vi"
7175537Skensmithexport PAGER="/mnt2/usr/bin/more"
823257Sjoergexport SCSI_MODES="/mnt2/usr/share/misc/scsi_modes"
945055Sjkh# the root MFS doesn't have /dev/nrsa0, pick a better default for mt(1)
1045055Sjkhexport TAPE=/mnt2/dev/nrsa0
11174371Slulf# make geom(8) utilities find their modules
12175986Slulfexport GEOM_LIBRARY_PATH="/mnt2/lib/geom:/lib/geom"
1319571Sjoerg
1419571Sjoergalias ls="ls -F"
1519571Sjoergalias ll="ls -l"
1619571Sjoergalias m="more -e"
1719571Sjoerg
1819571Sjoergecho '+---------------------------------------------------------------+'
1985691Sbrianecho '| You are now running from FreeBSD "fixit" media.               |'
2019571Sjoergecho '| ------------------------------------------------------------- |'
2119571Sjoergecho "| When you're finished with this shell, please type exit.       |"
2285691Sbrianecho '| The fixit media is mounted as /mnt2.                          |'
2319571Sjoergecho '|                                                               |'
2419571Sjoergecho '| You might want to symlink /mnt/etc/*pwd.db and /mnt/etc/group |'
2519571Sjoergecho '| to /etc after mounting a root filesystem from your disk.      |'
2619571Sjoergecho '| tar(1) will not restore all permissions correctly otherwise!  |'
2719999Sjoergecho '|                                                               |'
28214426Sdelphijecho '| In order to load kernel modules you might want to add the     |'
29214426Sdelphijecho '| fixit media to the kern.module_path sysctl variable so that   |'
30214426Sdelphijecho '| the kernel knows where to find them.                          |'
31214426Sdelphijecho '|                                                               |'
32134635Skeramidaecho '| Note: you can use the arrow keys to browse through the        |'
3319999Sjoergecho '| command history of this shell.                                |'
3419571Sjoergecho '+---------------------------------------------------------------+'
357063Sphkecho
367063Sphkecho 'Good Luck!'
377063Sphkecho
387063Sphk
3919571Sjoerg# Make the arrow keys work; everybody will love this.
4019571Sjoergset -o emacs 2>/dev/null
417063Sphk
4219571Sjoergcd /
43