AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

disk/misc/Mounter.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:Automatic mounter for removable media
Author: thor at einstein.math.tu-berlin.de
Uploader:thor einstein math tu-berlin de
Type:disk/misc
Architecture:m68k-amigaos
Date:1997-05-13
Download:disk/misc/Mounter.lha - View contents
Readme:disk/misc/Mounter.readme
Downloads:1008

_____________________________________________________________________________

                        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: Mounter >NIL: <NIL: oktagon.device 6 
RELOADCMD="OktagonMount" REMOVECMD="execute S:Remove" DELAY=5 PRI=-1

where "S:Remove" is a script that looks like this:

wait 5
assign ZIP: dismount


The "Run" command is used (and should be used like this) to lauch 
the "Mounter" process in background. This command line should go in your
startup sequence.


For the GVP SCSI controller, leave the "RELOADCMD" and "REMOVECMD" blank and
specify:

Run >NIL: <NIL: Mounter >NIL: <NIL: oktagon.device 6 
RETRYCMD="GVPSCSICtrl" MOUNTCMD="execute S:ZipMount" DELAY=5 PRI=-1

where "S:ZipMount" is this script:

SwitchReq off
GvpSCSICtrl -r
DiskChange ZIP:

A mount entry for the ZIP should be added to DEVS:DosDrivers.

SwitchReq is another tool that comes with this archive. It disables the
failure requesters.


Thomas,		May 1997


Contents of disk/misc/Mounter.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  995    1500  66.3% -lh5- a5d9 May 11  1997 Mounter
[generic]                 2385    5194  45.9% -lh5- 1eec May 11  1997 Mounter.readme
[generic]                  331     408  81.1% -lh5- 4e06 May 11  1997 SwitchReq
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files    3711    7102  52.3%            May 12  1997
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>