431a7071a0
- Clean-up packaging scripts. More consistent with RDC. - Remove all 'sudo' calls. all these scripts are to be ran by root. - Reduce scope of variables. - Remove unnecessary functions Change-Id: Ib90f8e66ef4eae24f73e940fff44f515e12233f5 Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
9 rader
297 B
Bash
Executable File
9 rader
297 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# second term originates from ENABLE_LDCONFIG = ON/OFF at package build
|
|
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-librocm_smi_lib.conf
|
|
ldconfig
|
|
fi
|