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 --- scullp/scullp_unload | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scullp/scullp_unload (limited to 'scullp/scullp_unload') diff --git a/scullp/scullp_unload b/scullp/scullp_unload new file mode 100644 index 0000000..adf5e2c --- /dev/null +++ b/scullp/scullp_unload @@ -0,0 +1,11 @@ +#!/bin/sh +module="scullp" +device="scullp" + +# 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