examples/msr/msr_unload
author Florian Pose <fp@igh-essen.com>
Mon, 29 May 2006 07:45:28 +0000
changeset 263 aa6623e5d958
parent 232 f6594a07cdda
permissions -rwxr-xr-x
Updated TODO list.
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