diff options
author | Tomasz Maciej Nowak | 2016-01-10 22:40:07 +0100 |
---|---|---|
committer | Tomasz Maciej Nowak | 2016-01-10 22:40:07 +0100 |
commit | 60f842531b8444eafd12d689fc7944f0a953b66b (patch) | |
tree | 132ae977f3507469f1d0fd5a981745f645060eb0 /vtunerc-driver_kmod | |
download | aur-60f842531b8444eafd12d689fc7944f0a953b66b.tar.gz |
Initial commit
Diffstat (limited to 'vtunerc-driver_kmod')
-rwxr-xr-x | vtunerc-driver_kmod | 24 |
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 |