sspatch: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-10-25 22:13:59 +02:00
parent 986ab589e6
commit 6fb653cab3
8 changed files with 10 additions and 5 deletions

View File

@ -22,7 +22,6 @@ function copy_file() {
echo "sspatch: ${file} not found, skipping" echo "sspatch: ${file} not found, skipping"
return 0 return 0
else else
rm -f "${ss_lic_patched}"
echo "sspatch: ${file} not found, aborting" echo "sspatch: ${file} not found, aborting"
exit 1 exit 1
fi fi
@ -31,7 +30,6 @@ function copy_file() {
SSPATH="/var/packages/SurveillanceStation/target" SSPATH="/var/packages/SurveillanceStation/target"
PATCHPATH="/usr/arc" PATCHPATH="/usr/arc"
ss_lic_patched="${PATCHPATH}/ss_license.patched"
if [ -d "${SSPATH}" ]; then if [ -d "${SSPATH}" ]; then
echo "sspatch: SurveillanceStation found" echo "sspatch: SurveillanceStation found"
@ -84,6 +82,7 @@ if [ -d "${SSPATH}" ]; then
if [ "${SSPATCH}" == "true" ]; then if [ "${SSPATCH}" == "true" ]; then
copy_file ${SSPATH}/lib libssutils.so ${PATCHPATH} 0644 copy_file ${SSPATH}/lib libssutils.so ${PATCHPATH} 0644
copy_file ${SSPATH}/lib libssutils.org.so ${PATCHPATH} 0644
copy_file ${SSPATH}/sbin sscmshostd ${PATCHPATH} 0755 copy_file ${SSPATH}/sbin sscmshostd ${PATCHPATH} 0755
copy_file ${SSPATH}/sbin sscored ${PATCHPATH} 0755 copy_file ${SSPATH}/sbin sscored ${PATCHPATH} 0755
copy_file ${SSPATH}/sbin ssdaemonmonitord ${PATCHPATH} 0755 copy_file ${SSPATH}/sbin ssdaemonmonitord ${PATCHPATH} 0755

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

View File

@ -12,9 +12,15 @@ if [ "${1}" = "late" ]; then
cp -vf "${0}" "/tmpRoot/usr/arc/addons/" cp -vf "${0}" "/tmpRoot/usr/arc/addons/"
cp -vf "/usr/bin/sspatch.sh" "/tmpRoot/usr/bin/sspatch.sh" cp -vf "/usr/bin/sspatch.sh" "/tmpRoot/usr/bin/sspatch.sh"
cp -vf "/usr/lib/sspatch.tgz" "/tmpRoot/usr/arc/sspatch.tgz" if [ "${2}" = "true" ]; then
cp -vf "/usr/lib/sspatch-openvino.tgz" "/tmpRoot/usr/arc/sspatch-openvino.tgz" cp -vf "/usr/lib/sspatch_60.tgz" "/tmpRoot/usr/arc/sspatch.tgz"
cp -vf "/usr/lib/sspatch-3221.tgz" "/tmpRoot/usr/arc/sspatch-3221.tgz" cp -vf "/usr/lib/sspatch-openvino_60.tgz" "/tmpRoot/usr/arc/sspatch-openvino.tgz"
cp -vf "/usr/lib/sspatch-3221_60.tgz" "/tmpRoot/usr/arc/sspatch-3221.tgz"
else
cp -vf "/usr/lib/sspatch_32.tgz" "/tmpRoot/usr/arc/sspatch.tgz"
cp -vf "/usr/lib/sspatch-openvino_32.tgz" "/tmpRoot/usr/arc/sspatch-openvino.tgz"
cp -vf "/usr/lib/sspatch-3221_32.tgz" "/tmpRoot/usr/arc/sspatch-3221.tgz"
fi
mkdir -p "/tmpRoot/usr/lib/systemd/system" mkdir -p "/tmpRoot/usr/lib/systemd/system"
DEST="/tmpRoot/usr/lib/systemd/system/sspatch.service" DEST="/tmpRoot/usr/lib/systemd/system/sspatch.service"