uninstall.sh 284 B

1234567891011121314151617
  1. #!/bin/bash
  2. DIR=`readlink -f "${BASH_SOURCE[0]}"`
  3. MOD=graphene-ipc
  4. VER=0.0.1
  5. /sbin/lsmod | grep -q graphene_ipc
  6. if [ $? -eq 0 ]; then
  7. modprobe -r graphene-ipc
  8. fi
  9. /usr/sbin/dkms status | grep -q $MOD
  10. if [ $? -eq 0 ]; then
  11. dkms remove $MOD/$VER --all
  12. fi
  13. rm -rf /usr/src/$MOD-$VER