#!/bin/bash # # firewire This shell script loads the modules for FireWire disks # # chkconfig: 2345 # description: This script loads the FireWire modules, \ # the interface-specific ohci1394, and by \ # dependency, the generic ieee1394. \ # RedHat's /etc/rc.local flatly refuses \ # to load these modules, hence this approach. # Source function library. . /etc/init.d/functions TEXTDOMAIN=initscripts PATH=/usr/bin:/bin:/usr/sbin:/sbin # See how we were called. case "$1" in start) # Load modules echo $"Loading modules: " /sbin/modprobe ohci1394 echo $"done" ;; stop) # Unload modules # (including autoloaded disk module sbp2, if present) echo $"Unloading modules: " /sbin/modprobe -r sbp2 /sbin/modprobe -r ohci1394 /sbin/modprobe -r ieee1394 echo $"done" ;; restart|reload) $0 stop $0 start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit 0