A2osX/MAKE/MAKENETINST.txt

64 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-02-12 12:27:27 +00:00
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
2021-04-15 20:44:05 +00:00
format -1 s6d1 A2osXNetInst
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /A2osXNetInst/ProDOS
cp -Q -Y ${SRC}/A2OSX.SYSTEM /A2osXNetInst/A2osX.SYSTEM
2021-02-12 12:27:27 +00:00
ECHO "Making Directory Structure..."
md /A2osXNetInst/bin
md /A2osXNetInst/drv
md /A2osXNetInst/etc
md /A2osXNetInst/lib
md /A2osXNetInst/sbin
md /A2osXNetInst/sys
2021-04-15 20:44:05 +00:00
cp -Q -Y ${SRC}/sys/kernel.PAKED /A2osXNetInst/sys/kernel
2021-02-12 12:27:27 +00:00
ECHO "Copying Files..."
FOR FILE IN (netinstfiles)
2021-04-15 20:44:05 +00:00
cp -Q -Y ${SRC}/${FILE} /A2osXNetInst/${FILE}
2021-02-12 12:27:27 +00:00
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