123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #!/bin/sh
- #
- # ieee1394 1.00 2000/09/07 21:02:09 (Albrecht Dreß)
- #
- # Initialize or shutdown a IEEE1394/FireWire device
- #
- # The first argument should be either 'start' or 'stop'. The second
- # argument is the base name for the device.
- #
- # There is not very much to do for this script...
- #
- if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi
- # Get device attributes
- get_info $DEVICE
- # Load site-specific settings
- ADDRESS="$SCHEME,$SOCKET,$INSTANCE"
- . $0.opts
- case "$ACTION" in
- 'start')
- if is_true $LOAD_1394RAW ; then
- modprobe raw1394
- fi
- ;;
- 'check')
- is_true $NO_CHECK && exit 0
- ;;
- 'cksum')
- chk_simple "$NEW_SCHEME,$SOCKET,$INSTANCE" || exit 1
- ;;
-
- 'stop')
- if is_true $LOAD_1394RAW ; then
- modprobe -r raw1394
- fi
- ;;
- 'suspend')
- ;;
- 'resume')
- ;;
- *)
- usage
- ;;
- esac
- exit 0
|