examples/msr/msr_unload
author Florian Pose <fp@igh-essen.com>
Thu, 18 May 2006 12:35:47 +0000
changeset 246 0bf7c769de06
parent 232 f6594a07cdda
permissions -rwxr-xr-x
Changed license headers and added EtherCAT license notice.
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