bHELPER.sh aktualisiert
This commit is contained in:
parent
2c07075fc3
commit
1cf5708fcf
123
bHELPER.sh
123
bHELPER.sh
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
SkriptVersion="2024-03-16 17:00"
|
||||
SkriptVersion="2024-03-24 00:45"
|
||||
|
||||
gl_SkriptName=$(basename "${0}")
|
||||
gl__SkriptPfadName=$(cd "$(dirname "${0}")"; pwd -P)/$(basename "${0}")
|
||||
|
@ -209,6 +209,7 @@ echo ""
|
|||
echo ""
|
||||
echo " ${gl__format_red}| H |${gl__format_off} Hardware ${gl__format_red}| S |${gl__format_off} Software"
|
||||
echo " ${gl__format_red}| F |${gl__format_off} Dateien & Verzeichn. ${gl__format_red}| I |${gl__format_off} Netzwerk"
|
||||
echo " ${gl__format_red}| R |${gl__format_off} Herunterf./Neustart "
|
||||
if [[ ${XDG_CURRENT_DESKTOP} =~ .*KDE.* ]]
|
||||
then
|
||||
echo " ${gl__format_red}| K |${gl__format_off} KDE Plasma"
|
||||
|
@ -927,6 +928,124 @@ amixer set Capture toggle
|
|||
|
||||
|
||||
|
||||
################################################################################
|
||||
### Herunterfahren/Neustarten
|
||||
################################################################################
|
||||
|
||||
r|R)
|
||||
[[ -f /usr/sbin/shutdown ]] && shutdown_bin="/usr/sbin/shutdown"
|
||||
[[ -f /usr/bin/shutdown ]] && shutdown_bin="/usr/bin/shutdown"
|
||||
|
||||
bannertitel="Hauptmenü => Software"
|
||||
banner
|
||||
|
||||
echo " ${gl__format_red}HERUNTERFAHREN${gl__format_off}"
|
||||
echo " ${gl__format_red}==============${gl__format_off}"
|
||||
echo " ${gl__format_red}| H1 |${gl__format_off} Sofort herunterfahren"
|
||||
echo " ${gl__format_red}| H2 |${gl__format_off} In x Minuten herunterfahren"
|
||||
echo " ${gl__format_red}| H3 |${gl__format_off} Um exakt xx:xx Uhr herunterfahren"
|
||||
echo ""
|
||||
echo " ${gl__format_red}NEUSTARTEN${gl__format_off}"
|
||||
echo " ${gl__format_red}==========${gl__format_off}"
|
||||
echo " ${gl__format_red}| N1 |${gl__format_off} Sofort neustarten"
|
||||
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 ""
|
||||
echo ""
|
||||
echo " ${gl__format_red}| U |${gl__format_off} ${gl__format_red}${gl__prefix}${gl__format_off} aktualisieren"
|
||||
echo ""
|
||||
echo ""
|
||||
echo "${gl__bittewaehlen}"
|
||||
|
||||
read shutdownreboot
|
||||
|
||||
case ${shutdownreboot} in
|
||||
|
||||
h1|H1)
|
||||
bannertitel="Hauptmenü => Sofort Herunterfahren"
|
||||
banner
|
||||
|
||||
${shutdown_bin} -P now
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
||||
h2|H2)
|
||||
bannertitel="Hauptmenü => In x Minuten Herunterfahren"
|
||||
banner
|
||||
|
||||
read -p "${gl__format_red}Bitte eine Ganzzahl eingeben (60 oder 65 oder ...) und ENTER drücken: ${gl__format_off}" minuten
|
||||
|
||||
${shutdown_bin} -h ${minuten}
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
||||
h3|H3)
|
||||
bannertitel="Hauptmenü => Um exakt xx:xx Herunterfahren"
|
||||
banner
|
||||
|
||||
read -p "${gl__format_red}Bitte eine Ganzzahl eingeben (20:31 oder 23:59 oder...) und ENTER drücken: ${gl__format_off}" ssmm
|
||||
|
||||
${shutdown_bin} -h ${ssmm}
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
||||
n1|N1)
|
||||
bannertitel="Hauptmenü => Sofort Neustarten"
|
||||
banner
|
||||
|
||||
${shutdown_bin} --reboot now
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
||||
n2|N2)
|
||||
bannertitel="Hauptmenü => In x Minuten Neustarten"
|
||||
banner
|
||||
|
||||
read -p "${gl__format_red}Bitte eine Ganzzahl eingeben (60 oder 65 oder ...) und ENTER drücken: ${gl__format_off}" minuten
|
||||
|
||||
${shutdown_bin} -r +${minuten}
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
||||
n3|N3)
|
||||
bannertitel="Hauptmenü => Um exakt xx:xx Neustarten"
|
||||
banner
|
||||
|
||||
read -p "${gl__format_red}Bitte eine Ganzzahl eingeben (20:31 oder 23:59 oder...) und ENTER drücken: ${gl__format_off}" ssmm
|
||||
|
||||
${shutdown_bin} -r ${ssmm}
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
|
||||
c|C)
|
||||
bannertitel="Hauptmenü => Das geplante Herunterfahren/Neustarten abbrechen"
|
||||
banner
|
||||
|
||||
${shutdown_bin} -c
|
||||
|
||||
ende
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
;;
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
### bHELPER aktualisieren
|
||||
################################################################################
|
||||
|
@ -1024,4 +1143,4 @@ nohup ${gl__fav_editor} "${0}" &
|
|||
|
||||
esac
|
||||
|
||||
. "${gl__SkriptPfadName}" && exit 0
|
||||
. "${gl__SkriptPfadName}" && exit 0
|
||||
|
|
Loading…
Reference in New Issue