From 45c980aaa76fa35ce8df9f01dd75be7cecc33410 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Mon, 19 Aug 2024 20:42:41 +0200 Subject: [PATCH] amepatch: loop until ame is installed Signed-off-by: AuxXxilium --- amepatch/all/usr/bin/amepatch.sh | 7 +++++-- sspatch/all/usr/bin/sspatch.sh | 9 ++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/amepatch/all/usr/bin/amepatch.sh b/amepatch/all/usr/bin/amepatch.sh index 9c40dca..7e90535 100755 --- a/amepatch/all/usr/bin/amepatch.sh +++ b/amepatch/all/usr/bin/amepatch.sh @@ -81,5 +81,8 @@ if [ -d "/var/packages/CodecPack" ]; then echo -e "AME Patch: Backup restored!" exit 1 fi -fi -exit 0 \ No newline at end of file + exit 0 +else + echo -e "AME Patch: CodecPack not found!" + exit 1 +fi \ No newline at end of file diff --git a/sspatch/all/usr/bin/sspatch.sh b/sspatch/all/usr/bin/sspatch.sh index 1276453..4be3d79 100755 --- a/sspatch/all/usr/bin/sspatch.sh +++ b/sspatch/all/usr/bin/sspatch.sh @@ -80,9 +80,12 @@ if [ -d /var/packages/SurveillanceStation ]; then chown SurveillanceStation:SurveillanceStation "${PATHSCRIPTS}/license.sh" chmod 0777 "${PATHSCRIPTS}/license.sh" - echo -e "Surveillance Patch: Successfull!" + echo -e "SSPatch: Successfull!" sleep 5 /usr/syno/bin/synopkg start SurveillanceStation -fi -exit 0 \ No newline at end of file + exit 0 +else + echo "SSPatch: SurveillanceStation not found" + exit 1 +fi \ No newline at end of file