1#!/bin/sh 2 3# 4# Note: The adapter shell var must updated in order to reflect your actual hardware. 5# The current value "friq" is the right value for the FreeCom PP adapter. 6# See paride documentation for the list of other drivers. 7# 8adapter=friq 9 10case "$1" in 11 12'start') 13 echo "Starting Parallel Port IDE/ATAPI" 14 modprobe paride 15 modprobe "$adapter" 16# modprobe pg 17# modprobe pg verbose=2 drive0=0x378,0,0,-1,-1,0 18 modprobe pg verbose=0 drive0=0x378,0,0,-1,-1,0 19 ;; 20 21'stop') 22 echo "Stopping Parallel Port IDE/ATAPI" 23 rmmod pg 24 rmmod "$adapter" 25 rmmod paride 26 ;; 27 28*) 29 echo "Usage: rc.pp start|stop" 30esac 31 32exit 33 34############################################################################### 35When you load pg, you need to specify some parameters like: 36 37 drive0=0x378,0,0,4,0,0 38 39The parameters are: 40 41 <prt>,<pro>,<uni>,<mod>,<slv>,<dly> 42 43 Where, 44 45 <prt> is the base of the parallel port address for 46 the corresponding drive. (required) 47 48 <pro> is the protocol number for the adapter that 49 supports this drive. These numbers are 50 logged by 'paride' when the protocol modules 51 are initialised. (0 if not given) 52 53 <uni> for those adapters that support chained 54 devices, this is the unit selector for the 55 chain of devices on the given port. It should 56 be zero for devices that don't support chaining. 57 (0 if not given) 58 59 <mod> this can be -1 to choose the best mode, or one 60 of the mode numbers supported by the adapter. 61 (-1 if not given) 62 63 <slv> ATAPI devices can be jumpered to master or slave. 64 Set this to 0 to choose the master drive, 1 to 65 choose the slave, -1 (the default) to choose the 66 first drive found. 67 68 <dly> some parallel ports require the driver to 69 go more slowly. -1 sets a default value that 70 should work with the chosen protocol. Otherwise, 71 set this to a small integer, the larger it is 72 the slower the port i/o. In some cases, setting 73 this to zero will speed up the device. (default -1) 74 75EPP mode is best. Your BIOS may not give you that option, unfortunately. 76What options does it support ? 77