mirror of
https://github.com/A2osX/A2osX.git
synced 2024-12-01 14:50:10 +00:00
62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
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 s6d2 A2osXNetInst
|
||
ECHO "Making Directory Structure..."
|
||
md /A2osXNetInst/bin
|
||
md /A2osXNetInst/drv
|
||
md /A2osXNetInst/etc
|
||
md /A2osXNetInst/lib
|
||
md /A2osXNetInst/sbin
|
||
md /A2osXNetInst/sys
|
||
ECHO "Copying Files..."
|
||
FOR FILE IN (netinstfiles)
|
||
cp -Y ${SRC}/${FILE} /A2osXNetInst/${FILE}
|
||
NEXT
|
||
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /A2osXNetInst/ProDOS
|
||
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
|