mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-12-22 12:05:04 +01:00
Optimized logic for arch setup
This commit is contained in:
parent
ab8b8b6e3a
commit
de0090b60c
@ -71,13 +71,19 @@ case "$operation_system" in
|
||||
"arch")
|
||||
question "Which Raspberry Pi will be used (e.g.: 1, 2, 3, 4...):" && read -r version
|
||||
base_download_url="http://os.archlinuxarm.org/os/";
|
||||
if [ "$version" == "1" ]; then
|
||||
image_name="ArchLinuxARM-rpi-$version.tar.gz"
|
||||
case "$version" in
|
||||
"1")
|
||||
image_name="ArchLinuxARM-rpi-latest.tar.gz"
|
||||
elif [ "$version" == "4" ]; then
|
||||
;;
|
||||
"2" | "3")
|
||||
image_name="ArchLinuxARM-rpi-armv7-latest.tar.gz"
|
||||
;;
|
||||
|
||||
"4")
|
||||
image_name="ArchLinuxARM-rpi-aarch64-latest.tar.gz"
|
||||
else
|
||||
image_name="ArchLinuxARM-rpi-$version-latest.tar.gz"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"manjaro")
|
||||
question "Which version(e.g.:architect,gnome) should be used:" && read -r version
|
||||
|
Loading…
Reference in New Issue
Block a user