ieee1394 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. #
  3. # ieee1394 1.00 2000/09/07 21:02:09 (Albrecht Dreß)
  4. #
  5. # Initialize or shutdown a IEEE1394/FireWire device
  6. #
  7. # The first argument should be either 'start' or 'stop'. The second
  8. # argument is the base name for the device.
  9. #
  10. # There is not very much to do for this script...
  11. #
  12. if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi
  13. # Get device attributes
  14. get_info $DEVICE
  15. # Load site-specific settings
  16. ADDRESS="$SCHEME,$SOCKET,$INSTANCE"
  17. . $0.opts
  18. case "$ACTION" in
  19. 'start')
  20. if is_true $LOAD_1394RAW ; then
  21. modprobe raw1394
  22. fi
  23. ;;
  24. 'check')
  25. is_true $NO_CHECK && exit 0
  26. ;;
  27. 'cksum')
  28. chk_simple "$NEW_SCHEME,$SOCKET,$INSTANCE" || exit 1
  29. ;;
  30. 'stop')
  31. if is_true $LOAD_1394RAW ; then
  32. modprobe -r raw1394
  33. fi
  34. ;;
  35. 'suspend')
  36. ;;
  37. 'resume')
  38. ;;
  39. *)
  40. usage
  41. ;;
  42. esac
  43. exit 0