mirror of
https://github.com/kevinveenbirkenbach/raspberry-pi-tools.git
synced 2024-11-22 10:01:04 +01:00
Implemented arch versions
This commit is contained in:
parent
c7aa167d06
commit
522631b7bd
@ -43,13 +43,22 @@ while [ "$workingpath" == "" ]
|
||||
fi
|
||||
|
||||
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" == "" ]
|
||||
do
|
||||
echo "Setzen Sie den Imagenamen(Standart:"$workingpath"ArchLinuxARM-rpi-2-latest.tar.gz)"
|
||||
echo "Setzen Sie den Imagenamen(Standart:$workingpath$imagename)"
|
||||
read image
|
||||
if [ "$image" == "" ]
|
||||
then
|
||||
imagepath=$workingpath"ArchLinuxARM-rpi-2-latest.tar.gz"
|
||||
imagepath=$workingpath$imagename
|
||||
else
|
||||
imagepath=$workingpath$image
|
||||
fi
|
||||
@ -60,7 +69,7 @@ while [ "$imagepath" == "" ]
|
||||
if [ \! -f "$imagepath" ]
|
||||
then
|
||||
echo "Image wird gedownloadet..."
|
||||
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz
|
||||
wget $downloadurl
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user