From ab121f379a3cff458c90e6f480ba4bb68c8733dd Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Sat, 27 Nov 2010 07:49:17 +0100 Subject: Linux Device Drivers 3 examples --- scullc/scullc_unload | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scullc/scullc_unload (limited to 'scullc/scullc_unload') 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 -- cgit v1.2.1-18-gbd029