From 164e937ec1f0b65e01116c1753308c741a5478b6 Mon Sep 17 00:00:00 2001 From: dingens Date: Fri, 11 Feb 2022 17:33:41 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EbHELPER.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bHELPER.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/bHELPER.sh b/bHELPER.sh index 3999362..7c8ff80 100644 --- a/bHELPER.sh +++ b/bHELPER.sh @@ -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