mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-28 10:52:33 +00:00
96 lines
2.1 KiB
Plaintext
96 lines
2.1 KiB
Plaintext
NEW
|
||
PREFIX
|
||
AUTO 4,1
|
||
#!/bin/sh
|
||
#
|
||
# This script builds 140k Install Media Set
|
||
#
|
||
|
||
. makefuncs
|
||
CALL CS
|
||
CALL TBOX "miniboot (140K Floppy) Media Creator"
|
||
CALL PRINTXY 8 0 "You must have the correct 140K image mounted on /dev/s6d1"
|
||
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
|
||
ECHO
|
||
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\n"
|
||
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 "\n\nFormatting Destination..."
|
||
#should probably do a check here that right media is in drives
|
||
format -1 s6d1 a2osxinstall
|
||
format -1 s6d2 a2osxidisk2
|
||
ECHO "Making Directory Structure..."
|
||
md /a2osxinstall/bin
|
||
#md /a2osxinstall/drv
|
||
md /a2osxinstall/etc
|
||
md /a2osxinstall/lib
|
||
#md /a2osxinstall/root
|
||
md /a2osxinstall/sbin
|
||
md /a2osxinstall/sys
|
||
ECHO "Copying Files..."
|
||
FOR FILE IN (instbfiles)
|
||
cp -Y ${SRC}/${FILE} /a2osxinstall/${FILE}
|
||
NEXT
|
||
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /a2osxinstall/ProDOS
|
||
cp -Q -Y initinstall /a2osxinstall/etc/init
|
||
cp -Y installscript /a2osxinstall
|
||
ECHO "Welcome to A2osX!" > /a2osxinstall/etc/issue
|
||
ECHO >> /a2osxinstall/etc/issue
|
||
ECHO $IM >> /a2osxinstall/etc/issue
|
||
cp -Q tcpip.conf /a2osxinstall/etc/tcpip.conf
|
||
cp -Q profile /a2osxinstall/root/profile
|
||
ECHO "a2osxinstall Disk Created!"
|
||
MAN
|
||
TEXT /MAKE/USR/SHARE/MAKE/makeinstall
|