rtl8812au-dkms.prerm 335 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. NAME=8812au
  3. VERSION=4.2.2
  4. set -e
  5. case "$1" in
  6. remove|upgrade|deconfigure)
  7. if [ "`dkms status -m $NAME`" ]; then
  8. dkms remove -m $NAME -v $VERSION --all
  9. fi
  10. ;;
  11. failed-upgrade)
  12. ;;
  13. *)
  14. echo "prerm called with unknown argument \`$1'" >&2
  15. exit 1
  16. ;;
  17. esac
  18. exit 0