diff --git a/img-gen-n.sh b/img-gen-n.sh index 63f67e1d..3fe2f752 100755 --- a/img-gen-n.sh +++ b/img-gen-n.sh @@ -5,7 +5,7 @@ set -e # Clean cached Files sudo git clean -fdx -. scripts/func.sh +. scripts/func.sh "${AUX_TOKEN}" # Get extractor, LKM, addons and Modules echo "Get Dependencies" @@ -35,8 +35,6 @@ mkdir -p "/tmp/p3" sudo mount ${LOOPX}p1 "/tmp/p1" sudo mount ${LOOPX}p3 "/tmp/p3" -[[ ! -f "brx/bzImage-arc" || ! -f "brx/initrd-arc" ]] && return 1 - ARC_BUILD="`date +'%y%m%d'`" ARC_VERSION="13.37.dev" ARC_BRANCH="next" @@ -46,6 +44,7 @@ echo "${ARC_BRANCH}" >files/p1/ARC-BRANCH echo "Repack initrd" cp -f "brx/bzImage-arc" "files/p3/bzImage-arc" +[[ ! -f "brx/bzImage-arc" || ! -f "brx/initrd-arc" ]] && exit 1 repackInitrd "brx/initrd-arc" "files/initrd" "files/p3/initrd-arc" echo "Copying files" diff --git a/img-gen-s.sh b/img-gen-s.sh index 3cfb7433..c12ec8fd 100755 --- a/img-gen-s.sh +++ b/img-gen-s.sh @@ -5,7 +5,7 @@ set -e # Clean cached Files sudo git clean -fdx -. scripts/func.sh +. scripts/func.sh "${AUX_TOKEN}" # Get extractor, LKM, addons and Modules echo "Get Dependencies" @@ -35,8 +35,6 @@ mkdir -p "/tmp/p3" sudo mount ${LOOPX}p1 "/tmp/p1" sudo mount ${LOOPX}p3 "/tmp/p3" -[[ ! -f "brs/bzImage-arc" || ! -f "brs/initrd-arc" ]] && return 1 - ARC_BUILD="`date +'%y%m%d'`" ARC_VERSION="13.37.dev" ARC_BRANCH="stable" @@ -46,6 +44,7 @@ echo "${ARC_BRANCH}" >files/p1/ARC-BRANCH echo "Repack initrd" cp -f "brs/bzImage-arc" "files/p3/bzImage-arc" +[[ ! -f "brs/bzImage-arc" || ! -f "brs/initrd-arc" ]] && exit 1 repackInitrd "brs/initrd-arc" "files/initrd" "files/p3/initrd-arc" echo "Copying files"