„bHELPER.sh“ ändern

This commit is contained in:
dingens 2022-02-11 17:33:41 +00:00
parent 0817cde41f
commit 164e937ec1
1 changed files with 23 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
SkriptVersion="2022-02-08 20:35"
SkriptVersion="2022-02-11 18:30"
gl_SkriptName=$(basename "${0}")
gl__SkriptPfadName=$(cd "$(dirname "${0}")"; pwd -P)/$(basename "${0}")
@ -235,6 +235,7 @@ bannertitel="Hauptmenü => Hardware"
banner
echo " ${gl__format_red}| 0 |${gl__format_off} Hardwareinformationen eures Rechners (dmidecode)"
echo " ${gl__format_red}| 1 |${gl__format_off} Hardwareinformationen eures Rechners (inxi)"
echo " ${gl__format_red}| B |${gl__format_off} Bluetooth"
echo " ${gl__format_red}| 2 |${gl__format_off} Akkuinformationen eures Laptops (upower)"
echo " ${gl__format_red}| 3 |${gl__format_off} Akkuinformationen eures Laptops (inxi)"
echo " ${gl__format_red}| XK |${gl__format_off} xrandr - Bildschirmkonfiguration anzeigen lassen"
@ -269,6 +270,27 @@ read hardware
ende
;;
b|B)
[[ -f /usr/sbin/rfkill ]] && rfkill_bin="/usr/sbin/rfkill"
[[ -f /usr/bin/rfkill ]] && rfkill_bin="/usr/bin/rfkill"
bannertitel="Hauptmenü => Hardware => Bluetooth"
banner
echo "${gl__format_red}► Ausgeführte Syntax:${gl__format_off} bluetooth --help"
echo ""
echo "${gl__ausgabe_anfang}"
bluetooth --help
echo "${gl__ausgabe_ende}"
echo ""
echo ""
echo "${gl__format_red}► Ausgeführte Syntax:${gl__format_off} ${rfkill_bin} list bluetooth"
echo ""
echo "${gl__ausgabe_anfang}"
${rfkill_bin} list bluetooth
echo "${gl__ausgabe_ende}"
ende
;;
2)
bannertitel="Hauptmenü => Hardware => Akkuinformationen eures Laptops (upower)"
banner