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 --- short/short_unload | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 short/short_unload (limited to 'short/short_unload') diff --git a/short/short_unload b/short/short_unload new file mode 100644 index 0000000..7cf64dc --- /dev/null +++ b/short/short_unload @@ -0,0 +1,16 @@ +#!/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 + + + + + -- cgit v1.2.1-18-gbd029