mirror of
https://github.com/ShaYmez/hblink3-docker-install.git
synced 2025-12-22 21:49:50 +13:00
Update menu
Light the fire!
This commit is contained in:
parent
7943a9e3cf
commit
d441707f28
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# HBLINK3 OBP MASTER Configuration menu DO-NOT-ALTER THIS FILE!!!!!!!!!!
|
|
||||||
# SYSTEM-X FORMERLY RYSEN MASTER+ (HBlink3) A FORK OF THE FREEDMR / HBLINK PROJECT
|
# HBLINK3 DOCKER CONTROL SCRIPTS V1.9
|
||||||
# This script written by Shane Daley M0VUB. The script gracefully shuts down services while services are cleaned and logs are truncated.
|
# This script written by Shane Daley M0VUB. The script gracefully shuts down services while services are cleaned and logs are truncated.
|
||||||
# We can also add items in this script for future use like updates or further log trims.
|
# We can also add items in this script for future use like updates or further log trims.
|
||||||
# Add to the cron tab for auto execution
|
# Add to the cron tab for auto execution
|
||||||
@ -19,52 +19,55 @@
|
|||||||
|
|
||||||
# Main MENU system.....
|
# Main MENU system.....
|
||||||
while : ; do
|
while : ; do
|
||||||
menuopt=$(whiptail --title "HBlink3 OBPMaster Control Version 1.9CL" --menu "Select option by using the up and down arrows on your keyboard. Once selected please press enter:" 23 56 13 \
|
menuopt=$(whiptail --title "HBlink3 Control Version 1.9PL" --menu "Select option by using the up and down arrows on your keyboard. Once selected please press enter:" 23 56 13 \
|
||||||
1 " Restart OBPMaster " \
|
1 " Stop HBlink " \
|
||||||
2 " Stop OBPMaster " \
|
2 " Start HBlink " \
|
||||||
3 " Start OBPMaster " \
|
3 " Restart HBlink " \
|
||||||
4 " Hard Flush OBPMaster " \
|
4 " Update HBlink / Docker " \
|
||||||
5 " Soft Flush OBPMaster (Not Used) " \
|
5 " Flush HBlink / Truncate Logs " \
|
||||||
6 " Edit Configuration " \
|
6 " Edit Configuration " \
|
||||||
7 " Edit rules.py " \
|
7 " Edit Routing Rules / Python " \
|
||||||
8 " Update OBPMaster " \
|
8 " Edit Dashboard Config " \
|
||||||
9 " Full Upgrade OBPMaster " \
|
9 " Full Upgrade OBPMaster " \
|
||||||
10 " Update Operating System " \
|
10 " System Update / apt update " \
|
||||||
11 " Reboot Entire Server " 3>&1 1>&2 2>&3)
|
11 " Reboot Entire Server "
|
||||||
|
12 " Shutdown Entire Server " 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
# Back-end rysen menu
|
# Back-end HBlink3 menu
|
||||||
#exitstatus=$?
|
#exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
echo "You have chosen option:" $menuopt
|
echo "You have chosen option:" $menuopt
|
||||||
else
|
else
|
||||||
echo "Type 'menu' to start HBlink3 OBPMaster Control Menu "; break;
|
echo "Type 'menu' to start HBlink3 Control Menu "; break;
|
||||||
fi
|
fi
|
||||||
# Action
|
# Action
|
||||||
case $menuopt in
|
case $menuopt in
|
||||||
1)
|
1)
|
||||||
/usr/bin/hblink-restart ;;
|
sudo /usr/local/sbin/hblink-stop ;;
|
||||||
2)
|
2)
|
||||||
/usr/bin/hblink-stop ;;
|
sudo /usr/local/sbin/hblink-start ;;
|
||||||
3)
|
3)
|
||||||
/usr/bin/hblink-start ;;
|
sudo /usr/local/sbin/hblink-restart ;;
|
||||||
4)
|
4)
|
||||||
/usr/bin/hblink-flush ;;
|
sudo /usr/local/sbin/hblink-update ;;
|
||||||
5)
|
5)
|
||||||
/usr/bin/hblink-soft-flush ;;
|
sudo /usr/local/sbin/hblink-flush ;;
|
||||||
6)
|
6)
|
||||||
sudo nano /etc/hblink3/hblink.cfg ;;
|
sudo nano /etc/hblink3/hblink.cfg ;;
|
||||||
7)
|
7)
|
||||||
sudo nano /etc/hblink3/rules.py ;;
|
sudo nano /etc/hblink3/rules.py ;;
|
||||||
8)
|
8)
|
||||||
/usr/bin/hblink-update ;;
|
sudo nano /opt/HBMonv2/config.py ;;
|
||||||
9)
|
9)
|
||||||
echo "No updates" && sleep 2 ;;
|
sudo /usr/local/sbin/hblink-upgrade ;;
|
||||||
10)
|
10)
|
||||||
sudo apt-get update -y && sudo apt-get upgrade ;;
|
sudo apt-get update -y && sudo apt-get upgrade ;;
|
||||||
11)
|
11)
|
||||||
sudo reboot now ;
|
sudo reboot ;;
|
||||||
|
12)
|
||||||
|
sudo shutdown now ;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
# Menu system by ShaYmez https://github/ShaYmez
|
# Wiptail menu system by ShaYmez https://github/ShaYmez
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user