examples/msr/msr_unload
author Florian Pose <fp@igh-essen.com>
Tue, 26 Sep 2006 16:38:38 +0000
branchstable-1.1
changeset 1728 4cf9c3e9f0bd
parent 232 f6594a07cdda
permissions -rwxr-xr-x
MERGE trunk -r564:568 -> branches/stable-1.1 (doc, master output, atomic flag)
224
4828e5e419bf Renamed rt example to msr.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#!/bin/sh
232
f6594a07cdda MSR example finished.
Florian Pose <fp@igh-essen.com>
parents: 224
diff changeset
     2
module="ec_msr_sample"
224
4828e5e419bf Renamed rt example to msr.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
device="msr"
4828e5e419bf Renamed rt example to msr.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
4828e5e419bf Renamed rt example to msr.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
# invoke rmmod with all arguments we got
4828e5e419bf Renamed rt example to msr.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
/sbin/rmmod $module $* || exit 1
4828e5e419bf Renamed rt example to msr.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
4828e5e419bf Renamed rt example to msr.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
# Remove stale nodes
4828e5e419bf Renamed rt example to msr.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
rm -f /dev/${device} /dev/${device}0