Add postinst and prerm scripts for debian and rpm

This commit is contained in:
Chris Freehill
2019-01-09 10:28:01 -06:00
parent 64eec4673a
commit 253c82c93a
6 changed files with 52 additions and 0 deletions
Executable
+1
View File
@@ -0,0 +1 @@
echo -e "/opt/rocm/lib\n/opt/rocm/lib64" > /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf && ldconfig
Executable
+3
View File
@@ -0,0 +1,3 @@
if [ $1 -eq 0 ]; then
rm -f /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf && ldconfig
fi