#! /bin/sh echo "===============================" echo "" echo "IEEE 1394 installer script" echo "" echo "This script will install IEEE 1394 (firewire) modules and devices." echo "This script will only work when run as root." echo "" echo "It will set up the necessary devices and give all users" echo "permission to use them. This is fine for normal desktop users." echo "" echo "===============================" echo "" echo "If you want to run this script, type yes and hit Enter." echo "Otherwise, type no (or anything but 'yes') to exit." read word if test $word = "yes" then echo "installing ieee1394 modules and devices..." else echo "install CANCELLED cleanly, as you requested." exit fi if test -c /dev/raw1394 then echo "/dev/raw1394 already made..." else echo "making /dev/raw1394..." mknod -m 666 /dev/raw1394 c 171 0 fi if test -c /dev/video1394 then echo "/dev/video1394 already made..." else echo "making /dev/video1394..." mknod -m 666 /dev/video1394 c 171 16 fi if test -c /dev/dv1394 then echo "/dev/dv1394 already made..." else echo "making /dev/dv1394..." mknod -m 666 /dev/dv1394 c 171 32 fi echo "" echo "===============================" echo "" echo "adding any needed IEEE 1394 modules to /etc/rc.d/rc.modules..." echo "" temp=0 if ! cat /etc/rc.d/rc.modules | grep 1394 then echo "" >> /etc/rc.d/rc.modules echo "#==== IEEE 1394 support =====" >> /etc/rc.d/rc.modules echo "" >> /etc/rc.d/rc.modules temp=1 else echo "at least some modules already referred to..." fi if ! cat /etc/rc.d/rc.modules | grep raw1394 then echo "adding reference to raw1394..." echo "# raw1394 IEEE support" >> /etc/rc.d/rc.modules echo "/sbin/modprobe raw1394" >> /etc/rc.d/rc.modules temp=1 else echo "raw1394 already referred to..." fi if ! cat /etc/rc.d/rc.modules | grep video1394 then echo "adding reference to video1394..." echo "# video1394 IEEE support" >> /etc/rc.d/rc.modules echo "/sbin/modprobe video1394" >> /etc/rc.d/rc.modules temp=1 else echo "video1394 already referred to..." fi if ! cat /etc/rc.d/rc.modules | grep dv1394 then echo "adding reference to dv1394..." echo "# dv1394 IEEE support" >> /etc/rc.d/rc.modules echo "/sbin/modprobe dv1394" >> /etc/rc.d/rc.modules temp=1 else echo "dv1394 already referred to..." fi if test $temp -eq 1 then echo "" >> /etc/rc.d/rc.modules echo "#==== end IEEE 1394 support =====" >> /etc/rc.d/rc.modules fi echo "Installation should be complete." echo "Hit Enter and look for raw1394, video1394, and dv1394." read word lsmod .