mirror of
https://github.com/MHA-Team/PTS-Team.git
synced 2026-02-21 05:03:37 +00:00
64 lines
1.9 KiB
Bash
64 lines
1.9 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Title: PGBlitz (Reference Title File)
|
|
# Author(s): Admin9705 - Deiteq
|
|
# URL: https://pgblitz.com - http://github.pgblitz.com
|
|
# GNU: General Public License v3.0
|
|
################################################################################
|
|
question1() {
|
|
tee <<-EOF
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
🌎 Processer Policy Interface ⚡ Reference: processor.pgblitz.com
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
💬 Works only on Dedicated Servers! (No VPS, ESXI, VMs, and etc)
|
|
|
|
1. Performance Mode
|
|
2. OnDemand Mode
|
|
3. Conservative Mode
|
|
4. View Processor Policy
|
|
Z. Exit
|
|
|
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
EOF
|
|
|
|
read -p 'Type a Number | Press [ENTER]: ' typed </dev/tty
|
|
|
|
case $typed in
|
|
1)
|
|
ansible-playbook /opt/plexguide/menu/processor/processor.yml --tags performance
|
|
rebootpro
|
|
;;
|
|
2)
|
|
ansible-playbook /opt/plexguide/roles/menu/processor.yml --tags ondemand
|
|
rebootpro
|
|
;;
|
|
3)
|
|
ansible-playbook /opt/plexguide/roles/menu/processor.yml --tags conservative
|
|
rebootpro
|
|
;;
|
|
4)
|
|
echo ""
|
|
cpufreq-info
|
|
echo ""
|
|
read -p '🌍 Done? | Press [ENTER] ' typed </dev/tty
|
|
;;
|
|
z)
|
|
exit
|
|
;;
|
|
Z)
|
|
exit
|
|
;;
|
|
*)
|
|
question1
|
|
;;
|
|
esac
|
|
}
|
|
|
|
rebootpro() {
|
|
bash /opt/plexguide/menu/processor/scripts/reboot.sh
|
|
}
|
|
|
|
question1
|