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
18 lines
685 B
Bash
Executable File
18 lines
685 B
Bash
Executable File
#!/bin/sh
|
|
set -x
|
|
|
|
mkdir -p /var/log/lte-log
|
|
echo "LTE demon-reload:" >> /var/log/lte-log/lte-systemctl.log
|
|
systemctl daemon-reload >> /var/log/lte-log/lte-systemctl.log 2>&1
|
|
echo "LTE-SOFTMODEM enable:" >> /var/log/lte-log/lte-systemctl.log
|
|
systemctl enable lte-softmodem.service >> /var/log/lte-log/lte-systemctl.log 2>&1
|
|
echo "LTE-SOFTMODEM start:" >> /var/log/lte-log/lte-systemctl.log
|
|
systemctl start lte-softmodem.service >> /var/log/lte-log/lte-systemctl.log 2>&1
|
|
# Add ldconfig
|
|
echo "Running ldconfig..." >> /var/log/lte-log/lte-systemctl.log
|
|
if command -v ldconfig >> /var/log/lte-log/lte-systemctl.log 2>&1; then
|
|
ldconfig
|
|
else
|
|
echo "Warning: ldconfig not found"
|
|
fi
|