Files
Linux_Scull/IO_port/code/short_unload

16 lines
165 B
Plaintext
Raw Normal View History

2017-04-19 01:37:17 +08:00
#!/bin/sh
module="short"
device="short"
# invoke rmmod with all arguments we got
/sbin/rmmod $module $* || exit 1
# Remove stale nodes
2017-04-19 12:04:17 +08:00
rm -f /dev/${device}0
2017-04-19 01:37:17 +08:00