mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
sspatch: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
986ab589e6
commit
6fb653cab3
@ -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
|
||||||
|
BIN
sspatch/all/usr/lib/sspatch-3221_32.tgz
Normal file
BIN
sspatch/all/usr/lib/sspatch-3221_32.tgz
Normal file
Binary file not shown.
0
sspatch/all/usr/lib/sspatch-3221.tgz → sspatch/all/usr/lib/sspatch-3221_60.tgz
Executable file → Normal file
0
sspatch/all/usr/lib/sspatch-3221.tgz → sspatch/all/usr/lib/sspatch-3221_60.tgz
Executable file → Normal file
BIN
sspatch/all/usr/lib/sspatch-openvino_32.tgz
Normal file
BIN
sspatch/all/usr/lib/sspatch-openvino_32.tgz
Normal file
Binary file not shown.
0
sspatch/all/usr/lib/sspatch-openvino.tgz → sspatch/all/usr/lib/sspatch-openvino_60.tgz
Executable file → Normal file
0
sspatch/all/usr/lib/sspatch-openvino.tgz → sspatch/all/usr/lib/sspatch-openvino_60.tgz
Executable file → Normal file
BIN
sspatch/all/usr/lib/sspatch_32.tgz
Normal file
BIN
sspatch/all/usr/lib/sspatch_32.tgz
Normal file
Binary file not shown.
0
sspatch/all/usr/lib/sspatch.tgz → sspatch/all/usr/lib/sspatch_60.tgz
Executable file → Normal file
0
sspatch/all/usr/lib/sspatch.tgz → sspatch/all/usr/lib/sspatch_60.tgz
Executable file → Normal 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user