File:  [MW Coherent from dump] / coherent / a / usr / bin / ramdisk
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

: /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.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.