Compare commits
No commits in common. "320060fa65791523a4210d6ab1c61fea13ac5e4c" and "1da25afe66169e5a6beaef6543d1d87e965d29a8" have entirely different histories.
320060fa65
...
1da25afe66
24
0_Setup.sh
24
0_Setup.sh
@ -9,6 +9,30 @@ fi
|
|||||||
apt update && apt upgrade -y
|
apt update && apt upgrade -y
|
||||||
apt install -y git sudo
|
apt install -y git sudo
|
||||||
|
|
||||||
|
echo "Passe Grub-Konfig an."
|
||||||
|
|
||||||
|
# Backup der aktuellen GRUB-Konfiguration
|
||||||
|
GRUB_CONFIG="/etc/default/grub"
|
||||||
|
BACKUP_CONFIG="/etc/default/grub.bak"
|
||||||
|
|
||||||
|
if [ -f "$GRUB_CONFIG" ]; then
|
||||||
|
echo "Erstelle ein Backup der aktuellen GRUB-Konfiguration unter $BACKUP_CONFIG"
|
||||||
|
cp "$GRUB_CONFIG" "$BACKUP_CONFIG"
|
||||||
|
|
||||||
|
# GRUB-Konfiguration anpassen
|
||||||
|
echo "Passe die GRUB-Konfiguration an, um den GRUB-Loader immer anzuzeigen..."
|
||||||
|
sed -i 's/^GRUB_TIMEOUT_STYLE=.*/GRUB_TIMEOUT_STYLE=menu/' "$GRUB_CONFIG"
|
||||||
|
sed -i 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=5/' "$GRUB_CONFIG"
|
||||||
|
|
||||||
|
# GRUB-Konfiguration aktualisieren
|
||||||
|
echo "Aktualisiere die GRUB-Konfiguration..."
|
||||||
|
update-grub
|
||||||
|
|
||||||
|
echo "Die GRUB-Konfiguration wurde erfolgreich angepasst."
|
||||||
|
else
|
||||||
|
echo "Die Datei $GRUB_CONFIG wurde nicht gefunden. Passe GRUB-Config nicht an."
|
||||||
|
fi
|
||||||
|
|
||||||
# Der Code, der eingefügt werden soll
|
# Der Code, der eingefügt werden soll
|
||||||
CONFIG_BLOCK='if groups | grep -q "\bsudo\b"; then
|
CONFIG_BLOCK='if groups | grep -q "\bsudo\b"; then
|
||||||
case ":$PATH:" in
|
case ":$PATH:" in
|
||||||
|
|||||||
@ -236,7 +236,7 @@ flatpak install flathub org.gnome.World.Secrets -y
|
|||||||
flatpak install flathub org.gnome.FileRoller -y
|
flatpak install flathub org.gnome.FileRoller -y
|
||||||
|
|
||||||
echo "🔄 Installiere VeraCrypt..."
|
echo "🔄 Installiere VeraCrypt..."
|
||||||
sudo add-apt-repository ppa:unit193/encryption -y
|
sudo add-apt-repository ppa:unit193/encryption
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y veracrypt
|
sudo apt install -y veracrypt
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user