2019-05-01 17:46:30 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX
|
|
|
|
|
AUTO 4,1
|
2019-12-06 02:16:55 +00:00
|
|
|
|
#!/bin/sh
|
2019-10-08 03:05:45 +00:00
|
|
|
|
#
|
2021-03-13 16:33:36 +00:00
|
|
|
|
# This script makes a proper MINIBOOT (140K) disk using the files
|
2019-12-06 02:16:55 +00:00
|
|
|
|
# found in a particular BUILD stored in /make/builds
|
2019-10-08 03:05:45 +00:00
|
|
|
|
#
|
2019-12-12 03:37:19 +00:00
|
|
|
|
. makefuncs
|
2019-10-14 17:47:57 +00:00
|
|
|
|
CALL CS
|
2021-03-13 16:33:36 +00:00
|
|
|
|
CALL TBOX "MINIBOOT (140K Floppy) Media Creator"
|
2019-12-06 02:16:55 +00:00
|
|
|
|
CALL PRINTXY 8 0 "You must have the correct 140K image mounted on /dev/s6d1"
|
2019-10-14 17:47:57 +00:00
|
|
|
|
ECHO "\n"
|
2019-10-08 03:05:45 +00:00
|
|
|
|
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
|
2019-10-14 17:47:57 +00:00
|
|
|
|
ECHO
|
2019-10-08 03:05:45 +00:00
|
|
|
|
READ -P "WHICH BUILD NO: " B
|
|
|
|
|
IF [ -Z $B ]
|
|
|
|
|
ECHO "You did not enter any response."
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO "Exiting"
|
|
|
|
|
EXIT
|
|
|
|
|
FI
|
2019-12-12 03:37:19 +00:00
|
|
|
|
SET SRC = "/MAKE/BUILDS/BUILD${B}"
|
2019-10-08 03:05:45 +00:00
|
|
|
|
IF [ -D ${SRC} ]
|
|
|
|
|
ECHO "\n\nFound Valid BUILD\n"
|
|
|
|
|
ELSE
|
|
|
|
|
ECHO "\n\nValid BUILD not found."
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO "Exiting"
|
|
|
|
|
EXIT
|
|
|
|
|
FI
|
2019-10-14 17:47:57 +00:00
|
|
|
|
ECHO "Is this a (R)elease, (C)andidate or (S)table Build\n"
|
2019-10-08 03:05:45 +00:00
|
|
|
|
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-10-14 17:47:57 +00:00
|
|
|
|
ECHO "\n\nFormatting Destination..."
|
2021-03-13 16:33:36 +00:00
|
|
|
|
#format -1 s6d1 MINIBOOT
|
2019-10-09 02:34:14 +00:00
|
|
|
|
ECHO "Making Directory Structure..."
|
2021-03-13 16:33:36 +00:00
|
|
|
|
format s6d1 -1 MINIBOOT
|
|
|
|
|
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /MINIBOOT/ProDOS
|
|
|
|
|
cp -Q -Y ${SRC}/A2OSX.SYSTEM /MINIBOOT/A2OSX.SYSTEM
|
|
|
|
|
md /MINIBOOT/bin
|
|
|
|
|
md /MINIBOOT/drv
|
|
|
|
|
md /MINIBOOT/etc
|
|
|
|
|
md /MINIBOOT/lib
|
|
|
|
|
md /MINIBOOT/root
|
|
|
|
|
md /MINIBOOT/sbin
|
|
|
|
|
md /MINIBOOT/sys
|
2019-10-09 02:34:14 +00:00
|
|
|
|
ECHO "Copying Files..."
|
2019-12-06 02:16:55 +00:00
|
|
|
|
FOR FILE IN (minifiles)
|
2021-03-13 16:33:36 +00:00
|
|
|
|
cp -Q -Y ${SRC}/${FILE} /MINIBOOT/${FILE}
|
2019-10-14 17:47:57 +00:00
|
|
|
|
NEXT
|
2021-03-13 16:33:36 +00:00
|
|
|
|
cp -Q -Y ${SRC}/sys/kernel.PAKED /MINIBOOT/sys/kernel
|
|
|
|
|
cp -Q -Y initboot /MINIBOOT/etc/init
|
|
|
|
|
ECHO "Welcome to A2osX!" > /MINIBOOT/etc/issue
|
|
|
|
|
ECHO >> /MINIBOOT/etc/issue
|
|
|
|
|
ECHO $IM >> /MINIBOOT/etc/issue
|
|
|
|
|
cp -Q tcpip.conf /MINIBOOT/etc/tcpip.conf
|
|
|
|
|
cp -Q profile /MINIBOOT/root/profile
|
|
|
|
|
ECHO "MINIBOOT Disk Created!"
|
2019-05-01 17:46:30 +00:00
|
|
|
|
MAN
|
2019-10-24 14:44:59 +00:00
|
|
|
|
TEXT /MAKE/USR/SHARE/MAKE/MAKEMINI
|