head	4.2;
access
	hal
	ljg
	fred
	udo
	nigel;
symbols
	r12:4.2;
locks; strict;
comment	@# @;


4.2
date	90.10.10.23.03.23;	author rcsadmin;	state Exp;
branches;
next	;


desc
@@


4.2
log
@This is the baseline version
@
text
@: /usr/bin/ramdisk 10/10/90
: Initialize RAM disk mounted on directory /ramdisk, which must exist.

: The following parameter must agree with the definition of /dev/ram0.
: The standard /dev/ram0 is 8 * 64KB = 512KB or 1024 blocks.
BLOCKS=1024

/etc/mkfs /dev/ram0 $BLOCKS
/etc/mount /dev/ram0 /ramdisk
chown bin /ramdisk
chgrp bin /ramdisk
su bin mkdir /ramdisk/bin /ramdisk/lib /ramdisk/tmp
su bin chmod 0777 /ramdisk/tmp

: To execute commands from the RAM disk,
: copy them to /ramdisk/bin as in the following example.
:	su bin cp -d /usr/bin/me /ramdisk/bin
: Also add /ramdisk/bin to the start of the PATH defined in /etc/profile
: so COHERENT will execute the RAM disk version when you use the command.
@
