bHELPER.sh aktualisiert
This commit is contained in:
parent
c996d0d531
commit
f0c86ee441
268
bHELPER.sh
268
bHELPER.sh
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
SkriptVersion="2024-05-22 15:15"
|
||||
SkriptVersion="2024-05-22 17:10"
|
||||
|
||||
gl_SkriptName=$(basename "${0}")
|
||||
gl__SkriptPfadName=$(cd "$(dirname "${0}")"; pwd -P)/$(basename "${0}")
|
||||
|
@ -57,7 +57,12 @@ gl__format_cyanlight=$(echo -e "\033[1;96m")
|
|||
gl__datei_ende=$(echo "${gl__format_red}-------- "${datei}" (ENDE) -------------------------------------------------------------------${gl__format_off}")
|
||||
gl__ausgabe_anfang=$(echo "${gl__format_red}---- Terminalausgabe (Anfang) --------------------------------------------------------------------------${gl__format_off}")
|
||||
gl__ausgabe_ende=$(echo "${gl__format_red}---- Terminalausgabe (Ende) ----------------------------------------------------------------------------${gl__format_off}")
|
||||
gl__bittewaehlen=$(echo ""; echo ""; echo " ${gl__format_red}Bitte wählen und ENTER drücken!${gl__format_off}")
|
||||
|
||||
function glf__please_choose {
|
||||
echo ""
|
||||
echo ""
|
||||
echo " ${gl__format_red}Bitte wählen und ENTER drücken!${gl__format_off}"
|
||||
}
|
||||
|
||||
function task_title {
|
||||
echo -e "${gl__format_cyanlight}● ${1}${gl__format_off}"
|
||||
|
@ -183,7 +188,7 @@ function banner {
|
|||
echo -e " ${gl__format_red}88 d8P 88 88 88 88 88 88 88 T8b ${gl__format_off}"
|
||||
echo -e " ${gl__format_red}8888P\" 88 88 88888888 8888888 88 88888888 88 T8b ${gl__format_off}"
|
||||
echo -e ""
|
||||
echo -e "${gl__format_red} ${bannertitel} ${gl__format_off}"
|
||||
echo -e "${gl__format_red} ${1} ${gl__format_off}"
|
||||
echo ""; echo ""
|
||||
}
|
||||
|
||||
|
@ -196,12 +201,7 @@ function pause {
|
|||
function ende {
|
||||
read -p "${gl__format_red}Drücke ENTER um weiterzumachen${gl__format_off}"
|
||||
}
|
||||
function endedasi {
|
||||
echo -e ""
|
||||
echo -e ""
|
||||
read -p "${gl__format_red}Das Verzeichnis existiert nicht. Tschüss!${gl__format_off}"
|
||||
exit
|
||||
}
|
||||
|
||||
|
||||
clear
|
||||
bannerstart
|
||||
|
@ -220,7 +220,8 @@ echo " ${gl__format_red}| E |${gl__format_off} Einstellungen ${gl__fo
|
|||
echo ""
|
||||
echo " ${gl__format_red}| V |${gl__format_off} leiser ${gl__format_red}| B |${gl__format_off} TON ein/aus ${gl__format_red}| N |${gl__format_off} lauter"
|
||||
echo " ${gl__format_red}| M |${gl__format_off} Mikro(s) ein/aus ${gl__format_red}| X |${gl__format_off} Monitor sperren ${gl__format_red}| W |${gl__format_off} WLAN ein/aus"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read hauptmenue
|
||||
|
||||
|
@ -261,14 +262,15 @@ fi
|
|||
################################################################################
|
||||
|
||||
h|H)
|
||||
bannertitel="Hauptmenü => Hardware"
|
||||
banner
|
||||
banner "Hauptmenü => Hardware"
|
||||
|
||||
echo " ${gl__format_red}| 0 |${gl__format_off} Hardwareinformationen des Rechners (dmidecode)"
|
||||
echo " ${gl__format_red}| 1 |${gl__format_off} Hardwareinformationen des Rechners (inxi)"
|
||||
echo " ${gl__format_red}| B |${gl__format_off} Bluetooth"
|
||||
echo " ${gl__format_red}| A |${gl__format_off} Laptopakkus (upower, inxi)"
|
||||
echo " ${gl__format_red}| XK |${gl__format_off} xrandr - Bildschirmkonfiguration anzeigen lassen"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read hardware
|
||||
|
||||
|
@ -291,8 +293,7 @@ read hardware
|
|||
;;
|
||||
|
||||
1)
|
||||
bannertitel="Hauptmenü => Hardware => Hardwareinformationen des Rechners (inxi)"
|
||||
banner
|
||||
banner "Hauptmenü => Hardware => Hardwareinformationen des Rechners (inxi)"
|
||||
|
||||
task_title "Hardwareinformationen des Rechners (inxi)"
|
||||
task_title_syntax "inxi -Fxz"
|
||||
|
@ -307,8 +308,7 @@ terminal_output_end
|
|||
[[ -f /usr/sbin/rfkill ]] && rfkill_bin="/usr/sbin/rfkill"
|
||||
[[ -f /usr/bin/rfkill ]] && rfkill_bin="/usr/bin/rfkill"
|
||||
|
||||
bannertitel="Hauptmenü => Hardware => Bluetooth"
|
||||
banner
|
||||
banner "Hauptmenü => Hardware => Bluetooth"
|
||||
|
||||
task_title "systemctl list-unit-files | grep -i "STATE\|blue""
|
||||
task_title_syntax "systemctl list-unit-files | grep -i "STATE\|blue""
|
||||
|
@ -350,31 +350,31 @@ terminal_output_end
|
|||
;;
|
||||
|
||||
a|A)
|
||||
bannertitel="Hauptmenü => Hardware => Akkuinformationen eures Laptops (upower, inxi)"
|
||||
banner
|
||||
task_title_syntax "upower -i /org/freedesktop/UPower/devices/battery_BAT0"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
upower -i /org/freedesktop/UPower/devices/battery_BAT0
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
echo ""
|
||||
task_title_syntax "inxi --battery"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
inxi --battery
|
||||
echo "${gl__ausgabe_ende}"
|
||||
banner "Hauptmenü => Hardware => Akkuinformationen eures Laptops (upower, inxi)"
|
||||
|
||||
task_title_syntax "upower -i /org/freedesktop/UPower/devices/battery_BAT0"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
upower -i /org/freedesktop/UPower/devices/battery_BAT0
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
echo ""
|
||||
task_title_syntax "inxi --battery"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
inxi --battery
|
||||
echo "${gl__ausgabe_ende}"
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
xk|XK)
|
||||
bannertitel="Hauptmenü => Hardware => Bildschirmkonfigurieren (xrandr)"
|
||||
banner
|
||||
|
||||
banner "Hauptmenü => Hardware => Bildschirmkonfigurieren (xrandr)"
|
||||
|
||||
task_title "Alle aktiven Monitore"
|
||||
task_title_syntax "xrandr --listactivemonitors"
|
||||
terminal_output_begin
|
||||
xrandr --listactivemonitors
|
||||
terminal_output_end
|
||||
|
||||
|
||||
task_title "Alle vorhandene Monitoranschlüsse"
|
||||
task_title_syntax "xrandr --listproviders"
|
||||
terminal_output_begin
|
||||
|
@ -401,8 +401,8 @@ terminal_output_end
|
|||
################################################################################
|
||||
|
||||
s|S)
|
||||
bannertitel="Hauptmenü => Software"
|
||||
banner
|
||||
banner "Hauptmenü => Software"
|
||||
|
||||
echo " ${gl__format_red}${gl__osprettyname}:${gl__format_off}"
|
||||
if grep -q "Tumbleweed\|Ubuntu\|Manjaro\|Arch Linux\|Mint" /etc/os-release ; then
|
||||
echo " ${gl__format_red}| U |${gl__format_off} Aktualisieren"
|
||||
|
@ -414,18 +414,17 @@ echo " ${gl__format_red}Paketverwaltungen:${gl__format_off}"
|
|||
echo ""
|
||||
echo " ${gl__format_red}Programme:${gl__format_off}"
|
||||
echo " ${gl__format_red}| P |${gl__format_off} Informationen ausgeben lassen, ..."
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read software
|
||||
|
||||
case ${software} in
|
||||
|
||||
u|U)
|
||||
bannertitel="Hauptmenü => Software => Paketverwaltung => Linux Distribution aktualisieren"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Paketverwaltung => Linux Distribution aktualisieren"
|
||||
|
||||
if test -f "/usr/bin/zypper"; then
|
||||
|
||||
task_title "Daten der Reporitories aktualisieren"
|
||||
task_title_syntax "sudo zypper refresh"
|
||||
terminal_output_begin
|
||||
|
@ -443,11 +442,9 @@ if test -f "/usr/bin/zypper"; then
|
|||
terminal_output_begin
|
||||
sudo zypper dup
|
||||
terminal_output_end
|
||||
|
||||
fi
|
||||
|
||||
if [[ -f "/usr/bin/apt" || -f "/usr/local/bin/apt" ]]; then
|
||||
|
||||
task_title "Daten der Reporitories aktualisieren"
|
||||
task_title_syntax "sudo apt update"
|
||||
terminal_output_begin
|
||||
|
@ -465,11 +462,9 @@ if [[ -f "/usr/bin/apt" || -f "/usr/local/bin/apt" ]]; then
|
|||
terminal_output_begin
|
||||
sudo apt upgrade
|
||||
terminal_output_end
|
||||
|
||||
fi
|
||||
|
||||
if test -f "/usr/bin/pacman"; then
|
||||
|
||||
task_title "Daten der Reporitories aktualisieren"
|
||||
task_title_syntax "sudo pacman -Sy"
|
||||
terminal_output_begin
|
||||
|
@ -487,7 +482,6 @@ if test -f "/usr/bin/pacman"; then
|
|||
terminal_output_begin
|
||||
sudo pacman -Su
|
||||
terminal_output_end
|
||||
|
||||
fi
|
||||
ende
|
||||
;;
|
||||
|
@ -495,23 +489,23 @@ fi
|
|||
|
||||
|
||||
f|F)
|
||||
bannertitel="Hauptmenü => Software => Flatpak"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak"
|
||||
|
||||
echo " ${gl__format_red}| U |${gl__format_off} Installierte Pakete aktualisieren"
|
||||
echo " ${gl__format_red}| L |${gl__format_off} Installierte Pakete auflisten"
|
||||
echo " ${gl__format_red}| S |${gl__format_off} Programme suchen"
|
||||
echo " ${gl__format_red}| I |${gl__format_off} Programme installieren"
|
||||
echo " ${gl__format_red}| R |${gl__format_off} Programme deinstallieren"
|
||||
echo " ${gl__format_red}| G |${gl__format_off} Ungenutzte Pakete deinstallieren"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read flatpak
|
||||
|
||||
case ${flatpak} in
|
||||
|
||||
u|U)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Installierte Pakete aktualisieren"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak => Installierte Pakete aktualisieren"
|
||||
|
||||
task_title "Installierte Pakete aktualisieren"
|
||||
task_title_syntax "sudo flatpak update"
|
||||
|
@ -524,8 +518,8 @@ terminal_output_end
|
|||
;;
|
||||
|
||||
l|L)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Installierte Pakete auflisten"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak => Installierte Pakete auflisten"
|
||||
|
||||
task_title "Detaillierte Liste aller installierten Pakete"
|
||||
task_title_syntax "flatpak list --show-details"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
|
@ -560,8 +554,7 @@ echo "${gl__ausgabe_ende}"
|
|||
;;
|
||||
|
||||
g|G)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Ungenutzte Pakete deinstallieren"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak => Ungenutzte Pakete deinstallieren"
|
||||
|
||||
task_title "Ungenutzte Pakete deinstallieren"
|
||||
task_title_syntax "sudo flatpak uninstall --unused"
|
||||
|
@ -573,8 +566,7 @@ terminal_output_end
|
|||
;;
|
||||
|
||||
s|S)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Programme suchen"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak => Programme suchen"
|
||||
|
||||
read -p "${gl__format_red}Suchtext eigeben: ${gl__format_off}" search
|
||||
banner
|
||||
|
@ -589,8 +581,8 @@ terminal_output_end
|
|||
;;
|
||||
|
||||
i|I)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Programme installieren"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak => Programme installieren"
|
||||
|
||||
read -p "${gl__format_red}Suchtext eigeben: ${gl__format_off}" search
|
||||
banner
|
||||
|
||||
|
@ -613,8 +605,7 @@ terminal_output_end
|
|||
;;
|
||||
|
||||
r|R)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Programme deinstallieren"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak => Programme deinstallieren"
|
||||
|
||||
task_title "Detaillierte Liste aller installierten Programme"
|
||||
task_title_syntax "flatpak list --app --show-details"
|
||||
|
@ -623,7 +614,7 @@ flatpak list --app --show-details
|
|||
terminal_output_end
|
||||
|
||||
read -p "${gl__format_red}Application ID eigeben: ${gl__format_off}" applicationid
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak => Programme deinstallieren"
|
||||
|
||||
task_title "Programme deinstallieren"
|
||||
task_title_syntax "sudo flatpak uninstall ${applicationid}"
|
||||
|
@ -635,8 +626,7 @@ terminal_output_end
|
|||
;;
|
||||
|
||||
g|G)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Ungenutzter Pakete deinstallieren"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Flatpak => Ungenutzter Pakete deinstallieren"
|
||||
|
||||
task_title "Ungenutzter Pakete deinstallieren"
|
||||
task_title_syntax "sudo flatpak uninstall --unused"
|
||||
|
@ -654,18 +644,18 @@ terminal_output_end
|
|||
|
||||
|
||||
p|P)
|
||||
bannertitel="Hauptmenü => Software => Programme"
|
||||
banner
|
||||
echo " ${gl__format_cyanlight}●${gl__format_off} Mozilla Thunderbird ${gl__format_red}| T0 |${gl__format_off} Informationen"
|
||||
echo "${gl__bittewaehlen}"
|
||||
banner "Hauptmenü => Software => Programme"
|
||||
|
||||
echo " ${gl__format_cyanlight}●${gl__format_off} Mozilla Thunderbird ${gl__format_red}| T0 |${gl__format_off} Informationen"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read programme
|
||||
|
||||
case ${programme} in
|
||||
|
||||
t0|T0)
|
||||
bannertitel="Hauptmenü => Software => Programme => Mozilla Thunderbird"
|
||||
banner
|
||||
banner "Hauptmenü => Software => Programme => Mozilla Thunderbird"
|
||||
|
||||
task_title_syntax "thunderbird --version"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
|
@ -707,19 +697,20 @@ esac
|
|||
################################################################################
|
||||
|
||||
i|I)
|
||||
bannertitel="Hauptmenü => Netzwerk"
|
||||
banner
|
||||
banner "Hauptmenü => Netzwerk"
|
||||
|
||||
echo " ${gl__format_red}| A |${gl__format_off} Allgemeine Informationen"
|
||||
echo " ${gl__format_red}| W |${gl__format_off} WLAN Informationen"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read netzwerk
|
||||
|
||||
case ${netzwerk} in
|
||||
|
||||
a|A)
|
||||
bannertitel="Hauptmenü => Netzwerk => WLAN Informationen"
|
||||
banner
|
||||
banner "Hauptmenü => Netzwerk => WLAN Informationen"
|
||||
|
||||
task_title_syntax "ip address show"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
ip address show
|
||||
|
@ -736,8 +727,7 @@ echo "${gl__ausgabe_ende}"
|
|||
[[ -f /usr/sbin/rfkill ]] && rfkill_bin="/usr/sbin/rfkill"
|
||||
[[ -f /usr/bin/rfkill ]] && rfkill_bin="/usr/bin/rfkill"
|
||||
|
||||
bannertitel="Hauptmenü => Netzwerk => WLAN Informationen"
|
||||
banner
|
||||
banner "Hauptmenü => Netzwerk => WLAN Informationen"
|
||||
|
||||
task_title_syntax "rfkill list wifi"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
|
@ -763,27 +753,28 @@ echo "${gl__ausgabe_ende}"
|
|||
################################################################################
|
||||
|
||||
f|F)
|
||||
bannertitel="Hauptmenü => Dateien & Verzeichnisse"
|
||||
banner
|
||||
banner "Hauptmenü => Dateien & Verzeichnisse"
|
||||
|
||||
echo " ${gl__format_red}| F |${gl__format_off} Nach Dateien und Verzeichnissen suchen"
|
||||
echo " ${gl__format_red}| G |${gl__format_off} Die zehn größten Dateien in deinem ${HOME}"
|
||||
echo " ${gl__format_red}| D |${gl__format_off} Duplikate von Dateien in deinem ${HOME} Verzeichnis finden"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read software
|
||||
|
||||
case ${software} in
|
||||
|
||||
g|G)
|
||||
bannertitel="Hauptmenü => Dateien & Verzeichnisse => Die 10 größten Dateien"
|
||||
banner
|
||||
find ${HOME} -type f -print0 | xargs -0 du -h | sort -hr | head -10
|
||||
banner "Hauptmenü => Dateien & Verzeichnisse => Die 10 größten Dateien"
|
||||
|
||||
find ${HOME} -type f -print0 | xargs -0 du -h | sort -hr | head -10
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
f|F)
|
||||
bannertitel="Hauptmenü => Dateien & Verzeichnisse => Nach Dateien und Verzeichnissen suchen"
|
||||
banner
|
||||
banner "Hauptmenü => Dateien & Verzeichnisse => Nach Dateien und Verzeichnissen suchen"
|
||||
|
||||
read -p "${gl__format_red}Zeichenfolge: ${gl__format_off}" zeichenfolge
|
||||
echo -e ""
|
||||
|
@ -799,8 +790,7 @@ echo -e "${gl__format_red}------------------------------------------------------
|
|||
;;
|
||||
|
||||
d|D)
|
||||
bannertitel="Hauptmenü => Dateien & Verzeichnisse => Duplikate von Dateien in deinem ${HOME} Verzeichnis finden"
|
||||
banner
|
||||
banner "Hauptmenü => Dateien & Verzeichnisse => Duplikate von Dateien in deinem ${HOME} Verzeichnis finden"
|
||||
|
||||
task_title "Duplikate von Dateien in deinem ${HOME} Verzeichnis finden"
|
||||
task_title_syntax "find ${HOME} ! -empty -type f -exec md5sum {} + | sort | uniq -w32 -dD"
|
||||
|
@ -826,8 +816,8 @@ k|K)
|
|||
[[ -f /usr/bin/kcmshell5 ]] && kcmshell_bin="/usr/bin/kcmshell5"
|
||||
[[ -f /usr/bin/kcmshell6 ]] && kcmshell_bin="/usr/bin/kcmshell6"
|
||||
|
||||
bannertitel="Hauptmenü => KDE"
|
||||
banner
|
||||
banner "Hauptmenü => KDE"
|
||||
|
||||
echo " ${gl__format_red}Installierte Plasma Version: ${gl__format_off}`plasmashell --version | sed "s/plasmashell //"`"
|
||||
echo ""
|
||||
echo " ${gl__format_red}| EN |${gl__format_off} Energieprofile"
|
||||
|
@ -837,7 +827,8 @@ echo " ${gl__format_red}| SI |${gl__format_off} Sitzung"
|
|||
echo " ${gl__format_red}| KW |${gl__format_off} KWin Regeln"
|
||||
echo " ${gl__format_red}| EK |${gl__format_off} Eigene Kurzbefehle"
|
||||
echo " ${gl__format_red}| MA |${gl__format_off} Maus"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read kde
|
||||
|
||||
|
@ -873,10 +864,11 @@ function checksum_sha256sum {
|
|||
checksum_chksumfile=$(awk '{print $1}' "${iso_checksum_local}")
|
||||
}
|
||||
|
||||
bannertitel="Hauptmenü => Linux Distributionen"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen"
|
||||
|
||||
echo " ${gl__format_red}| LM |${gl__format_off} Linux Mint"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read linux
|
||||
|
||||
|
@ -886,8 +878,7 @@ read linux
|
|||
iso_folder="/home/${USER}"
|
||||
version=$(curl https://ftp.fau.de/mint/iso/stable/ | grep 202.-..-.. | sort -k 2 | tail -n 1 | grep -o "href=\".*\"" | sed "s|href=\"||" | sed "s|/\"||")
|
||||
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint"
|
||||
|
||||
echo " Aktuellste Version: ${gl__format_red}${version}${gl__format_off}"
|
||||
echo ""
|
||||
|
@ -904,21 +895,22 @@ echo ""
|
|||
echo " ${gl__format_red}| C0 |${gl__format_off} Cinnamon herunterladen"
|
||||
echo " ${gl__format_red}| C1 |${gl__format_off} Cinnamon auf USB-Stick schreiben"
|
||||
echo " ${gl__format_red}| C2 |${gl__format_off} Cinnamon auf Ventoy Mulitboot USB-Stick kopieren"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read linuxmint
|
||||
|
||||
case ${linuxmint} in
|
||||
|
||||
00)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => Manjaro Website öffnen"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => Manjaro Website öffnen"
|
||||
|
||||
xdg-open https://linuxmint.com
|
||||
;;
|
||||
|
||||
x0|X0)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => XFCE ${version} herunterladen"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => XFCE ${version} herunterladen"
|
||||
|
||||
flavour="xfce"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -942,8 +934,8 @@ fi
|
|||
;;
|
||||
|
||||
x1|X1)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => XFCE ${version} auf USB-Stick schreiben"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => XFCE ${version} auf USB-Stick schreiben"
|
||||
|
||||
flavour="xfce"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -969,8 +961,8 @@ fi
|
|||
;;
|
||||
|
||||
x2|X2)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => XFCE ${version} auf Ventoy Multiboot USB-Stick schreiben"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => XFCE ${version} auf Ventoy Multiboot USB-Stick schreiben"
|
||||
|
||||
flavour="xfce"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -996,8 +988,8 @@ fi
|
|||
;;
|
||||
|
||||
m0|M0)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => Mate ${version} herunterladen"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => Mate ${version} herunterladen"
|
||||
|
||||
flavour="mate"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -1021,8 +1013,8 @@ fi
|
|||
;;
|
||||
|
||||
m1|M1)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => Mate ${version} auf USB-Stick schreiben"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => Mate ${version} auf USB-Stick schreiben"
|
||||
|
||||
flavour="mate"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -1048,8 +1040,8 @@ fi
|
|||
;;
|
||||
|
||||
m2|M2)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => Mate ${version} auf Ventoy Multiboot USB-Stick schreiben"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => Mate ${version} auf Ventoy Multiboot USB-Stick schreiben"
|
||||
|
||||
flavour="mate"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -1075,8 +1067,8 @@ fi
|
|||
;;
|
||||
|
||||
c0|C0)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => Cinnamon ${version} herunterladen"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => Cinnamon ${version} herunterladen"
|
||||
|
||||
flavour="cinnamon"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -1100,8 +1092,8 @@ fi
|
|||
;;
|
||||
|
||||
c1|C1)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => Cinnamon ${version} auf USB-Stick schreiben"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => Cinnamon ${version} auf USB-Stick schreiben"
|
||||
|
||||
flavour="cinnamon"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -1127,8 +1119,8 @@ fi
|
|||
;;
|
||||
|
||||
c2|C2)
|
||||
bannertitel="Hauptmenü => Linux Distributionen => Linux Mint => Cinnamon ${version} auf Ventoy Multiboot USB-Stick schreiben"
|
||||
banner
|
||||
banner "Hauptmenü => Linux Distributionen => Linux Mint => Cinnamon ${version} auf Ventoy Multiboot USB-Stick schreiben"
|
||||
|
||||
flavour="cinnamon"
|
||||
sha="256"
|
||||
iso_url="https://ftp.fau.de/mint/iso/stable/${version}/linuxmint-${version}-${flavour}-64bit.iso"
|
||||
|
@ -1150,6 +1142,7 @@ then
|
|||
else
|
||||
echo "Irgendwas ist schief gelaufen"
|
||||
fi
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
@ -1168,8 +1161,7 @@ esac
|
|||
################################################################################
|
||||
|
||||
w|W)
|
||||
bannertitel="Hauptmenü => WLAN ein-/ausschalten"
|
||||
banner
|
||||
banner "Hauptmenü => WLAN ein-/ausschalten"
|
||||
|
||||
if echo "${gl__wlanactive}" | grep "nicht verfügbar" &> /dev/null ; then
|
||||
bannertitel="Hauptmenü => WLAN ein-/ausschalten => WLAN wird eingeschaltet"
|
||||
|
@ -1234,8 +1226,7 @@ r|R)
|
|||
[[ -f /usr/sbin/shutdown ]] && shutdown_bin="/usr/sbin/shutdown"
|
||||
[[ -f /usr/bin/shutdown ]] && shutdown_bin="/usr/bin/shutdown"
|
||||
|
||||
bannertitel="Hauptmenü => Herunterfahren/Neustarten"
|
||||
banner
|
||||
banner "Hauptmenü => Herunterfahren/Neustarten"
|
||||
|
||||
echo " ${gl__format_red}HERUNTERFAHREN${gl__format_off}"
|
||||
echo " ${gl__format_red}==============${gl__format_off}"
|
||||
|
@ -1250,15 +1241,15 @@ echo " ${gl__format_red}| N2 |${gl__format_off} In x Minuten neustarten"
|
|||
echo " ${gl__format_red}| N3 |${gl__format_off} Um exakt xx:xx Uhr neustarten"
|
||||
echo ""
|
||||
echo " ${gl__format_red}| C |${gl__format_off} Herunterfahren/Neustarten abbrechen"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read shutdownreboot
|
||||
|
||||
case ${shutdownreboot} in
|
||||
|
||||
h1|H1)
|
||||
bannertitel="Hauptmenü => Sofort Herunterfahren"
|
||||
banner
|
||||
banner "Hauptmenü => Sofort Herunterfahren"
|
||||
|
||||
${shutdown_bin} -P now
|
||||
|
||||
|
@ -1267,8 +1258,7 @@ ${shutdown_bin} -P now
|
|||
|
||||
|
||||
h2|H2)
|
||||
bannertitel="Hauptmenü => In x Minuten Herunterfahren"
|
||||
banner
|
||||
banner "Hauptmenü => In x Minuten Herunterfahren"
|
||||
|
||||
read -p "${gl__format_red}Bitte eine Ganzzahl eingeben (60 oder 65 oder ...) und ENTER drücken: ${gl__format_off}" minuten
|
||||
|
||||
|
@ -1279,8 +1269,7 @@ ${shutdown_bin} -h ${minuten}
|
|||
|
||||
|
||||
h3|H3)
|
||||
bannertitel="Hauptmenü => Um exakt xx:xx Herunterfahren"
|
||||
banner
|
||||
banner "Hauptmenü => Um exakt xx:xx Herunterfahren"
|
||||
|
||||
read -p "${gl__format_red}Bitte eine Ganzzahl eingeben (20:31 oder 23:59 oder...) und ENTER drücken: ${gl__format_off}" ssmm
|
||||
|
||||
|
@ -1291,8 +1280,7 @@ ${shutdown_bin} -h ${ssmm}
|
|||
|
||||
|
||||
n1|N1)
|
||||
bannertitel="Hauptmenü => Sofort Neustarten"
|
||||
banner
|
||||
banner "Hauptmenü => Sofort Neustarten"
|
||||
|
||||
${shutdown_bin} --reboot now
|
||||
|
||||
|
@ -1301,8 +1289,7 @@ ${shutdown_bin} --reboot now
|
|||
|
||||
|
||||
n2|N2)
|
||||
bannertitel="Hauptmenü => In x Minuten Neustarten"
|
||||
banner
|
||||
banner "Hauptmenü => In x Minuten Neustarten"
|
||||
|
||||
read -p "${gl__format_red}Bitte eine Ganzzahl eingeben (60 oder 65 oder ...) und ENTER drücken: ${gl__format_off}" minuten
|
||||
|
||||
|
@ -1313,8 +1300,7 @@ ${shutdown_bin} -r +${minuten}
|
|||
|
||||
|
||||
n3|N3)
|
||||
bannertitel="Hauptmenü => Um exakt xx:xx Neustarten"
|
||||
banner
|
||||
banner "Hauptmenü => Um exakt xx:xx Neustarten"
|
||||
|
||||
read -p "${gl__format_red}Bitte eine Ganzzahl eingeben (20:31 oder 23:59 oder...) und ENTER drücken: ${gl__format_off}" ssmm
|
||||
|
||||
|
@ -1325,8 +1311,7 @@ ${shutdown_bin} -r ${ssmm}
|
|||
|
||||
|
||||
c|C)
|
||||
bannertitel="Hauptmenü => Das geplante Herunterfahren/Neustarten abbrechen"
|
||||
banner
|
||||
banner "Hauptmenü => Das geplante Herunterfahren/Neustarten abbrechen"
|
||||
|
||||
${shutdown_bin} -c
|
||||
|
||||
|
@ -1344,8 +1329,7 @@ ${shutdown_bin} -c
|
|||
################################################################################
|
||||
|
||||
u|U)
|
||||
bannertitel="Hauptmenü => bHELPER aktualisieren"
|
||||
banner
|
||||
banner "Hauptmenü => bHELPER aktualisieren"
|
||||
|
||||
wget https://git.disroot.org/dingens/bHELPER/raw/branch/master/bHELPER.sh -O ~/.bHELPER/bHELPER.sh
|
||||
wget https://git.disroot.org/dingens/bHELPER/raw/branch/master/bHELPER.png -O ~/.bHELPER/bHELPER.png
|
||||
|
@ -1361,8 +1345,7 @@ ende
|
|||
################################################################################
|
||||
|
||||
debug)
|
||||
bannertitel="Hauptmenü => Debug"
|
||||
banner
|
||||
banner "Hauptmenü => Debug"
|
||||
|
||||
bash
|
||||
|
||||
|
@ -1378,8 +1361,7 @@ e|E)
|
|||
[[ -d "${gl__config_folder}" ]] || mkdir -p "${gl__config_folder}"
|
||||
[[ -f "${gl__config_file}" ]] || touch "${gl__config_file}"
|
||||
|
||||
bannertitel="Hauptmenü => Einstellungen"
|
||||
banner
|
||||
banner "Hauptmenü => Einstellungen"
|
||||
|
||||
unset desktopiconautom_status
|
||||
grep -q "desktopiconautom=no" "${gl__config_file}" && desktopiconautom_status="$(echo "${gl__format_red}[ausgeschaltet]${gl__format_off}")"
|
||||
|
@ -1387,15 +1369,15 @@ grep -q "desktopiconautom=no" "${gl__config_file}" || desktopiconautom_status="$
|
|||
echo " ${gl__format_red}| 0 |${gl__format_off} Automatische Erstellung des Desktop Icons ${desktopiconautom_status}"
|
||||
|
||||
echo " ${gl__format_red}| E |${gl__format_off} Dieses Skript editieren"
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
glf__please_choose
|
||||
|
||||
read einstellungen
|
||||
|
||||
case ${einstellungen} in
|
||||
|
||||
0)
|
||||
bannertitel="Hauptmenü => Einstellungen => Automatisches Erstellung des Desktop Icons"
|
||||
banner
|
||||
banner "Hauptmenü => Einstellungen => Automatisches Erstellung des Desktop Icons"
|
||||
|
||||
if [[ "${desktopiconautom_status}" =~ .*eingeschaltet.* ]] ; then
|
||||
grep -q "desktopiconautom=" "${gl__config_file}" &>/dev/null || echo "desktopiconautom=no" >> "${gl__config_file}"
|
||||
|
@ -1407,7 +1389,7 @@ grep -q "desktopiconautom=" "${gl__config_file}" &>/dev/null || echo "desktopico
|
|||
sed -i "s/^desktopiconautom=.*$/desktopiconautom=yes/" "${gl__config_file}"
|
||||
fi
|
||||
|
||||
banner
|
||||
banner "Hauptmenü => Einstellungen => Automatisches Erstellung des Desktop Icons"
|
||||
grep -q "desktopiconautom=no" "${gl__config_file}" &>/dev/null && echo "Die Automatische Erstellung des Desktop Icons wurde ${gl__format_red}[ausgeschaltet]${gl__format_off}"
|
||||
grep -q "desktopiconautom=yes" "${gl__config_file}" &>/dev/null && echo "Die Automatische Erstellung des Desktop Icons wurde ${gl__format_green}[eingeschaltet]${gl__format_off}"
|
||||
ende
|
||||
|
|
Loading…
Reference in a new issue