Implemented arch versions

This commit is contained in:
Kevin Frantz 2018-05-07 13:00:08 +02:00
parent c7aa167d06
commit 522631b7bd

View File

@ -43,13 +43,22 @@ while [ "$workingpath" == "" ]
fi fi
done done
echo "Bitte geben Sie ein, für welchen Raspberry das Image aufgespielt werden soll:"
read version
if [ "$version" == "" ]
then
version="3"
fi
echo "Image für RaspberryPi $version wird verwendet..."
imagename="ArchLinuxARM-rpi-$version-latest.tar.gz"
downloadurl="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-$version-latest.tar.gz"
while [ "$imagepath" == "" ] while [ "$imagepath" == "" ]
do do
echo "Setzen Sie den Imagenamen(Standart:"$workingpath"ArchLinuxARM-rpi-2-latest.tar.gz)" echo "Setzen Sie den Imagenamen(Standart:$workingpath$imagename)"
read image read image
if [ "$image" == "" ] if [ "$image" == "" ]
then then
imagepath=$workingpath"ArchLinuxARM-rpi-2-latest.tar.gz" imagepath=$workingpath$imagename
else else
imagepath=$workingpath$image imagepath=$workingpath$image
fi fi
@ -60,7 +69,7 @@ while [ "$imagepath" == "" ]
if [ \! -f "$imagepath" ] if [ \! -f "$imagepath" ]
then then
echo "Image wird gedownloadet..." echo "Image wird gedownloadet..."
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz wget $downloadurl
fi fi
fi fi