[comp.sys.amiga] Installing The ASDG Recoverable Ram Disk

perry@well.UUCP (Perry S. Kivolowitz) (01/23/87)

The mount command does not exist under 1.1. I wrote a replacement, however.
The rrd can work with 1.1 cli environment but the 1.1 workbench just isn't
ready to  deal with  ram disks. So...I'm  not posting the 1.1 glue program
since most people will have 1.2. Let me know if I am wrong.


I should mention that the first two lines of your startup-sequence
should be something like:

	mount vd0:
	cd vd0:

The second line could be any reference to the device vd0:.

Here's a sample startup-sequence:

mount vd0:
dir > nil: vd0:
if EXISTS vd0:c
	path vd0:c add
else
	makedir vd0:c
	copy df0:c vd0:c all
	path vd0:c add
endif
if EXISTS vd0:lib
	set LIB=vd0:lib
else
	makedir vd0:lib
	copy df0:lib vd0:lib all
endif
if EXISTS vd0:include
	set INCLUDE=vd0:include
else
	makedir vd0:include
	copy df0:include vd0:include all
	set INCLUDE=vd0:include
endif
set CCTEMP=vd0:
addbuffers df0: 16
addbuffers df1: 16
addbuffers df2: 16
stack 8192

Here's one for the 1.2 workbench environment:


mount vd0:
if EXISTS vd0:c
   assign c: vd0:c
   echo "Command directory running from of VD0:"
else
   copy df0: vd0: all
   assign c: vd0:c
endif
cd vd0:
path reset
if EXISTS vd0:system
   path vd0:system add
   echo "System directory running from of VD0:"
endif
if EXISTS vd0:s
   assign s: vd0:s
   echo "Script directory running from of VD0:"
endif
if EXISTS vd0:l
   assign l: vd0:l
   echo "System's l directory running out of VD0:"
endif
if EXISTS vd0:fonts
   assign fonts: vd0:fonts 
   echo "Fonts directory running out of VD0:"
endif
if EXISTS vd0:devs
   assign devs: vd0:devs
   echo "Device directory running out of VD0:"
endif
if EXISTS vd0:libs
   assign libs: vd0:libs
   echo "Libs directory running out of VD0:"
endif
echo "Workbench disk.  Release 1.2 version 33.44"
echo " "
echo "Use Preferences tool to set date"
addbuffers df0: 16
addbuffers df1: 16
BindDrivers
LoadWb
assign sys: vd0:
endcli > nil: