Improve panel

This commit is contained in:
Skylar Grant 2024-11-24 19:20:44 -05:00
parent 225d464ad6
commit bccbe3dad6

8
src/_EMR/panel.sh Normal file → Executable file
View File

@ -4,6 +4,9 @@
ROOT_PATH="/srv/hestia" ROOT_PATH="/srv/hestia"
EMR_FOLDER="src/_EMR" EMR_FOLDER="src/_EMR"
# Loop
while true; do
# Prompt for input # Prompt for input
echo "##########################################" echo "##########################################"
echo "# Hestia Emergency Control Panel #" echo "# Hestia Emergency Control Panel #"
@ -27,6 +30,8 @@ case $choice in
echo "Turning Exhaust ON" echo "Turning Exhaust ON"
cd $ROOT_PATH cd $ROOT_PATH
node $EMR_FOLDER/exh_on.js node $EMR_FOLDER/exh_on.js
# Return to the prompt
;; ;;
2) 2)
echo "Turning Exhaust OFF" echo "Turning Exhaust OFF"
@ -55,8 +60,11 @@ case $choice in
;; ;;
0) 0)
echo "Exiting" echo "Exiting"
exit
break
;; ;;
*) *)
echo "Invalid input" echo "Invalid input"
;; ;;
esac esac
done