This commit is contained in:
Cyril 2024-03-31 23:35:16 +02:00
parent 041223591f
commit 9e9081e4cc
8 changed files with 126 additions and 0 deletions

View file

@ -20,6 +20,14 @@ function check_file_ke() {
fi
}
function check_simplyprint_ke() {
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
echo -e "${green}"
else
echo -e "${red}"
fi
}
function info_menu_ui_ke() {
top_line
title '[ INFORMATIONS MENU ]' "${yellow}"
@ -49,6 +57,7 @@ function info_menu_ui_ke() {
info_line "$(check_folder_ke "$GUPPYFLO_FOLDER")" 'GuppyFLO'
info_line "$(check_folder_ke "$MOBILERAKER_COMPANION_FOLDER")" 'Mobileraker Companion'
info_line "$(check_folder_ke "$OCTOAPP_COMPANION_FOLDER")" 'OctoApp Companion'
info_line "$(check_simplyprint_ke)" 'SimplyPrint'
hr
subtitle '•CUSTOMIZATION:'
info_line "$(check_file_ke "$CREALITY_WEB_FILE")" 'Creality Web Interface'

View file

@ -31,6 +31,7 @@ function install_menu_ui_ke() {
menu_option '13' 'Install' 'GuppyFLO'
menu_option '14' 'Install' 'Mobileraker Companion'
menu_option '15' 'Install' 'OctoApp Companion'
menu_option '16' 'Install' 'SimplyPrint'
hr
inner_line
hr
@ -174,6 +175,16 @@ function install_menu_ke() {
else
run "install_octoapp_companion" "install_menu_ui_ke"
fi;;
16)
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
error_msg "SimplyPrint is already installed!"
elif [ ! -d "$MOONRAKER_FOLDER" ]; then
error_msg "Moonraker and Nginx are needed, please install them first!"
elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then
error_msg "Fluidd or Mainsail is needed, please install it first!"
else
run "install_simplyprint" "install_menu_ui_ke"
fi;;
B|b)
clear; main_menu; break;;
Q|q)

View file

@ -31,6 +31,7 @@ function remove_menu_ui_ke() {
menu_option '13' 'Remove' 'GuppyFLO'
menu_option '14' 'Remove' 'Mobileraker Companion'
menu_option '15' 'Remove' 'OctoApp Companion'
menu_option '16' 'Remove' 'SimplyPrint'
hr
inner_line
hr
@ -160,6 +161,12 @@ function remove_menu_ke() {
else
run "remove_octoapp_companion" "remove_menu_ui_ke"
fi;;
16)
if ! grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
error_msg "SimplyPrint is not installed!"
else
run "remove_simplyprint" "remove_menu_ui"
fi;;
B|b)
clear; main_menu; break;;
Q|q)