Files
openairinterface5g/tools/packages/systemd_scripts/oai-nr/prerm
T
calvin_peyron 26d24dbd0b Create Debian and RPM packages from CMakeLists
Packages must have a name, a version, a section, an architecture, a maintainer, a description (long and summary), dependencies
Shared libraries must be stripped, have soversion, version (debug symbols are found in separate packages), since MODULE is used instead of SHARED it works as a plugin library which is opened using dlopen-like functionality, see:  https://cmake.org/cmake/help/latest/command/add_library.html
Packages must have postin and postun scripts
Since it is not recommended to modify CMAKE_EXE_LINKER_FLAGS, cmake's path variables are used : https://discourse.cmake.org/t/how-do-i-replace-the-compiler-options-for-one-target/7815/5
2026-01-28 11:36:34 +01:00

20 lines
832 B
Bash
Executable File

#!/bin/sh
set -x
mkdir -p /var/log/nr-log
echo "NR-CUUP stop:" >> /var/log/nr-log/nr-systemctl.log
systemctl stop nr-cuup.service >> /var/log/nr-log/nr-systemctl.log 2>&1
echo "NR-CUUP disable:" >> /var/log/nr-log/nr-systemctl.log
systemctl disable nr-cuup.service >> /var/log/nr-log/nr-systemctl.log 2>&1
echo "NR-SOFTMODEM stop:" >> /var/log/nr-log/nr-systemctl.log
systemctl stop nr-softmodem.service >> /var/log/nr-log/nr-systemctl.log 2>&1
echo "NR-SOFTMODEM disable:" >> /var/log/nr-log/nr-systemctl.log
systemctl disable nr-softmodem.service >> /var/log/nr-log/nr-systemctl.log 2>&1
# Then update library cache
echo "Running ldconfig after uninstall..." >> /var/log/nr-log/nr-systemctl.log
if command -v ldconfig >> /var/log/nr-log/nr-systemctl.log 2>&1; then
ldconfig
else
echo "Warning: ldconfig not found"
fi