Some code to implement the char device that will communicate with the daemon.
[vdi_driver.git] / src / driver / vdi_unload
blob7c48e349d95bac922480d4a204737d918f6c11b2
1 #!/bin/sh
2 module="vdi"
3 device="vdis"
5 # invoke rmmod with all arguments we got
6 /sbin/rmmod $module $* || exit 1
8 # Remove stale nodes
9 rm -f /dev/${device}0 /dev/${module}0