From 8cbe226206d50cbad5164dee711a8ac336dca7c2 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 20 May 2023 01:53:46 +0200 Subject: [PATCH] Packages --- run/install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/run/install.sh b/run/install.sh index 9103323..48ec952 100644 --- a/run/install.sh +++ b/run/install.sh @@ -97,8 +97,8 @@ PAT="/$BASE.pat" rm -f "$PAT" { wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress "$PROGRESS"; rc=$?; } || : -(( rc != 0 )) && error "Failed to download $URL, reason: $rc" && exit 69 +(( rc != 0 )) && error "Failed to download $URL, reason: $rc" && exit 69 [ ! -f "$PAT" ] && error "Failed to download $URL" && exit 69 SIZE=$(stat -c%s "$PAT") @@ -129,7 +129,6 @@ HDP="$TMP/synohdpack_img" [ ! -d "$PKG" ] && error "The PAT file contains no packages." && exit 68 BOOT=$(find "$TMP" -name "*.bin.zip") - [ ! -f "$BOOT" ] && error "The PAT file contains no boot file." && exit 67 BOOT=$(echo "$BOOT" | head -c -5) @@ -142,7 +141,6 @@ SYSTEM_SIZE=4954537983 # Check free diskspace SPACE=$(df --output=avail -B 1 "$TMP" | tail -n 1) - (( SYSTEM_SIZE > SPACE )) && error "Not enough free space to create a 4 GB system disk." && exit 87 if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then