Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefino9488 committed Aug 23, 2024
1 parent b614fe8 commit d43a6b1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions quick_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,19 @@ if [ ! -f "vendor_boot.img" ]; then
exit 1
fi

# Verifying the existence of additional images
echo "Verifying additional images..."

# List of required images
requiredImages=(
"apusys.img" "audio_dsp.img" "ccu.img" "dpm.img" "dtbo.img" "gpueb.img"
"gz.img" "lk.img" "mcf_ota.img" "mcupm.img" "md1img.img" "mvpu_algo.img"
"pi_img.img" "scp.img" "spmfw.img" "sspm.img" "tee.img"
"vcp.img" "vbmeta.img" "vendor_boot.img" "vbmeta_system.img" "vbmeta_vendor.img"
)

# Additional required files
additionalRequiredFiles=(
"super.img"
)

# Check for missing images
missingImages=()

for img in "${requiredImages[@]}"; do
Expand All @@ -60,7 +56,6 @@ for img in "${requiredImages[@]}"; do
fi
done

# Check for the presence of any preloader file
if [ ! -f "preloader_xaga.bin" ] && [ ! -f "preloader_xaga.img" ] && [ ! -f "preloader_raw.img" ]; then
missingImages+=("preloader_xaga.bin or preloader_xaga.img or preloader_raw.img")
fi
Expand All @@ -71,7 +66,6 @@ for img in "${additionalRequiredFiles[@]}"; do
fi
done

# If any images are missing
if [ ${#missingImages[@]} -ne 0 ]; then
echo "Missing images: ${missingImages[*]}"
echo
Expand All @@ -92,14 +86,12 @@ for img in "${requiredImages[@]}"; do
echo "$img flashed successfully."
done

# Flash super image
if [ -f "super.img" ]; then
echo "Flashing super image..."
$fastboot flash super super.img
echo "super.img flashed successfully."
fi

# Flash preloader image
if [ -f "$imagesPath/preloader_xaga.bin" ]; then
echo "Flashing preloader image..."
$fastboot flash preloader1 preloader_xaga.bin
Expand Down

0 comments on commit d43a6b1

Please sign in to comment.