Simple Startup
This commit is contained in:
18
setup_bash.sh
Normal file
18
setup_bash.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Identifikation des Paketmanagers
|
||||
if [ -f /etc/arch-release ]; then
|
||||
echo "Arch Linux erkannt..."
|
||||
sudo pacman -Syu --needed riscv64-linux-gnu-binutils qemu-user-static just
|
||||
elif [ -f /etc/debian_version ]; then
|
||||
echo "Debian/Ubuntu erkannt..."
|
||||
sudo apt update && sudo apt install -y binutils-riscv64-linux-gnu qemu-user-static just
|
||||
elif [ -f /etc/fedora-release ]; then
|
||||
echo "Fedora erkannt..."
|
||||
sudo dnf install -y gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu qemu-user-static just
|
||||
else
|
||||
echo "Nicht unterstützte Distribution. Bitte installiere binutils-riscv64, qemu-user und just manuell."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installation abgeschlossen."
|
||||
Reference in New Issue
Block a user