Short: Automatic mounter for removable media Author: thor@einstein.math.tu-berlin.de Uploader: thor einstein math tu-berlin de Type: disk/misc Architecture: m68k-amigaos _____________________________________________________________________________ The THOR-Software Licence This License applies to the computer programs known as "Mounter" and "SwitchReq". The "Program", below, refers to such program. The programs and files in this distribution are freely distributable under the restrictions stated below, but are also Copyright (c) Thomas Richter. Distribution of the Program by a commercial organization without written permission from the author to any third party is prohibited if any payment is made in connection with such distribution, whether directly (as in payment for a copy of the Program) or indirectly (as in payment for some service related to the Program, or payment for some product or service that includes a copy of the Program "without charge"; these are only examples, and not an exhaustive enumeration of prohibited activities). However, the following methods of distribution involving payment shall not in and of themselves be a violation of this restriction: (i) Posting the Program on a public access information storage and retrieval service for which a fee is received for retrieving information (such as an on-line service), provided that the fee is not content-dependent (i.e., the fee would be the same for retrieving the same volume of information consisting of random data). (ii) Distributing the Program on a CD-ROM, provided that the files containing the Program are reproduced entirely and verbatim on such CD-ROM, and provided further that all information on such CD-ROM be redistributable for non-commercial purposes without charge. Everything in this distribution must be kept together, in original and unmodified form. Limitations. THE PROGRAM IS PROVIDED TO YOU "AS IS," WITHOUT WARRANTY. THERE IS NO WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IF YOU DO NOT ACCEPT THIS LICENCE, YOU MUST DELETE ALL FILES CONTAINED IN THIS ARCHIVE. _____________________________________________________________________________ Purpose of this program: Sets up a task that checks periodically one device for a media change, and starts one of several commands. The mounting itself should be done by one program you got with your hardware or which is supplied by CBM. This is, for example, "OktagonMount" for the ALF/Oktagon controller and "GVPScsiCtrl" for the GVP scsi adapter. Synopsis: Mounter DEVICE/A,UNIT/A/N,FLAGS/N, RELOADCMD,REMOVECMD,RETRYCMD, MOUNTCMD,DELAY/N,PRI/N DEVICE: name of the device to check, i.e. "oktagon.device". UNIT: unit to check ("5" or "6" for the popular Iomega ZIP drives) FLAGS: flags value for OpenDevice, defaults to zero. RELOADCMD: a command used to mount a volume. This one gets executed each time a volume is inserted in the device. Should be something like "OktagonMount" or "GVPScsiCmp". REMOVECMD: a command used to remove an already mounted volume. Gets executed each time a volume is removed from the device. Could be used to dismount the handler, i.e. "assign ZIP: dismount" is a useful choice. RETRYCMD: a command used to check if the hardware is ready for operation. It gets executed if "Mounter" failed to open the device with OpenDevice(). This command should check the hardware or should try to load the hardware driver. MOUNTCMD: a command used to initialize the hardware if it is ready for operation. Gets called directly after "Mounter" was the first time successful to open the device. DELAY: Specifies the checking period in seconds. PRI: Specifies the priority of the "Mounter" process. Useful values are "0" or "-1". The precise use of this command relies on your hardware, so I can't give a general command line that works for all removable media. The following layout was proven to work relyable with the "oktagon" SCSI controller with a ZIP drive as unit 6: Run >NIL: NIL: NIL: NIL: