Updates to /usr/etc/rc to deal with the new cd probing logic; ast@'s new motd

This commit is contained in:
Ben Gras 2005-07-22 18:38:48 +00:00
parent 919cb00bbc
commit 4f59e540e1
2 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,11 @@
This minix is an internal release.
MINIX 3 is still under development and may contain bugs and other
imperfections. If you would like to help develop MINIX 3 further into a
rock solid, reliable operating system, please go to the official Website:
www.minix3.org
to see how you can help. That page also contains additional MINIX 3
software, documentation, and information about the MINIX community.
If you find a bug, please use the "Report a bug" link on that page.

9
etc/rc
View file

@ -58,13 +58,14 @@ start)
# If booting from CD, /usr has to be mounted readonly.
# Also, $usr won't be specified correctly in the
# fstab (the CD could be anywhere), so we decide
# where it is.
# where it is based on sysenv (set by FS when probing for CD).
if [ "$bootcd" = 1 ]
then
ramname="`/bin/sysenv ramimagedev_n`"
imagedev="`/bin/sysenv cdproberoot`"
usrdev="`expr $imagedev + 1`"
usr_roflag="-r"
usr="/dev/c0`echo $ramname | sed 's/.*\(d.\).*/\1/'`p2"
echo "Setting /usr to mount readonly from cd: $ramname -> $usr"
usr="`/bin/dev2name $usrdev`"
echo "Setting /usr to mount readonly from cd: $usrdev -> $usr"
fi
# Mount the /usr partition unless this is a single floppy Minix.