Files
rocm-systems/DEBIAN/prerm
T
Freddy Paul fe1593dda5 RDC:Move rdc deamon to rocm path.
Installing files to standard path across each version and using
ldconfig has issues with side-by-side install.

Usage of RUNPATH/RPATH for ROCm to ensure all ROCm libraries are
picked without the need for ldconfig.

For RDC server to be picked up by systemctl, service config file
shall be a symlink from /lib/systemctl/system/rdc.service to
corresponding RDC file path in a given version of ROCm

For side-by-side install packages of RDC post install scripts
will be removed. Hence Use will have to set the symlink explicitly
for now.

Change-Id: I916da7cf132f0f9c667e2470fac2b0875e3db9d0
2020-12-04 14:43:06 -05:00

27 lines
321 B
Bash
Executable File

#!/bin/bash
stop_rdc() {
#stop RDC if running
systemctl stop rdc
return 0
}
reload_systemd() {
systemctl daemon-reload
return 0
}
set -e
case "$1" in
remove)
stop_rdc
unlink /lib/systemd/system/rdc.service
reload_systemd
;;
purge)
;;
*)
exit 0
;;
esac