„bHELPER.sh“ ändern
This commit is contained in:
parent
d05bef8908
commit
62a97907b9
146
bHELPER.sh
146
bHELPER.sh
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
SkriptVersion="2022-10-18 00:05"
|
||||
SkriptVersion="2022-10-18 22:55"
|
||||
|
||||
gl_SkriptName=$(basename "${0}")
|
||||
gl__SkriptPfadName=$(cd "$(dirname "${0}")"; pwd -P)/$(basename "${0}")
|
||||
|
@ -63,17 +63,17 @@ function task_title {
|
|||
}
|
||||
|
||||
function task_title_syntax {
|
||||
echo -e " ${gl__format_red}Ausgeführte Syntax:${gl__format_off} \n ${1}${gl__format_off}"
|
||||
echo ""
|
||||
echo -e " ${gl__format_red}Ausgeführte Syntax:${gl__format_off} ${1}${gl__format_off}"
|
||||
}
|
||||
|
||||
function terminal_output_begin {
|
||||
echo ""
|
||||
echo "${gl__format_red}---- Terminalausgabe (Anfang) --------------------------------------------------------------------------${gl__format_off}"
|
||||
}
|
||||
|
||||
function terminal_output_end {
|
||||
echo "${gl__format_red}---- Terminalausgabe (Ende) ----------------------------------------------------------------------------${gl__format_off}"
|
||||
echo ""
|
||||
echo "" ; echo ""
|
||||
}
|
||||
|
||||
################################################################################
|
||||
|
@ -195,19 +195,17 @@ function pause {
|
|||
echo -e ""
|
||||
echo -e ""
|
||||
read -p "${gl__format_red}Drücke ENTER um weiterzumachen${gl__format_off}"
|
||||
}
|
||||
}
|
||||
|
||||
function ende {
|
||||
echo -e ""
|
||||
echo -e ""
|
||||
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
|
||||
|
@ -312,37 +310,37 @@ read hardware
|
|||
|
||||
bannertitel="Hauptmenü => Hardware => Bluetooth"
|
||||
banner
|
||||
ausgefuehrte_syntax " systemctl list-unit-files | grep blue"
|
||||
task_title_syntax " systemctl list-unit-files | grep blue"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
systemctl list-unit-files | grep blue
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
echo ""
|
||||
ausgefuehrte_syntax " systemctl status bluetooth.service"
|
||||
task_title_syntax " systemctl status bluetooth.service"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
systemctl status bluetooth.service
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
echo ""
|
||||
ausgefuehrte_syntax " journalctl -o short-iso --no-pager -u bluetooth.service"
|
||||
task_title_syntax " journalctl -o short-iso --no-pager -u bluetooth.service"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
journalctl -o short-iso --no-pager -u bluetooth.service
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
echo ""
|
||||
ausgefuehrte_syntax " bluetooth --help"
|
||||
task_title_syntax " bluetooth --help"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
bluetooth --help
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
echo ""
|
||||
ausgefuehrte_syntax " rfkill list bluetooth"
|
||||
task_title_syntax " rfkill list bluetooth"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
${rfkill_bin} list bluetooth
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
echo ""
|
||||
ausgefuehrte_syntax " inxi --bluetooth"
|
||||
task_title_syntax " inxi --bluetooth"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
inxi --bluetooth
|
||||
echo "${gl__ausgabe_ende}"
|
||||
|
@ -352,13 +350,13 @@ read hardware
|
|||
a|A)
|
||||
bannertitel="Hauptmenü => Hardware => Akkuinformationen eures Laptops (upower, inxi)"
|
||||
banner
|
||||
ausgefuehrte_syntax " upower -i /org/freedesktop/UPower/devices/battery_BAT0"
|
||||
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 ""
|
||||
ausgefuehrte_syntax " inxi --battery"
|
||||
task_title_syntax " inxi --battery"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
inxi --battery
|
||||
echo "${gl__ausgabe_ende}"
|
||||
|
@ -583,20 +581,23 @@ echo "${gl__ausgabe_anfang}"
|
|||
sudo /usr/bin/flatpak uninstall --unused
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
ausgefuehrte_syntax " sudo flatpak uninstall --unused"
|
||||
task_title_syntax " sudo flatpak uninstall --unused"
|
||||
ende
|
||||
;;
|
||||
|
||||
s|S)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Programme suchen"
|
||||
banner
|
||||
|
||||
read -p "${gl__format_red}Suchtext eigeben: ${gl__format_off}" search
|
||||
banner
|
||||
echo "${gl__format_cyanlight}●【${gl__format_off}${gl__format_red}Programme suchen${gl__format_off}${gl__format_cyanlight}】${gl__format_off}"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
/usr/bin/flatpak search ${search}
|
||||
echo "${gl__ausgabe_ende}"
|
||||
ausgefuehrte_syntax " flatpak search ${search}"
|
||||
|
||||
task_title "Programme suchen"
|
||||
task_title_syntax "flatpak search ${search}"
|
||||
terminal_output_begin
|
||||
flatpak search ${search}
|
||||
terminal_output_end
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
@ -605,51 +606,57 @@ ausgefuehrte_syntax " flatpak search ${search}"
|
|||
banner
|
||||
read -p "${gl__format_red}Suchtext eigeben: ${gl__format_off}" search
|
||||
banner
|
||||
echo "${gl__format_cyanlight}●【${gl__format_off}${gl__format_red}Programme installieren${gl__format_off}${gl__format_cyanlight}】${gl__format_off}"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
/usr/bin/flatpak search ${search}
|
||||
echo "${gl__ausgabe_ende}"
|
||||
ausgefuehrte_syntax " flatpak search ${search}"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
task_title "Programm installieren"
|
||||
task_title_syntax "flatpak search ${search}"
|
||||
terminal_output_begin
|
||||
flatpak search ${search}
|
||||
terminal_output_end
|
||||
|
||||
read -p "${gl__format_red}Application ID eigeben: ${gl__format_off}" applicationid
|
||||
banner
|
||||
echo "${gl__format_cyanlight}●【${gl__format_off}${gl__format_red}Programme installieren${gl__format_off}${gl__format_cyanlight}】${gl__format_off}"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
sudo /usr/bin/flatpak install ${applicationid}
|
||||
echo "${gl__ausgabe_ende}"
|
||||
ausgefuehrte_syntax " sudo flatpak install ${applicationid}"
|
||||
|
||||
task_title "Programme installieren"
|
||||
task_title_syntax "sudo flatpak install ${applicationid}"
|
||||
terminal_output_begin
|
||||
sudo flatpak install ${applicationid}
|
||||
terminal_output_end
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
r|R)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Programme deinstallieren"
|
||||
banner
|
||||
echo "${gl__format_cyanlight}●【${gl__format_off}${gl__format_red}Detaillierte Liste aller installierten Programme${gl__format_off}${gl__format_cyanlight}】${gl__format_off}"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
/usr/bin/flatpak list --app --show-details
|
||||
echo "${gl__ausgabe_ende}"
|
||||
ausgefuehrte_syntax " flatpak list --app --show-details"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
task_title "Detaillierte Liste aller installierten Programme"
|
||||
task_title_syntax "flatpak list --app --show-details"
|
||||
terminal_output_begin
|
||||
flatpak list --app --show-details
|
||||
terminal_output_end
|
||||
|
||||
read -p "${gl__format_red}Application ID eigeben: ${gl__format_off}" applicationid
|
||||
banner
|
||||
echo "${gl__format_cyanlight}●【${gl__format_off}${gl__format_red}Programme deinstallieren${gl__format_off}${gl__format_cyanlight}】${gl__format_off}"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
sudo /usr/bin/flatpak uninstall ${applicationid}
|
||||
echo "${gl__ausgabe_ende}"
|
||||
ausgefuehrte_syntax " sudo flatpak uninstall ${applicationid}"
|
||||
|
||||
task_title "Programme deinstallieren"
|
||||
task_title_syntax "sudo flatpak uninstall ${applicationid}"
|
||||
terminal_output_begin
|
||||
sudo flatpak uninstall ${applicationid}
|
||||
terminal_output_end
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
g|G)
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Ungenutzter Pakete deinstallieren auflisten"
|
||||
bannertitel="Hauptmenü => Software => Flatpak => Ungenutzter Pakete deinstallieren"
|
||||
banner
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
|
||||
task_title "Ungenutzter Pakete deinstallieren"
|
||||
task_title_syntax "sudo flatpak uninstall --unused"
|
||||
terminal_output_begin
|
||||
sudo /usr/bin/flatpak uninstall --unused
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
ausgefuehrte_syntax " sudo flatpak uninstall --unused"
|
||||
terminal_output_end
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
@ -664,20 +671,19 @@ ausgefuehrte_syntax " sudo flatpak uninstall --unused"
|
|||
|
||||
if [ -f /usr/bin/zypper ] ; then
|
||||
|
||||
echo "${gl__format_cyanlight}● Daten der Reporitories aktualisieren${gl__format_off}"
|
||||
ausgefuehrte_syntax " sudo zypper refresh"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
task_title "Daten der Reporitories aktualisieren"
|
||||
task_title_syntax " sudo zypper refresh"
|
||||
|
||||
terminal_output_begin
|
||||
sudo zypper refresh
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
echo ""
|
||||
terminal_output_end
|
||||
|
||||
echo "${gl__format_cyanlight}● Alle noch nicht gepatchten CVEs auf diesen Betriebssystem auflisten${gl__format_off}"
|
||||
ausgefuehrte_syntax " zypper list-patches --cve"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
task_title "Alle noch nicht gepatchten CVEs auf diesen Betriebssystem auflisten"
|
||||
task_title_syntax " zypper list-patches --cve"
|
||||
|
||||
terminal_output_begin
|
||||
zypper list-patches --cve
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
terminal_output_end
|
||||
|
||||
fi
|
||||
|
||||
|
@ -700,14 +706,14 @@ fi
|
|||
bannertitel="Hauptmenü => Software => Programme => Mozilla Thunderbird"
|
||||
banner
|
||||
|
||||
ausgefuehrte_syntax " thunderbird --version"
|
||||
task_title_syntax " thunderbird --version"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
[[ -f /usr/bin/thunderbird ]] && thunderbird --version
|
||||
echo "${gl__ausgabe_ende}"
|
||||
|
||||
if [ -f "/usr/bin/zypper" ]; then
|
||||
echo ""
|
||||
ausgefuehrte_syntax " zypper info MozillaThunderbird"
|
||||
task_title_syntax " zypper info MozillaThunderbird"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
[[ -f /usr/bin/zypper ]] && zypper info MozillaThunderbird
|
||||
echo "${gl__ausgabe_ende}"
|
||||
|
@ -715,7 +721,7 @@ fi
|
|||
|
||||
if [ -f "/usr/bin/pacman" ]; then
|
||||
echo ""
|
||||
ausgefuehrte_syntax " pacman -Qii thunderbird"
|
||||
task_title_syntax " pacman -Qii thunderbird"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
[[ -f /usr/bin/pacman ]] && pacman -Qii thunderbird
|
||||
echo "${gl__ausgabe_ende}"
|
||||
|
@ -754,12 +760,12 @@ read netzwerk
|
|||
a|A)
|
||||
bannertitel="Hauptmenü => Netzwerk => WLAN Informationen"
|
||||
banner
|
||||
ausgefuehrte_syntax " ip address show"
|
||||
task_title_syntax " ip address show"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
ip address show
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
ausgefuehrte_syntax " ip route list"
|
||||
task_title_syntax " ip route list"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
ip route list
|
||||
echo "${gl__ausgabe_ende}"
|
||||
|
@ -773,12 +779,12 @@ echo "${gl__ausgabe_ende}"
|
|||
bannertitel="Hauptmenü => Netzwerk => WLAN Informationen"
|
||||
banner
|
||||
|
||||
ausgefuehrte_syntax " rfkill list wifi"
|
||||
task_title_syntax " rfkill list wifi"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
${rfkill_bin} list wifi
|
||||
echo "${gl__ausgabe_ende}"
|
||||
echo ""
|
||||
ausgefuehrte_syntax " inxi --network"
|
||||
task_title_syntax " inxi --network"
|
||||
echo "${gl__ausgabe_anfang}"
|
||||
inxi --network
|
||||
echo "${gl__ausgabe_ende}"
|
||||
|
|
Loading…
Reference in New Issue