2019-10-14 17:47:57 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX
|
|
|
|
|
AUTO 4,1
|
2019-12-09 16:31:47 +00:00
|
|
|
|
#!/bin/sh
|
2019-10-14 17:47:57 +00:00
|
|
|
|
#
|
2019-12-06 02:16:55 +00:00
|
|
|
|
# This script makes a proper fullboot disk using the files
|
|
|
|
|
# found in a particular build stored in /make/builds
|
2019-10-14 17:47:57 +00:00
|
|
|
|
#
|
|
|
|
|
. MAKEFUNCS
|
|
|
|
|
CALL CS
|
2019-12-06 02:16:55 +00:00
|
|
|
|
CALL TBOX " fullboot 800 Media Creator"
|
|
|
|
|
CALL PRINTXY 8 0 "You must have the correct image mounted on /dev/s7d2"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
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
|
2019-12-06 02:16:55 +00:00
|
|
|
|
SET SRC = "/make/builds/build${B}"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
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
|
2019-11-26 18:42:25 +00:00
|
|
|
|
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
|
2019-12-06 02:16:55 +00:00
|
|
|
|
SET PDOSFILE = "/make/assets/pdos203tc/prodos"
|
2019-11-26 18:42:25 +00:00
|
|
|
|
BREAK
|
|
|
|
|
CASE 2
|
2019-12-06 02:16:55 +00:00
|
|
|
|
SET PDOSFILE = "/make/assets/pdos203fx/prodos.fx"
|
2019-11-26 18:42:25 +00:00
|
|
|
|
BREAK
|
|
|
|
|
CASE 3
|
2019-12-06 02:16:55 +00:00
|
|
|
|
SET PDOSFILE = "/make/assets/pdos203fx/prodos.fx.paked"
|
2019-11-26 18:42:25 +00:00
|
|
|
|
BREAK
|
|
|
|
|
CASE 4
|
2019-12-06 02:16:55 +00:00
|
|
|
|
SET PDOSFILE = "${SRC}/prodos"
|
2019-11-26 18:42:25 +00:00
|
|
|
|
BREAK
|
|
|
|
|
CASE 5
|
2019-12-06 02:16:55 +00:00
|
|
|
|
SET PDOSFILE = "${SRC}/prodos.fx"
|
2019-11-26 18:42:25 +00:00
|
|
|
|
BREAK
|
|
|
|
|
CASE 6
|
2019-12-06 02:16:55 +00:00
|
|
|
|
SET PDOSFILE = "${SRC}/prodos.fx.paked"
|
2019-11-26 18:42:25 +00:00
|
|
|
|
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
|
2019-10-14 17:47:57 +00:00
|
|
|
|
ECHO "Formatting Destination..."
|
2019-12-01 02:33:17 +00:00
|
|
|
|
FORMAT -B 1600 s7d2 fullboot
|
2019-10-14 17:47:57 +00:00
|
|
|
|
ECHO "Making Directory Structure..."
|
2019-11-27 18:45:14 +00:00
|
|
|
|
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
|
2019-10-14 17:47:57 +00:00
|
|
|
|
ECHO "Copying Files..."
|
2019-12-06 02:16:55 +00:00
|
|
|
|
FOR FILE IN (fullfiles)
|
2019-11-26 18:42:25 +00:00
|
|
|
|
CP -Q ${SRC}/${FILE} /fullboot/${FILE}
|
2019-10-14 17:47:57 +00:00
|
|
|
|
NEXT
|
2019-11-26 18:42:25 +00:00
|
|
|
|
CP -Q -Y $PDOSFILE /fullboot/ProDOS
|
2019-12-06 02:16:55 +00:00
|
|
|
|
CP -Q -Y initboot /fullboot/etc/init
|
2019-11-26 18:42:25 +00:00
|
|
|
|
ECHO "Welcome to A2osX!" > /fullboot/etc/issue
|
|
|
|
|
ECHO >> /fullboot/etc/issue
|
|
|
|
|
ECHO $IM >> /fullboot/etc/issue
|
2019-12-06 02:16:55 +00:00
|
|
|
|
CP -Q tcpip.conf /fullboot/etc/tcpip.conf
|
|
|
|
|
CP -Q profile /fullboot/root/profile
|
|
|
|
|
ECHO "fullboot Disk Created!"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
MAN
|
|
|
|
|
TEXT /MAKE/USR/SHARE/MAKE/MAKEFULL
|