linux_module_learn/examples/sbull/sbull_unload

15 lines
184 B
Plaintext
Raw Permalink Normal View History

2023-07-22 13:42:32 +08:00
#!/bin/sh
module="sbull"
device="sbull"
# invoke rmmod with all arguments we got
/sbin/rmmod $module $* || exit 1
# Remove stale nodes
rm -f /dev/${device}[a-d]* /dev/${device}