Files
Linux_Scull/IO_port/copy/short_unload
zmr961006 016ab7e4cc add
2017-04-19 01:37:17 +08:00

17 lines
237 B
Bash

#!/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-7] /dev/${device}[0-7][ps] \
/dev/${device}int /dev/${device}print