#!/bin/sh

module="hmpdrv"
device="hmpdrv"

# invoke rmmod with all arguments we got
if grep $module /proc/devices; then
	/sbin/rmmod $module $*
fi

# remove stale nodes
rm -f /dev/$device
