mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
19 lines
305 B
Bash
Executable File
19 lines
305 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DIR=`readlink -f "${BASH_SOURCE[0]}"`
|
|
MOD=graphene-ipc
|
|
MODNAME=graphene_ipc
|
|
VER=0.0.1
|
|
|
|
/sbin/lsmod | grep -q $MODNAME
|
|
if [ $? -eq 0 ]; then
|
|
modprobe -r $MODNAME
|
|
fi
|
|
|
|
/usr/sbin/dkms status | grep -q $MOD
|
|
if [ $? -eq 0 ]; then
|
|
dkms remove $MOD/$VER --all
|
|
fi
|
|
|
|
rm -rf /usr/src/$MOD-$VER
|