A2osX/MAKE/MAKENETINST.txt
Patrick Kloepfer f7b1fa848d
2021-04-15 16:44:05 -04:00

64 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX
AUTO 4,1
#!/bin/sh
#
# This script builds 140k Network Install Media
#
. makefuncs
CALL CS
CALL TBOX "A2osX NetInst (140K Floppy) Media Creator"
CALL PRINTXY 8 0 "You must have the correct 140K image mounted on /dev/s6d2"
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
SET IM = "A2osX NetInst Build No. ${B}"
ECHO "\n\nFormatting Destination..."
#should probably do a check here that right media is in drives
format -1 s6d1 A2osXNetInst
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /A2osXNetInst/ProDOS
cp -Q -Y ${SRC}/A2OSX.SYSTEM /A2osXNetInst/A2osX.SYSTEM
ECHO "Making Directory Structure..."
md /A2osXNetInst/bin
md /A2osXNetInst/drv
md /A2osXNetInst/etc
md /A2osXNetInst/lib
md /A2osXNetInst/sbin
md /A2osXNetInst/sys
cp -Q -Y ${SRC}/sys/kernel.PAKED /A2osXNetInst/sys/kernel
ECHO "Copying Files..."
FOR FILE IN (netinstfiles)
cp -Q -Y ${SRC}/${FILE} /A2osXNetInst/${FILE}
NEXT
cp -Q -Y initnetinst /A2osXNetInst/etc/init
cp -Y NetInstall /A2osXNetInst
cp -Q tcpip.conf /A2osXNetInst/etc/tcpip.conf
ECHO "A2osXNetInst Disk Created!"
MAN
TEXT /MAKE/USR/SHARE/MAKE/makenetinst