summarylogtreecommitdiffstats
path: root/vulkan-nouveau-git.install
blob: 4fa8c10518df5296f3bdbd7440025bd4fdf5c215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  [ ! -f /proc/kallsyms ] && exit 1

  grep -q "nouveau" /proc/modules || exit 0

  if ! grep -q "nouveau_exec_job_submit" /proc/kallsyms; then
    echo -e "\033[1;33mYour currently running kernel isn't compatible with NVK!"
    echo -e "Please switch to a kernel with the new uAPI patches applied or a 6.6+ kernel"
    echo -e "\033[1;34mA known working kernel package is included in the optional dependencies\033[0m"
  fi
}

post_upgrade() {
  post_install
}