a9ce8683eb
Depends-On: I58fdf1d0b4e864b5a61ffe8e335d430d424811ab Change-Id: I8e3e873fde99eaec79651ce6c3581870e9c2112d Signed-off-by: Cole Nelson <cole.nelson@amd.com>
24 línte
417 B
Bash
Comhad Infheidhmithe
24 línte
417 B
Bash
Comhad Infheidhmithe
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build
|
|
do_ldconfig() {
|
|
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then
|
|
echo @CPACK_PACKAGING_INSTALL_PREFIX@/lib > /etc/ld.so.conf.d/x86_64-libhsakmt.conf
|
|
ldconfig
|
|
fi
|
|
}
|
|
|
|
case "$1" in
|
|
( configure )
|
|
do_ldconfig
|
|
;;
|
|
( abort-upgrade | abort-remove | abort-deconfigure )
|
|
echo "$1"
|
|
;;
|
|
( * )
|
|
exit 0
|
|
;;
|
|
esac
|