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