mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-26 13:49:18 +00:00
136 lines
3.0 KiB
Plaintext
136 lines
3.0 KiB
Plaintext
NEW
|
||
PREFIX
|
||
AUTO 4,1
|
||
#!/BIN/SH
|
||
#
|
||
# This script makes a proper FULLBOOT disk using the files
|
||
# found in a particular BUILD stored in /MAKE/BUILDS
|
||
#
|
||
. MAKEFUNCS
|
||
CALL CS
|
||
CALL TBOX " FULLBOOT 800 Media Creator"
|
||
CALL PRINTXY 8 0 "You must have the correct image mounted on S7D2"
|
||
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
|
||
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"
|
||
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 "Which Prodos:"
|
||
ECHO " 1) Asset ProDOS 2.03tc"
|
||
ECHO " 2) Asset ProDOS FX"
|
||
ECHO " 3) Asset ProDOS FX Paked"
|
||
ECHO " 4) Build ProDOS 2.03tc"
|
||
ECHO " 5) Build ProDOS FX"
|
||
ECHO " 6) Build ProDOS FX Paked"
|
||
READ -P "Enter 1-6: " PDOS
|
||
IF [ -Z $PDOS ]
|
||
ECHO "You did not enter any response."
|
||
ECHO
|
||
ECHO "Exiting"
|
||
EXIT
|
||
FI
|
||
SWITCH $PDOS
|
||
CASE 1
|
||
SET PDOSFILE = "/MAKE/ASSETS/PDOS203TC/PRODOS"
|
||
BREAK
|
||
CASE 2
|
||
SET PDOSFILE = "/MAKE/ASSETS/PDOS203FX/PRODOS.FX"
|
||
BREAK
|
||
CASE 3
|
||
SET PDOSFILE = "/MAKE/ASSETS/PDOS203FX/PRODOS.FX.PAKED"
|
||
BREAK
|
||
CASE 4
|
||
SET PDOSFILE = "${SRC}/PRODOS"
|
||
BREAK
|
||
CASE 5
|
||
SET PDOSFILE = "${SRC}/PRODOS.FX"
|
||
BREAK
|
||
CASE 6
|
||
SET PDOSFILE = "${SRC}/PRODOS.FX.PAKED"
|
||
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 "Formatting Destination..."
|
||
FORMAT -B 1600 s7d2 fullboot
|
||
ECHO "Making Directory Structure..."
|
||
md /fullboot/bin
|
||
md /fullboot/drv
|
||
md /fullboot/etc
|
||
md /fullboot/lib
|
||
md /fullboot/root
|
||
md /fullboot/sbin
|
||
md /fullboot/sys
|
||
md /fullboot/sys/km
|
||
md /fullboot/tmp
|
||
md /fullboot/var
|
||
md /fullboot/var/log
|
||
ECHO "Copying Files..."
|
||
FOR FILE IN (FULLFILES)
|
||
CP -Q ${SRC}/${FILE} /fullboot/${FILE}
|
||
NEXT
|
||
CP -Q -Y $PDOSFILE /fullboot/ProDOS
|
||
CP -Q -Y INITBOOT /fullboot/etc/init
|
||
ECHO "Welcome to A2osX!" > /fullboot/etc/issue
|
||
ECHO >> /fullboot/etc/issue
|
||
ECHO $IM >> /fullboot/etc/issue
|
||
CP -Q TCPIP.CONF /fullboot/etc/tcpip.conf
|
||
CP -Q PROFILE /fullboot/root/profile
|
||
ECHO "FULLBOOT Disk Created!"
|
||
MAN
|
||
TEXT /MAKE/USR/SHARE/MAKE/MAKEFULL
|