Files
graphene/Pal/ipc/linux/uninstall.sh

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