summarylogtreecommitdiffstats
path: root/vtunerc-driver_kmod
diff options
context:
space:
mode:
authorTomasz Maciej Nowak2016-01-10 22:40:07 +0100
committerTomasz Maciej Nowak2016-01-10 22:40:07 +0100
commit60f842531b8444eafd12d689fc7944f0a953b66b (patch)
tree132ae977f3507469f1d0fd5a981745f645060eb0 /vtunerc-driver_kmod
downloadaur-60f842531b8444eafd12d689fc7944f0a953b66b.tar.gz
Initial commit
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 000000000000..ce75c5b931f2
--- /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