This commit is contained in:
Cyril 2024-05-11 23:45:31 +02:00
parent 25d5f66f5e
commit 9653e77c7a
4 changed files with 26 additions and 11 deletions

View file

@ -180,7 +180,8 @@ function install_menu_3v3() {
elif [ ! -f "$ENTWARE_FILE" ]; then elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!" error_msg "Entware is needed, please install it first!"
else else
run "install_octoeverywhere" "install_menu_ui_3v3" #run "install_octoeverywhere" "install_menu_ui_3v3"
run "disabled_feature" "install_menu_ui_3v3"
fi;; fi;;
17) 17)
if [ -d "$MOONRAKER_OBICO_FOLDER" ]; then if [ -d "$MOONRAKER_OBICO_FOLDER" ]; then
@ -192,7 +193,8 @@ function install_menu_3v3() {
elif [ ! -f "$ENTWARE_FILE" ]; then elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!" error_msg "Entware is needed, please install it first!"
else else
run "install_moonraker_obico" "install_menu_ui_3v3" #run "install_moonraker_obico" "install_menu_ui_3v3"
run "disabled_feature" "install_menu_ui_3v3"
fi;; fi;;
18) 18)
if [ ! -d "$MOONRAKER_FOLDER" ]; then if [ ! -d "$MOONRAKER_FOLDER" ]; then
@ -208,7 +210,8 @@ function install_menu_3v3() {
elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then
error_msg "Fluidd or Mainsail is needed, please install one of them first!" error_msg "Fluidd or Mainsail is needed, please install one of them first!"
else else
run "install_mobileraker_companion" "install_menu_ui_3v3" #run "install_mobileraker_companion" "install_menu_ui_3v3"
run "disabled_feature" "install_menu_ui_3v3"
fi;; fi;;
20) 20)
if [ -d "$OCTOAPP_COMPANION_FOLDER" ]; then if [ -d "$OCTOAPP_COMPANION_FOLDER" ]; then
@ -220,7 +223,8 @@ function install_menu_3v3() {
elif [ ! -f "$ENTWARE_FILE" ]; then elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!" error_msg "Entware is needed, please install it first!"
else else
run "install_octoapp_companion" "install_menu_ui_3v3" #run "install_octoapp_companion" "install_menu_ui_3v3"
run "disabled_feature" "install_menu_ui_3v3"
fi;; fi;;
21) 21)
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then

View file

@ -199,7 +199,8 @@ function install_menu_k1() {
elif [ ! -f "$ENTWARE_FILE" ]; then elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!" error_msg "Entware is needed, please install it first!"
else else
run "install_octoeverywhere" "install_menu_ui_k1" #run "install_octoeverywhere" "install_menu_ui_k1"
run "install_simplyprint" "install_menu_ui_k1"
fi;; fi;;
20) 20)
if [ -d "$MOONRAKER_OBICO_FOLDER" ]; then if [ -d "$MOONRAKER_OBICO_FOLDER" ]; then
@ -227,7 +228,8 @@ function install_menu_k1() {
elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then
error_msg "Fluidd or Mainsail is needed, please install one of them first!" error_msg "Fluidd or Mainsail is needed, please install one of them first!"
else else
run "install_mobileraker_companion" "install_menu_ui_k1" #run "install_mobileraker_companion" "install_menu_ui_k1"
run "install_simplyprint" "install_menu_ui_k1"
fi;; fi;;
23) 23)
if [ -d "$OCTOAPP_COMPANION_FOLDER" ]; then if [ -d "$OCTOAPP_COMPANION_FOLDER" ]; then
@ -239,7 +241,8 @@ function install_menu_k1() {
elif [ ! -f "$ENTWARE_FILE" ]; then elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!" error_msg "Entware is needed, please install it first!"
else else
run "install_octoapp_companion" "install_menu_ui_k1" #run "install_octoapp_companion" "install_menu_ui_k1"
run "install_simplyprint" "install_menu_ui_k1"
fi;; fi;;
24) 24)
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then

View file

@ -148,7 +148,8 @@ function install_menu_ke() {
elif [ ! -f "$ENTWARE_FILE" ]; then elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!" error_msg "Entware is needed, please install it first!"
else else
run "install_octoeverywhere" "install_menu_ui_ke" #run "install_octoeverywhere" "install_menu_ui_ke"
run "install_simplyprint" "install_menu_ui_ke"
fi;; fi;;
13) 13)
if [ -d "$MOONRAKER_OBICO_FOLDER" ]; then if [ -d "$MOONRAKER_OBICO_FOLDER" ]; then
@ -160,7 +161,8 @@ function install_menu_ke() {
elif [ ! -f "$ENTWARE_FILE" ]; then elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!" error_msg "Entware is needed, please install it first!"
else else
run "install_moonraker_obico" "install_menu_ui_ke" #run "install_moonraker_obico" "install_menu_ui_ke"
run "install_simplyprint" "install_menu_ui_ke"
fi;; fi;;
14) 14)
if [ ! -d "$MOONRAKER_FOLDER" ] && [ ! -d "$NGINX_FOLDER" ]; then if [ ! -d "$MOONRAKER_FOLDER" ] && [ ! -d "$NGINX_FOLDER" ]; then
@ -176,7 +178,8 @@ function install_menu_ke() {
elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then
error_msg "Fluidd or Mainsail is needed, please install one of them first!" error_msg "Fluidd or Mainsail is needed, please install one of them first!"
else else
run "install_mobileraker_companion" "install_menu_ui_ke" #run "install_mobileraker_companion" "install_menu_ui_ke"
run "install_simplyprint" "install_menu_ui_ke"
fi;; fi;;
16) 16)
if [ -d "$OCTOAPP_COMPANION_FOLDER" ]; then if [ -d "$OCTOAPP_COMPANION_FOLDER" ]; then
@ -188,7 +191,8 @@ function install_menu_ke() {
elif [ ! -f "$ENTWARE_FILE" ]; then elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!" error_msg "Entware is needed, please install it first!"
else else
run "install_octoapp_companion" "install_menu_ui_ke" #run "install_octoapp_companion" "install_menu_ui_ke"
run "install_simplyprint" "install_menu_ui_ke"
fi;; fi;;
17) 17)
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then

View file

@ -194,4 +194,8 @@ function restart_klipper() {
set +e set +e
/etc/init.d/S55klipper_service restart /etc/init.d/S55klipper_service restart
set -e set -e
}
function disabled_feature() {
error_msg "Due to some compatibility issues, this feature is temporarily disabled!"
} }