mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
amepatch: rework
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
5e3c120eac
commit
87056c133d
@ -21,8 +21,9 @@ if [ -d "/var/packages/CodecPack" ]; then
|
||||
lic_patched="/usr/arc/ame_license.patched"
|
||||
|
||||
if [ -f "$lic_patched" ]; then
|
||||
if "$ame_path/bin/synoame-bin-auto-install-needed-codec"; then
|
||||
if "$ame_path/bin/synoame-bin-check-license" && "$ame_path/bin/synoame-bin-auto-install-needed-codec"; then
|
||||
echo -e "AME Patch: Already patched! -> Codec downloaded!"
|
||||
echo "true" >"$lic_patched"
|
||||
exit 0
|
||||
else
|
||||
echo -e "AME Patch: Already patched! -> Codec download failed!"
|
||||
@ -70,12 +71,13 @@ if [ -d "/var/packages/CodecPack" ]; then
|
||||
|
||||
if "$ame_path/bin/synoame-bin-check-license"; then
|
||||
echo -e "AME Patch: Downloading Codec!"
|
||||
echo "true" >"${lic_patched}"
|
||||
if "$ame_path/bin/synoame-bin-auto-install-needed-codec"; then
|
||||
echo -e "AME Patch: Successful!"
|
||||
echo "true" >"$lic_patched"
|
||||
exit 0
|
||||
else
|
||||
echo -e "AME Patch: Failed!"
|
||||
rm -f "$lic_patched"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
|
@ -17,7 +17,8 @@ if [ "${1}" = "late" ]; then
|
||||
cat <<EOF >${DEST}
|
||||
[Unit]
|
||||
Description=addon amepatch
|
||||
After=multi-user.target
|
||||
Wants=smpkg-custom-install.service
|
||||
After=smpkg-custom-install.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
|
@ -100,7 +100,7 @@ if [ -d "${SSPATH}" ]; then
|
||||
fi
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
/usr/syno/bin/synopkg restart SurveillanceStation
|
||||
else
|
||||
rm -f "${ss_lic_patched}"
|
||||
fi
|
||||
|
@ -22,7 +22,6 @@ if [ "${1}" = "late" ]; then
|
||||
[Unit]
|
||||
Description=addon sspatch
|
||||
After=multi-user.target
|
||||
After=amepatch.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
|
Loading…
Reference in New Issue
Block a user