mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-28 10:52:33 +00:00
140 lines
3.3 KiB
Plaintext
140 lines
3.3 KiB
Plaintext
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
|
||
CALL TBOX " FULLBOOT 800 Media Creator"
|
||
CALL PRINTXY 8 0 "You must have the correct image mounted on /dev/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 "\nYou did not enter any response.\nExiting\n"
|
||
EXIT
|
||
FI
|
||
SET SRC = "/MAKE/BUILDS/BUILD${B}"
|
||
IF [ -D ${SRC} ]
|
||
ECHO "\n\nFound Valid BUILD\n"
|
||
ELSE
|
||
ECHO "\n\nValid BUILD not found.\nExiting\n"
|
||
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.\nExiting\n"
|
||
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 "Which Prodos:"
|
||
ECHO " 1) ProDOS 2.03tc"
|
||
ECHO " 2) ProDOS FX"
|
||
ECHO " 3) ProDOS FX Paked"
|
||
READ -P "Enter 1-3: " PDOS
|
||
IF [ -Z $PDOS ]
|
||
ECHO "You did not enter any response."
|
||
ECHO
|
||
ECHO "Exiting"
|
||
EXIT
|
||
FI
|
||
SWITCH $PDOS
|
||
CASE 1
|
||
SET PDOSFILE = "${SRC}/PRODOS"
|
||
BREAK
|
||
CASE 2
|
||
SET PDOSFILE = "${SRC}/PRODOS.FX"
|
||
BREAK
|
||
CASE 3
|
||
SET PDOSFILE = "${SRC}/PRODOS.FX.PAKED"
|
||
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/inc
|
||
md /FULLBOOT/lib
|
||
md /FULLBOOT/root
|
||
md /FULLBOOT/sbin
|
||
md /FULLBOOT/sys
|
||
md /FULLBOOT/sys/km
|
||
md /FULLBOOT/tmp
|
||
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
|
||
md /FULLBOOT/var
|
||
md /FULLBOOT/var/log
|
||
ECHO "Copying Files..."
|
||
FOR FILE IN (fullfiles)
|
||
cp -q ${SRC}/${FILE} /FULLBOOT/${FILE}
|
||
NEXT
|
||
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
|
||
echo "#A2osX Build Verion" > /FULLBOOT/etc/version
|
||
echo "${B}" >> /FULLBOOT/etc/version
|
||
cp -Q tcpip.conf /FULLBOOT/etc/tcpip.conf
|
||
cp -Q profile /FULLBOOT/root/profile
|
||
IF [ $PDOS -eq 1 ]
|
||
ECHO Renaming VOL
|
||
REN /FULLBOOT FULLBOOT
|
||
FI
|
||
cp -q helloworld.s /FULLBOOT/root/helloworld.s
|
||
cp -q /MAKE/assets/Basic /FULLBOOT/bin/Basic
|
||
cp -q /MAKE/SCASM3.SYSTEM /FULLBOOT/bin/SC3
|
||
cp -q /MAKE/usr/share/adm/adm /FULLBOOT/bin/adm
|
||
cp -q /MAKE/usr/share/adm/help /FULLBOOT/bin/help
|
||
cp -q /MAKE/usr/share/adm/update /FULLBOOT/usr/share/adm/update
|
||
ECHO "FULLBOOT Disk Created!"
|
||
MAN
|
||
TEXT /MAKE/USR/SHARE/MAKE/MAKEFULL
|