#!/bin/sh # Modified by Ke Chen to do installation the frame grabber driver module="hrt" device="hrt" mode="664" # Group: since distributions do it differently, look for wheel or use staff if grep -q '^staff:' /etc/group; then group="staff" else group="wheel" fi # Load the required modules by modprobe, videodev, v4l2_comman, # v4l1_compat (Not sure v4l1_compat is really needed) # These modules may or may not be needed depending how compile your kernel. #/sbin/modprobe videodev # invoke insmod with all arguments we got # and use a pathname, as insmod doesn't look in . by default /sbin/insmod ./$module.ko $* || exit 1