examples/msr/msr_unload
author Florian Pose <fp@igh-essen.com>
Thu, 06 Jul 2006 08:39:48 +0000
changeset 296 967aaacf9b20
parent 232 f6594a07cdda
permissions -rwxr-xr-x
Avoided crashes on kernel 2.4 acc. to patch by M. Schwerin.
#!/bin/sh
module="ec_msr_sample"
device="msr"

# invoke rmmod with all arguments we got
/sbin/rmmod $module $* || exit 1

# Remove stale nodes
rm -f /dev/${device} /dev/${device}0