File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 30
30
# configuration of the components and hence we want to handle the configuration
31
31
# in postinst script.
32
32
33
- DIR=@@ CMAKE_INSTALL_PREFIX@ @/xrt
33
+ DIR=@CMAKE_INSTALL_PREFIX@/xrt
34
34
35
35
# In case prerm is called after postinst on centos, make sure not to stop mpd
36
36
awk -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
38
38
fi
39
39
40
40
echo " 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
42
42
systemctl disable mpd > /dev/null 2>&1
43
43
systemctl stop mpd > /dev/null 2>&1
44
44
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ rm -rf /etc/systemd/system/msd.service
57
57
rm -rf /etc/systemd/system/mpd.service
58
58
systemctl daemon-reload
59
59
# 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
61
61
62
62
echo " Unloading old XRT Linux kernel modules"
63
63
rmmod xocl
@@ -82,7 +82,7 @@ echo "Cleaning up XMA..."
82
82
rm -f /tmp/xma_shm_db
83
83
84
84
echo " 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
87
87
88
88
exit 0
You can’t perform that action at this time.
0 commit comments