#!/bin/sh module="hrt" device="hrt" # invoke rmmod with all arguments we got /sbin/rmmod $module $* || exit 1 # Unload the modules: videodev, v4l2_common, v4l1_compat /sbin/modprobe -r videodev