f990d775b7
Signed-off-by: Cole Nelson <cole.nelson@amd.com> Change-Id: If06e8b7b57ad12f22c1970622d241a42083d575e
23 lines
327 B
Bash
Executable File
23 lines
327 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
rm_ldconfig() {
|
|
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build
|
|
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then
|
|
rm -f /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf
|
|
ldconfig
|
|
fi
|
|
}
|
|
|
|
case "$1" in
|
|
( remove )
|
|
rm_ldconfig
|
|
;;
|
|
( purge )
|
|
;;
|
|
( * )
|
|
exit 0
|
|
;;
|
|
esac
|