Files
Linux_Scull/IO_port/code/short_unload
zmr961006 40e9691c0a add
2017-04-19 12:04:17 +08:00

16 lines
165 B
Bash
Executable File

#!/bin/sh
module="short"
device="short"
# invoke rmmod with all arguments we got
/sbin/rmmod $module $* || exit 1
# Remove stale nodes
rm -f /dev/${device}0