2019-10-20 00:03:29 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX
|
|
|
|
|
AUTO 4,1
|
2019-12-09 16:31:47 +00:00
|
|
|
|
#!/bin/sh
|
2019-10-20 00:03:29 +00:00
|
|
|
|
#
|
2019-12-06 02:16:55 +00:00
|
|
|
|
# This script makes a proper tdboot disk using the files
|
|
|
|
|
# found in a particular BUILD stored in /make/builds
|
2019-10-20 00:03:29 +00:00
|
|
|
|
#
|
2019-12-16 21:33:24 +00:00
|
|
|
|
. makefuncs
|
2019-10-20 00:03:29 +00:00
|
|
|
|
CALL CS
|
2019-12-06 02:16:55 +00:00
|
|
|
|
CALL TBOX " tdboot Media Creator"
|
2019-10-20 00:03:29 +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
|
2019-12-16 21:33:24 +00:00
|
|
|
|
SET SRC = "/MAKE/BUILDS/BUILD${B}"
|
2019-10-20 00:03:29 +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
|
|
|
|
|
ECHO "Formatting Destination..."
|
2019-12-16 21:33:24 +00:00
|
|
|
|
format -B 65535 s7d2 tdboot
|
2019-10-20 00:03:29 +00:00
|
|
|
|
ECHO "Making Directory Structure..."
|
2019-12-06 02:16:55 +00:00
|
|
|
|
md /tdboot/bin
|
|
|
|
|
md /tdboot/drv
|
|
|
|
|
md /tdboot/etc
|
|
|
|
|
md /tdboot/lib
|
|
|
|
|
md /tdboot/root
|
|
|
|
|
md /tdboot/sbin
|
|
|
|
|
md /tdboot/sys
|
|
|
|
|
md /tdboot/sys/km
|
|
|
|
|
md /tdboot/tmp
|
|
|
|
|
md /tdboot/var
|
|
|
|
|
md /tdboot/var/log
|
2019-10-20 00:03:29 +00:00
|
|
|
|
ECHO "Copying Files..."
|
2019-12-06 02:16:55 +00:00
|
|
|
|
FOR FILE IN (fullfiles)
|
2019-12-16 21:33:24 +00:00
|
|
|
|
cp -Q ${SRC}/${FILE} /tdboot/${FILE}
|
2019-10-20 00:03:29 +00:00
|
|
|
|
NEXT
|
2019-12-16 21:33:24 +00:00
|
|
|
|
cp -Q -Y ${SRC}/PRODOS.FX /tdboot/ProDOS
|
|
|
|
|
cp -Q -Y tdbootinit /tdboot/etc/init
|
2019-12-06 02:16:55 +00:00
|
|
|
|
ECHO "Welcome to A2osX!" > /tdboot/etc/issue
|
|
|
|
|
ECHO >> /tdboot/etc/issue
|
|
|
|
|
ECHO $IM >> /tdboot/etc/issue
|
2019-12-16 21:33:24 +00:00
|
|
|
|
cp -Q tcpip.conf /tdboot/etc/tcpip.conf
|
|
|
|
|
cp -Q profile /tdboot/root/profile
|
2019-12-06 02:16:55 +00:00
|
|
|
|
ECHO "tdboot Disk Created!"
|
2019-10-20 00:03:29 +00:00
|
|
|
|
MAN
|
|
|
|
|
TEXT /MAKE/USR/SHARE/MAKE/MAKETD
|