2019-10-14 17:47:57 +00:00
|
|
|
|
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
|
2019-10-24 14:44:59 +00:00
|
|
|
|
CALL TBOX " FULLBOOT 800 Media Creator"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
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 "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
|
2019-10-22 15:37:53 +00:00
|
|
|
|
MD /FULLBOOT/SYS/KM
|
2019-10-17 15:30:51 +00:00
|
|
|
|
MD /FULLBOOT/TMP
|
|
|
|
|
MD /FULLBOOT/VAR
|
|
|
|
|
MD /FULLBOOT/VAR/LOG
|
2019-10-14 17:47:57 +00:00
|
|
|
|
ECHO "Copying Files..."
|
2019-10-31 17:11:23 +00:00
|
|
|
|
FOR FILE IN (FULLFILES)
|
2019-10-14 17:47:57 +00:00
|
|
|
|
CP -Q ${SRC}/${FILE} /FULLBOOT/${FILE}
|
|
|
|
|
NEXT
|
2019-10-20 00:03:29 +00:00
|
|
|
|
CP -Q -Y /MAKE/ASSETS/PDOS203TC/PRODOS /FULLBOOT
|
2019-10-14 17:47:57 +00:00
|
|
|
|
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
|