Improve panel
This commit is contained in:
parent
225d464ad6
commit
bccbe3dad6
8
src/_EMR/panel.sh
Normal file → Executable file
8
src/_EMR/panel.sh
Normal file → Executable file
@ -4,6 +4,9 @@
|
||||
ROOT_PATH="/srv/hestia"
|
||||
EMR_FOLDER="src/_EMR"
|
||||
|
||||
|
||||
# Loop
|
||||
while true; do
|
||||
# Prompt for input
|
||||
echo "##########################################"
|
||||
echo "# Hestia Emergency Control Panel #"
|
||||
@ -27,6 +30,8 @@ case $choice in
|
||||
echo "Turning Exhaust ON"
|
||||
cd $ROOT_PATH
|
||||
node $EMR_FOLDER/exh_on.js
|
||||
# Return to the prompt
|
||||
|
||||
;;
|
||||
2)
|
||||
echo "Turning Exhaust OFF"
|
||||
@ -55,8 +60,11 @@ case $choice in
|
||||
;;
|
||||
0)
|
||||
echo "Exiting"
|
||||
exit
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "Invalid input"
|
||||
;;
|
||||
esac
|
||||
done
|
Loading…
Reference in New Issue
Block a user