Files
rocm-systems/projects/rocr-runtime/RPM/rpm_postun
T
Kent Russell c380c7b6cb spec: Only remove ldconf file if uninstalling
$1 is passed in during install/upgrade/uninstall. If this is an
uninstall, remove the ldconf file, otherwise leave it. In yum-based
systems, the uninstall from the old package is executed after the
post-install of the newer package, which will undo the ldconf work from
the newer package.

Change-Id: I1681cb3bc65f0bd802bce5703187ae5f4d3f3530


[ROCm/ROCR-Runtime commit: b629dd1888]
2018-08-03 07:33:26 -04:00

4 wiersze
87 B
Plaintext

if [ $1 -eq 0 ]; then
rm -f /etc/ld.so.conf.d/x86_64-libhsakmt.conf && ldconfig
fi