summaryrefslogtreecommitdiffstats
path: root/simple/simple_unload
diff options
context:
space:
mode:
Diffstat (limited to 'simple/simple_unload')
-rw-r--r--simple/simple_unload14
1 files changed, 14 insertions, 0 deletions
diff --git a/simple/simple_unload b/simple/simple_unload
new file mode 100644
index 0000000..dca9421
--- /dev/null
+++ b/simple/simple_unload
@@ -0,0 +1,14 @@
+#!/bin/sh
+module="simple"
+device="simple"
+
+# invoke rmmod with all arguments we got
+/sbin/rmmod $module $* || exit 1
+
+# Remove stale nodes
+rm -f /dev/${device}[rn]
+
+
+
+
+