#!/bin/bash case "$1" in start) echo "Starting FireWire" /sbin/modprobe ohci1394 /sbin/modprobe sbp2 ;; stop) echo -n "Stopping FireWire..." /sbin/modprobe -r sbp2 /sbin/modprobe -r ohci1394 /sbin/modprobe -r ieee1394 echo "...you can remove device(s) now" ;; restart) echo "Restarting FireWire" /sbin/modprobe -r sbp2 /sbin/modprobe -r ohci1394 /sbin/modprobe -r ieee1394 /sbin/modprobe ohci1394 /sbin/modprobe sbp2 ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac