diff options
Diffstat (limited to 'scullv/scullv_unload')
-rw-r--r-- | scullv/scullv_unload | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scullv/scullv_unload b/scullv/scullv_unload new file mode 100644 index 0000000..13608e8 --- /dev/null +++ b/scullv/scullv_unload @@ -0,0 +1,11 @@ +#!/bin/sh +module="scullv" +device="scullv" + +# invoke rmmod with all arguments we got +/sbin/rmmod $module $* || exit 1 + +# remove nodes +rm -f /dev/${device}[0-3] /dev/${device} + +exit 0 |