File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3030# configuration of the components and hence we want to handle the configuration
3131# in postinst script.
3232
33- DIR=@@ CMAKE_INSTALL_PREFIX@ @/xrt
33+ DIR=@CMAKE_INSTALL_PREFIX@/xrt
3434
3535# In case prerm is called after postinst on centos, make sure not to stop mpd
3636awk -F= ' $1=="ID" {print $2}' /etc/os-release | tr -d ' "' | awk ' {print tolower($1)}' | grep -Eq " ^rhel|^centos"
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ if [ $? -eq 0 ] && [ $1 -ge 1 ]; then
3838fi
3939
4040echo " Remove mpd plugin"
41- rm -rf @@ CMAKE_INSTALL_PREFIX@ @/xrt/lib/libmpd_plugin.so > /dev/null 2>&1
41+ rm -rf @CMAKE_INSTALL_PREFIX@/xrt/lib/libmpd_plugin.so > /dev/null 2>&1
4242systemctl disable mpd > /dev/null 2>&1
4343systemctl stop mpd > /dev/null 2>&1
4444
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ rm -rf /etc/systemd/system/msd.service
5757rm -rf /etc/systemd/system/mpd.service
5858systemctl daemon-reload
5959# Remove config file for MSD as well
60- @@ CMAKE_INSTALL_PREFIX@ @/xrt/bin/xbmgmt --legacy config --purge 2>&1 > /dev/null
60+ @CMAKE_INSTALL_PREFIX@/xrt/bin/xbmgmt --legacy config --purge 2>&1 > /dev/null
6161
6262echo " Unloading old XRT Linux kernel modules"
6363rmmod xocl
@@ -82,7 +82,7 @@ echo "Cleaning up XMA..."
8282rm -f /tmp/xma_shm_db
8383
8484echo " Cleaning up python..."
85- rm -f @@ CMAKE_INSTALL_PREFIX@ @/xrt/python/* .pyc
86- rm -f @@ CMAKE_INSTALL_PREFIX@ @/xrt/test/* .pyc
85+ rm -f @CMAKE_INSTALL_PREFIX@/xrt/python/* .pyc
86+ rm -f @CMAKE_INSTALL_PREFIX@/xrt/test/* .pyc
8787
8888exit 0
You can’t perform that action at this time.
0 commit comments