From 3ed5ad8fb75f7a693502e3078f3744b9edfc4cec Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 24 May 2023 19:58:51 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eraspberry=5Farch-install.sh=E2=80=9C?= =?UTF-8?q?=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- raspberry_arch-install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/raspberry_arch-install.sh b/raspberry_arch-install.sh index 53abed1..a122a6f 100755 --- a/raspberry_arch-install.sh +++ b/raspberry_arch-install.sh @@ -13,6 +13,9 @@ sfdisk -l read -p "Welches Laufwerk soll beschrieben werden?: [/dev/sda|/dev/sdb] " device [[ -z "${device}" ]] && echo "No device is set! Abort..." && exit 1 +read -p "If it is a Raspberry Pi version 3 or 4? : [3/4] " version +[[ -z "${version}" ]] && echo "No Version is set! Abort..." && exit 1 + echo "Wipe Device ${device} ..." sleep 5 @@ -73,7 +76,9 @@ bsdtar -xpf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C root sync # Before unmounting the partitions, update /etc/fstab for the different SD block device compared to the Raspberry Pi 3 -sed -i 's/mmcblk0/mmcblk1/g' root/etc/fstab +if [ "${version}" -eq "4" ]; then + sed -i 's/mmcblk0/mmcblk1/g' root/etc/fstab +fi echo "Move boot files to the first partition..."