06ff62da61
Change-Id: I2486f38d398a508ead7d24f03d4cf7816d5c157c
20 lines
289 B
Bash
20 lines
289 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
rm_ldconfig() {
|
|
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/ld.so.conf.d/10-rocm-opencl.conf && ldconfig
|
|
rm -f /@CMAKE_INSTALL_SYSCONFDIR@/OpenCL/vendors/@OPENCL_AMD_ICD_FILE@
|
|
}
|
|
|
|
case "$1" in
|
|
purge)
|
|
;;
|
|
remove | upgrade )
|
|
rm_ldconfig
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|