summarylogtreecommitdiffstats
path: root/vtunerc-driver_kmod
diff options
context:
space:
mode:
Diffstat (limited to 'vtunerc-driver_kmod')
-rwxr-xr-xvtunerc-driver_kmod24
1 files changed, 24 insertions, 0 deletions
diff --git a/vtunerc-driver_kmod b/vtunerc-driver_kmod
new file mode 100755
index 00000000000..ce75c5b931f
--- /dev/null
+++ b/vtunerc-driver_kmod
@@ -0,0 +1,24 @@
+#!/usr/bin/bash
+
+load() {
+ if [ `lsmod | grep -c vtunerc` -eq 0 ]; then
+ modprobe vtunerc
+ fi
+}
+
+unload() {
+ if [ -e /run/vtunerc*.pid ]; then
+ :
+ else
+ rmmod -f vtunerc
+ fi
+}
+
+case "$1" in
+ load)
+ load
+ ;;
+ unload)
+ unload
+ ;;
+esac