2019-10-24 14:44:59 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX
|
|
|
|
|
AUTO 4,1
|
2019-12-06 02:16:55 +00:00
|
|
|
|
#!/bin/sh
|
2019-10-24 14:44:59 +00:00
|
|
|
|
#
|
2019-12-06 02:16:55 +00:00
|
|
|
|
# This script makes a proper debug (140K) disk using the files
|
|
|
|
|
# found in a particular BUILD stored in /make/builds
|
2019-10-24 14:44:59 +00:00
|
|
|
|
#
|
2019-12-12 03:37:19 +00:00
|
|
|
|
. makefuncs
|
2019-10-24 14:44:59 +00:00
|
|
|
|
CALL CS
|
2019-12-06 02:16:55 +00:00
|
|
|
|
CALL TBOX "debug (140K Floppy) Media Creator"
|
|
|
|
|
CALL PRINTXY 8 0 "You must have the correct 140K image mounted on /dev/s6d2"
|
2019-10-24 14:44:59 +00:00
|
|
|
|
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
|
2019-12-12 03:37:19 +00:00
|
|
|
|
SET SRC = "/MAKE/BUILDS/BUILD${B}"
|
2019-10-24 14:44:59 +00:00
|
|
|
|
IF [ -D ${SRC} ]
|
|
|
|
|
ECHO "\n\nFound Valid BUILD\n"
|
|
|
|
|
ELSE
|
|
|
|
|
ECHO "\n\nValid BUILD not found."
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO "Exiting"
|
|
|
|
|
EXIT
|
|
|
|
|
FI
|
|
|
|
|
SET IM = "DEBUG Build No. ${B}"
|
|
|
|
|
ECHO "\n\nFormatting Destination..."
|
2019-12-12 03:37:19 +00:00
|
|
|
|
format -1 s6d2 debug
|
2019-10-24 14:44:59 +00:00
|
|
|
|
ECHO "Making Directory Structure..."
|
2019-12-06 02:16:55 +00:00
|
|
|
|
md /debug/bin
|
|
|
|
|
md /debug/drv
|
|
|
|
|
md /debug/etc
|
|
|
|
|
md /debug/lib
|
|
|
|
|
md /debug/root
|
|
|
|
|
md /debug/sbin
|
|
|
|
|
md /debug/sys
|
2019-10-24 14:44:59 +00:00
|
|
|
|
ECHO "Copying Files..."
|
2019-12-06 02:16:55 +00:00
|
|
|
|
FOR FILE IN (debugfiles)
|
2019-12-12 03:37:19 +00:00
|
|
|
|
cp -Q ${SRC}/${FILE} /debug/${FILE}
|
2019-10-24 14:44:59 +00:00
|
|
|
|
NEXT
|
2019-12-12 03:37:19 +00:00
|
|
|
|
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /debug/ProDOS
|
|
|
|
|
cp -Q -Y debuginit /debug/etc/init
|
2019-12-06 02:16:55 +00:00
|
|
|
|
ECHO "Welcome to A2osX!" > /debug/etc/issue
|
|
|
|
|
ECHO >> /debug/etc/issue
|
|
|
|
|
ECHO $IM >> /debug/etc/issue
|
|
|
|
|
ECHO >> /debug/etc/issue
|
|
|
|
|
ECHO >> /debug/etc/issue
|
|
|
|
|
ECHO "This is the Special DEBUG BOOT DISK" >> /debug/etc/issue
|
|
|
|
|
ECHO >> /debug/etc/issue
|
2019-12-12 03:37:19 +00:00
|
|
|
|
cp -Q tcpip.conf /debug/etc/tcpip.conf
|
|
|
|
|
cp -Q debugprofile /debug/root/profile
|
2019-12-06 02:16:55 +00:00
|
|
|
|
ECHO "debug Disk Created!"
|
2019-10-24 14:44:59 +00:00
|
|
|
|
MAN
|
|
|
|
|
TEXT /MAKE/USR/SHARE/MAKE/MAKEDEBUG
|