Update+ Upgrade and default .desktop

This commit is contained in:
2026-04-28 16:42:57 +02:00
parent fa512fd896
commit f9b4ac3085
2 changed files with 20 additions and 0 deletions

10
CSR_INFOS.desktop Executable file
View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=CSR_INFOS.desktop
Comment=
Exec=/usr/local/bin/csr_info/test.sh
Icon=
Path=/usr/local/bin/csr_info/
Terminal=true
StartupNotify=false

10
test.sh
View File

@@ -93,5 +93,15 @@ if [[ "$answer" == [Yy] ]]; then
else else
true true
fi fi
echo "Update..."
sudo apt-get update -y 2>&1 > /dev/null
echo "Upgrade..."
sudo apt-get full-upgrade -y 2>&1 > /dev/null
echo "Autoremove..."
sudo apt-get autoremove -y 2>&1 > /dev/null
echo "Clean..."
sudo apt-get clean -y 2>&1 > /dev/null
echo "Autoclean..."
sudo apt-get autoclean -y 2>&1 > /dev/null
read -n 1 -s -r -p "Beenden mit Tastendruck" read -n 1 -s -r -p "Beenden mit Tastendruck"