046f2e9116
Include the upgrade operation check in the prerm and postun scripts in package. Signed-off-by: Saravanan Solaiyappan <saravanan.solaiyappan@amd.com> Change-Id: Ib95ea72f15bfbf4141b69b0a8ca4d3a71fe1c093
7 строки
276 B
Plaintext
7 строки
276 B
Plaintext
# 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-libhsakmt.conf
|
|
ldconfig
|
|
fi
|