linux_module_learn/examples/sculld/sculld_unload

12 lines
182 B
Plaintext
Raw Permalink Normal View History

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