Files
rocm-systems/RPM/postun.in
T

9 خطوط
296 B
Bash

#!/bin/bash
# second term originates from ENABLE_LDCONFIG = ON/OFF at package build
2023-09-15 02:59:28 -05:00
if [ "$1" -le 1 ] && [ "@ENABLE_LDCONFIG@" == "ON" ]; then
# perform the below actions for rpm remove($1=0) or upgrade($1=1) operations
rm -f /etc/ld.so.conf.d/x86_64-libamd_smi_lib.conf
ldconfig
fi