mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
sspatch: rework
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
196933618e
commit
5f7a730447
@ -28,16 +28,13 @@ if [ "${1}" = "late" ]; then
|
|||||||
ADDONSPATH="/tmpRoot/usr/arc/addons"
|
ADDONSPATH="/tmpRoot/usr/arc/addons"
|
||||||
if [ -d "${SSPATH}" ]; then
|
if [ -d "${SSPATH}" ]; then
|
||||||
# Define the hosts entries to be added
|
# Define the hosts entries to be added
|
||||||
ENTRIES=("0.0.0.0 synosurveillance.synology.com")
|
|
||||||
for ENTRY in "${ENTRIES[@]}"
|
|
||||||
do
|
|
||||||
if [ -f "/tmpRoot/etc/hosts" ]; then
|
if [ -f "/tmpRoot/etc/hosts" ]; then
|
||||||
# Check if the entry is already in the file
|
# Check if the entry is already in the file
|
||||||
if grep -Fxq "${ENTRY}" /tmpRoot/etc/hosts; then
|
if grep -Fxq "0.0.0.0 synosurveillance.synology.com" /tmpRoot/etc/hosts; then
|
||||||
echo "Entry ${ENTRY} already exists"
|
echo "Entry already exists"
|
||||||
else
|
else
|
||||||
echo "Entry ${ENTRY} does not exist, adding now"
|
echo "Entry does not exist, adding now"
|
||||||
echo "${ENTRY}" >> /tmpRoot/etc/hosts
|
echo "0.0.0.0 synosurveillance.synology.com" >> /tmpRoot/etc/hosts
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -f "/tmpRoot/etc.defaults/hosts" ]; then
|
if [ -f "/tmpRoot/etc.defaults/hosts" ]; then
|
||||||
@ -48,7 +45,6 @@ if [ "${1}" = "late" ]; then
|
|||||||
echo "${ENTRY}" >> /tmpRoot/etc.defaults/hosts
|
echo "${ENTRY}" >> /tmpRoot/etc.defaults/hosts
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
|
|
||||||
# Check Sha256sum for Patch
|
# Check Sha256sum for Patch
|
||||||
CHECKSUM=$(sha256sum ${SSPATH}/lib/libssutils.so | cut -d' ' -f1)
|
CHECKSUM=$(sha256sum ${SSPATH}/lib/libssutils.so | cut -d' ' -f1)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
version: 1
|
version: 1
|
||||||
name: sspatch
|
name: sspatch
|
||||||
description: "Dynamic License Patch for SS 9.2.0-11289 (Non DVA)"
|
description: "Dynamic License Patch for SS 9.2.0-11289 (Not for DVA 32xx)"
|
||||||
system: false
|
system: false
|
||||||
beta: true
|
beta: true
|
||||||
all:
|
all:
|
||||||
|
Loading…
Reference in New Issue
Block a user