A2osX/MAKE/MAKEMINI.txt
Patrick Kloepfer 5535ba4c99 Update media.
2021-03-13 11:33:36 -05:00

96 lines
2.1 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX
AUTO 4,1
#!/bin/sh
#
# This script makes a proper MINIBOOT (140K) disk using the files
# found in a particular BUILD stored in /make/builds
#
. makefuncs
CALL CS
CALL TBOX "MINIBOOT (140K Floppy) Media Creator"
CALL PRINTXY 8 0 "You must have the correct 140K image mounted on /dev/s6d1"
ECHO "\n"
READ -P "Do you want to proceed (Y/N)? " P
SWITCH $P
CASE Y
CASE y
ECHO
BREAK
DEFAULT
ECHO "\n\nExiting.\n"
EXIT
END
ECHO
READ -P "WHICH BUILD NO: " B
IF [ -Z $B ]
ECHO "You did not enter any response."
ECHO
ECHO "Exiting"
EXIT
FI
SET SRC = "/MAKE/BUILDS/BUILD${B}"
IF [ -D ${SRC} ]
ECHO "\n\nFound Valid BUILD\n"
ELSE
ECHO "\n\nValid BUILD not found."
ECHO
ECHO "Exiting"
EXIT
FI
ECHO "Is this a (R)elease, (C)andidate or (S)table Build\n"
READ -P "ENTER R C or S: " RCS
IF [ -Z $RCS ]
ECHO "You did not enter any response."
ECHO
ECHO "Exiting"
EXIT
FI
SWITCH $RCS
CASE r
CASE R
SET IM = "Release Build No. ${B}"
BREAK
CASE c
CASE C
SET IM = "Release Candidate Build No. ${B}"
BREAK
CASE s
CASE S
SET IM = "Stable Release Build No. ${B}"
BREAK
DEFAULT
ECHO "You did not enter a valid response."
ECHO "You must enter only one of the characters R C or S!"
ECHO
ECHO "Exiting"
EXIT
END
ECHO "\n\nFormatting Destination..."
#format -1 s6d1 MINIBOOT
ECHO "Making Directory Structure..."
format s6d1 -1 MINIBOOT
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /MINIBOOT/ProDOS
cp -Q -Y ${SRC}/A2OSX.SYSTEM /MINIBOOT/A2OSX.SYSTEM
md /MINIBOOT/bin
md /MINIBOOT/drv
md /MINIBOOT/etc
md /MINIBOOT/lib
md /MINIBOOT/root
md /MINIBOOT/sbin
md /MINIBOOT/sys
ECHO "Copying Files..."
FOR FILE IN (minifiles)
cp -Q -Y ${SRC}/${FILE} /MINIBOOT/${FILE}
NEXT
cp -Q -Y ${SRC}/sys/kernel.PAKED /MINIBOOT/sys/kernel
cp -Q -Y initboot /MINIBOOT/etc/init
ECHO "Welcome to A2osX!" > /MINIBOOT/etc/issue
ECHO >> /MINIBOOT/etc/issue
ECHO $IM >> /MINIBOOT/etc/issue
cp -Q tcpip.conf /MINIBOOT/etc/tcpip.conf
cp -Q profile /MINIBOOT/root/profile
ECHO "MINIBOOT Disk Created!"
MAN
TEXT /MAKE/USR/SHARE/MAKE/MAKEMINI