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
|
|
|
|
#
|
2021-03-17 21:31:13 +00:00
|
|
|
|
# This script makes a proper FULLBOOT disk using the files
|
2019-12-06 02:16:55 +00:00
|
|
|
|
# found in a particular build stored in /make/builds
|
2019-10-14 17:47:57 +00:00
|
|
|
|
#
|
2019-12-13 04:19:05 +00:00
|
|
|
|
. makefuncs
|
2019-10-14 17:47:57 +00:00
|
|
|
|
CALL CS
|
2021-03-17 21:31:13 +00:00
|
|
|
|
CALL TBOX " FULLBOOT 800 Media Creator"
|
2019-12-06 02:16:55 +00:00
|
|
|
|
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 ]
|
2021-04-15 20:44:05 +00:00
|
|
|
|
ECHO "\nYou did not enter any response.\nExiting\n"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
EXIT
|
|
|
|
|
FI
|
2019-12-13 04:19:05 +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
|
2021-04-15 20:44:05 +00:00
|
|
|
|
ECHO "\n\nValid BUILD not found.\nExiting\n"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
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 ]
|
2021-04-15 20:44:05 +00:00
|
|
|
|
ECHO "You did not enter any response.\nExiting\n"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
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:"
|
2019-12-13 04:19:05 +00:00
|
|
|
|
ECHO " 1) ProDOS 2.03tc"
|
|
|
|
|
ECHO " 2) ProDOS FX"
|
|
|
|
|
ECHO " 3) ProDOS FX Paked"
|
|
|
|
|
READ -P "Enter 1-3: " PDOS
|
2019-11-26 18:42:25 +00:00
|
|
|
|
IF [ -Z $PDOS ]
|
|
|
|
|
ECHO "You did not enter any response."
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO "Exiting"
|
|
|
|
|
EXIT
|
|
|
|
|
FI
|
|
|
|
|
SWITCH $PDOS
|
|
|
|
|
CASE 1
|
2019-12-13 04:19:05 +00:00
|
|
|
|
SET PDOSFILE = "${SRC}/PRODOS"
|
2019-11-26 18:42:25 +00:00
|
|
|
|
BREAK
|
|
|
|
|
CASE 2
|
2019-12-13 04:19:05 +00:00
|
|
|
|
SET PDOSFILE = "${SRC}/PRODOS.FX"
|
2019-11-26 18:42:25 +00:00
|
|
|
|
BREAK
|
|
|
|
|
CASE 3
|
2019-12-13 04:19:05 +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..."
|
2021-03-17 21:31:13 +00:00
|
|
|
|
format -B 1600 s7d2 FULLBOOT
|
2019-10-14 17:47:57 +00:00
|
|
|
|
ECHO "Making Directory Structure..."
|
2021-03-17 21:31:13 +00:00
|
|
|
|
md /FULLBOOT/bin
|
|
|
|
|
md /FULLBOOT/drv
|
|
|
|
|
md /FULLBOOT/etc
|
|
|
|
|
md /FULLBOOT/inc
|
|
|
|
|
md /FULLBOOT/lib
|
|
|
|
|
md /FULLBOOT/root
|
|
|
|
|
md /FULLBOOT/sbin
|
|
|
|
|
md /FULLBOOT/sys
|
|
|
|
|
md /FULLBOOT/sys/km
|
|
|
|
|
md /FULLBOOT/tmp
|
2021-04-15 20:44:05 +00:00
|
|
|
|
md /FULLBOOT/usr
|
|
|
|
|
md /FULLBOOT/usr/share
|
|
|
|
|
md /FULLBOOT/usr/share/adm
|
|
|
|
|
md /FULLBOOT/usr/share/extras
|
|
|
|
|
md /FULLBOOT/usr/share/help
|
|
|
|
|
md /FULLBOOT/usr/share/help/adm.help
|
|
|
|
|
md /FULLBOOT/usr/share/help/adm.help/enable.help
|
|
|
|
|
md /FULLBOOT/usr/share/help/csh.help
|
|
|
|
|
md /FULLBOOT/usr/share/help/sh.help
|
2021-03-17 21:31:13 +00:00
|
|
|
|
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)
|
2021-03-17 21:31:13 +00:00
|
|
|
|
cp ${SRC}/${FILE} /FULLBOOT/${FILE}
|
2019-10-14 17:47:57 +00:00
|
|
|
|
NEXT
|
2021-03-17 21:31:13 +00:00
|
|
|
|
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
|
2019-12-13 04:19:05 +00:00
|
|
|
|
IF [ $PDOS -eq 1 ]
|
|
|
|
|
ECHO Renaming VOL
|
2021-03-17 21:31:13 +00:00
|
|
|
|
REN /FULLBOOT FULLBOOT
|
2019-12-13 04:19:05 +00:00
|
|
|
|
FI
|
2021-04-15 20:44:05 +00:00
|
|
|
|
cp -q helloworld.s /FULLBOOT/root/helloworld.s
|
|
|
|
|
cp -q /MAKE/assets/PRODOS242/BASIC.SYSTEM /FULLBOOT/bin/Basic
|
|
|
|
|
cp -q /MAKE/SCASM3.SYSTEM /FULLBOOT/bin/SC3
|
|
|
|
|
cp -q /MAKE/assets/PRODOS242/COPYIIPLUS.8.4 /FULLBOOT/bin/CP2Plus
|
2021-03-17 21:31:13 +00:00
|
|
|
|
ECHO "FULLBOOT Disk Created!"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
MAN
|
|
|
|
|
TEXT /MAKE/USR/SHARE/MAKE/MAKEFULL
|