Andy's setup

This commit is contained in:
Ben Gras 2005-08-09 11:16:15 +00:00
parent 08e0e1bcef
commit 4d17271298

View File

@ -65,8 +65,7 @@ esac
echo -n "\ echo -n "\
This is the MINIX installation script. This is the MINIX installation script.
Note 1: If the screen blanks suddenly then hit CTRL+F3 to select \"software Note 1: If the screen blanks, hit CTRL+F3 to select \"software scrolling\".
scrolling\".
Note 2: If things go wrong then hit DEL and start over. Note 2: If things go wrong then hit DEL and start over.
Note 3: Some questions have default answers, like this: [y] Note 3: Some questions have default answers, like this: [y]
Simply hit ENTER if you want to choose that answer. Simply hit ENTER if you want to choose that answer.
@ -74,9 +73,9 @@ Note 4: If you see a colon (:) then you should hit ENTER to continue.
:" :"
read ret read ret
echo " echo " --- Step 1: Select keyboard type ---------------------------------"
--- Step 1 --- Select keyboard type ---------------------------------
echo "
What type of keyboard do you have? You can choose one of: What type of keyboard do you have? You can choose one of:
" "
ls -C /usr/lib/keymaps | sed -e 's/\.map//g' -e 's/^/ /' ls -C /usr/lib/keymaps | sed -e 's/\.map//g' -e 's/^/ /'
@ -88,10 +87,10 @@ ok=""
while [ "$ok" = "" ] while [ "$ok" = "" ]
do do
echo " echo "
--- Step 2 --- Create a MINIX 3 partition --------------------------- --- Step 2: Select your expertise level ---------------------------
" "
echo -n "Now is the MINIX 3 partitioning step. Do you want to echo "Now you need to create a MINIX 3 partition on the hard disk."
follow the (A)utomatic or the e(X)pert mode? [A] " echo -n "Do you want to use (A)utomatic or the e(X)pert mode? [A] "
read ch read ch
case "$ch" in case "$ch" in
[Aa]*) auto="1"; ok="yes"; ;; [Aa]*) auto="1"; ok="yes"; ;;
@ -107,17 +106,13 @@ if [ -z "$auto" ]
then then
# Expert mode # Expert mode
echo -n " echo -n "
MINIX needs one primary partition of at about 210 MB for a full install MINIX needs one primary partition of about 250 MB for a full install.
with sources. (The full install also fits in about 180 MB, but it The maxium fill system currently supported is 4 GB.
needs more if fully recompiled. Add more space to taste.)
* MINIX currently only understands filesystems up to 4GB, so don't make If there is no free space on your disk then you have to choose an option:
it bigger. (1) Delete one or more partitions
(2) Allocate an existing partition to MINIX 3
If there is no free space on your disk then you have to back up one of the (3) Exit setup and shrink a partition using a different OS
other partitions, shrink, and reinstall. See the appropriate manuals of the
the operating systems currently installed. Restart your MINIX installation
after you have made space.
To make this partition you will be put in the editor \"part\". Follow the To make this partition you will be put in the editor \"part\". Follow the
advice under the '!' key to make a new partition of type MINIX. Do not advice under the '!' key to make a new partition of type MINIX. Do not
@ -178,9 +173,7 @@ hex2int()
done done
echo $i echo $i
} }
echo " echo " --- Step 8: Select your Ethernet chip ----------------------------"
--- Step 3 --- Select your Ethernet chip ----------------------------
"
# Ask user about networking # Ask user about networking
echo "" echo ""
@ -234,11 +227,9 @@ i86)
esac esac
blockdefault=8 blockdefault=8
echo " echo " --- Step 9: Select a disk block size -----------------------------"
--- Step 4 --- Select a disk block size -----------------------------
" echo "The default block size on the disk is $blockdefault KB.
echo "\
The default block size on the disk is $blockdefault KB.
If you have a small disk or small RAM you may want less If you have a small disk or small RAM you may want less
than $blockdefault KB. Please type 1, 2, or 4 for a smaller than $blockdefault KB. Please type 1, 2, or 4 for a smaller
block size (in KB), or hit ENTER for the default of block size (in KB), or hit ENTER for the default of
@ -257,13 +248,10 @@ do echo -n "Block size [$blockdefault KB]? "
done done
blocksizebytes="`expr $blocksize '*' 1024`" blocksizebytes="`expr $blocksize '*' 1024`"
echo " echo " --- Step 10: Allocate swap space ----------------------------------"
--- Step 5 --- Allocate swap space ----------------------------------
"
echo -n " echo -n "How much swap space would you like? Swapspace is only needed if this
How much swap space would you like? Swapspace is only needed if this system is memory starved. If you have 128 MB of memory or more, you
system is memory starved. If you have 256 MB of memory or more, you
probably don't need it. If you have less and want to run many programs probably don't need it. If you have less and want to run many programs
at once, I suggest setting it to the memory size. at once, I suggest setting it to the memory size.
@ -273,8 +261,11 @@ swapsize=
read swapsize read swapsize
test -z "$swapsize" && swapsize=$swapadv test -z "$swapsize" && swapsize=$swapadv
echo -n " echo "
You have created a partition named: /dev/$primary --- Step 11: Check all your choices ----------------------------------
"
echo -n "You have created a partition named: /dev/$primary
The following subpartitions are about to be created on /dev/$primary: The following subpartitions are about to be created on /dev/$primary:
Root subpartition: /dev/$root 16 MB Root subpartition: /dev/$root 16 MB
@ -303,9 +294,7 @@ else
swap= swap=
fi fi
echo " echo " --- Step 12: Wait for bad block detection ----------------------------"
--- Step 6 --- Copy files to hard disk ------------------------------
"
mkfs -B $blocksizebytes /dev/$usr mkfs -B $blocksizebytes /dev/$usr
echo "\ echo "\
@ -316,6 +305,8 @@ readall -b /dev/$usr | sh
sleep 2 sleep 2
trap 2 trap 2
echo " --- Step 13: Wait for files to be copied ------------------------------"
mount /dev/$usr /mnt || exit # Mount the intended /usr. mount /dev/$usr /mnt || exit # Mount the intended /usr.
cpdir -v /usr /mnt || exit # Copy the usr floppy. cpdir -v /usr /mnt || exit # Copy the usr floppy.