mirror of
https://github.com/kevinveenbirkenbach/raspberry-pi-tools.git
synced 2024-11-22 18:11:03 +01:00
Implemented arch versions
This commit is contained in:
parent
c7aa167d06
commit
522631b7bd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user