This commit is contained in:
Cyril 2024-05-19 23:18:35 +02:00
parent e6a601024c
commit efb2447872
6 changed files with 213 additions and 41 deletions

View file

@ -19,20 +19,21 @@ function install_menu_ui_ke() {
subtitle '•IMPROVEMENTS:'
menu_option ' 6' 'Install' 'Improved Shapers Calibrations'
menu_option ' 7' 'Install' 'Save Z-Offset Macros'
menu_option ' 8' 'Install' 'Git Backup'
menu_option ' 8' 'Install' 'M600 Support'
menu_option ' 9' 'Install' 'Git Backup'
hr
subtitle '•CAMERA:'
menu_option ' 9' 'Install' 'Moonraker Timelapse'
menu_option '10' 'Install' 'Nebula Camera Settings Control'
menu_option '11' 'Install' 'USB Camera Support'
menu_option '10' 'Install' 'Moonraker Timelapse'
menu_option '11' 'Install' 'Nebula Camera Settings Control'
menu_option '12' 'Install' 'USB Camera Support'
hr
subtitle '•REMOTE ACCESS:'
menu_option '12' 'Install' 'OctoEverywhere'
menu_option '13' 'Install' 'Moonraker Obico'
menu_option '14' 'Install' 'GuppyFLO'
menu_option '15' 'Install' 'Mobileraker Companion'
menu_option '16' 'Install' 'OctoApp Companion'
menu_option '17' 'Install' 'SimplyPrint'
menu_option '13' 'Install' 'OctoEverywhere'
menu_option '14' 'Install' 'Moonraker Obico'
menu_option '15' 'Install' 'GuppyFLO'
menu_option '16' 'Install' 'Mobileraker Companion'
menu_option '17' 'Install' 'OctoApp Companion'
menu_option '18' 'Install' 'SimplyPrint'
hr
inner_line
hr
@ -101,6 +102,12 @@ function install_menu_ke() {
run "install_save_zoffset_macros" "install_menu_ui_ke"
fi;;
8)
if [ -f "$M600_SUPPORT_FILE" ]; then
error_msg "M600 Support is already installed!"
else
run "install_m600_support" "install_menu_ui_k1"
fi;;
9)
if [ -f "$GIT_BACKUP_FILE" ]; then
error_msg "Git Backup is already installed!"
elif [ ! -f "$ENTWARE_FILE" ]; then
@ -110,7 +117,7 @@ function install_menu_ke() {
else
run "install_git_backup" "install_menu_ui_ke"
fi;;
9)
10)
if [ -f "$TIMELAPSE_FILE" ]; then
error_msg "Moonraker Timelapse is already installed!"
elif [ ! -f "$ENTWARE_FILE" ]; then
@ -118,7 +125,7 @@ function install_menu_ke() {
else
run "install_moonraker_timelapse" "install_menu_ui_ke"
fi;;
10)
11)
if [ -f "$CAMERA_SETTINGS_FILE" ]; then
error_msg "Nebula Camera Settings Control is already installed!"
elif ! v4l2-ctl --list-devices | grep -q 'CCX2F3298'; then
@ -128,7 +135,7 @@ function install_menu_ke() {
else
run "install_camera_settings_control" "install_menu_ui_ke"
fi;;
11)
12)
if [ -f "$USB_CAMERA_FILE" ]; then
error_msg "Camera USB Support is already installed!"
elif v4l2-ctl --list-devices | grep -qE 'CREALITY|CCX2F3298'; then
@ -138,7 +145,7 @@ function install_menu_ke() {
else
run "install_usb_camera" "install_menu_ui_ke"
fi;;
12)
13)
if [ -d "$OCTOEVERYWHERE_FOLDER" ]; then
error_msg "OctoEverywhere is already installed!"
elif [ ! -d "$MOONRAKER_FOLDER" ]; then
@ -150,7 +157,7 @@ function install_menu_ke() {
else
run "install_octoeverywhere" "install_menu_ui_ke"
fi;;
13)
14)
if [ ! -d "$MOONRAKER_FOLDER" ]; then
error_msg "Moonraker and Nginx are needed, please install them first!"
elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then
@ -160,13 +167,13 @@ function install_menu_ke() {
else
run "install_moonraker_obico" "install_menu_ui_ke"
fi;;
14)
15)
if [ ! -d "$MOONRAKER_FOLDER" ] && [ ! -d "$NGINX_FOLDER" ]; then
error_msg "Moonraker and Nginx are needed, please install them first!"
else
run "install_guppyflo" "install_menu_ui_ke"
fi;;
15)
16)
if [ -d "$MOBILERAKER_COMPANION_FOLDER" ]; then
error_msg "Mobileraker Companion is already installed!"
elif [ ! -d "$MOONRAKER_FOLDER" ]; then
@ -178,7 +185,7 @@ function install_menu_ke() {
else
run "install_mobileraker_companion" "install_menu_ui_ke"
fi;;
16)
17)
if [ -d "$OCTOAPP_COMPANION_FOLDER" ]; then
error_msg "OctoApp Companion is already installed!"
elif [ ! -d "$MOONRAKER_FOLDER" ]; then
@ -190,7 +197,7 @@ function install_menu_ke() {
else
run "install_octoapp_companion" "install_menu_ui_ke"
fi;;
17)
18)
if grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
error_msg "SimplyPrint is already installed!"
elif [ ! -d "$MOONRAKER_FOLDER" ]; then
@ -209,4 +216,4 @@ function install_menu_ke() {
esac
done
install_menu_ke
}
}

View file

@ -19,20 +19,21 @@ function remove_menu_ui_ke() {
subtitle '•IMPROVEMENTS:'
menu_option ' 6' 'Remove' 'Improved Shapers Calibrations'
menu_option ' 7' 'Remove' 'Save Z-Offset Macros'
menu_option ' 8' 'Remove' 'Git Backup'
menu_option ' 8' 'Remove' 'M600 Support'
menu_option ' 9' 'Remove' 'Git Backup'
hr
subtitle '•CAMERA:'
menu_option ' 9' 'Remove' 'Moonraker Timelapse'
menu_option '10' 'Install' 'Nebula Camera Settings Control'
menu_option '11' 'Remove' 'USB Camera Support'
menu_option '10' 'Remove' 'Moonraker Timelapse'
menu_option '11' 'Install' 'Nebula Camera Settings Control'
menu_option '12' 'Remove' 'USB Camera Support'
hr
subtitle '•REMOTE ACCESS:'
menu_option '12' 'Remove' 'OctoEverywhere'
menu_option '13' 'Remove' 'Moonraker Obico'
menu_option '14' 'Remove' 'GuppyFLO'
menu_option '15' 'Remove' 'Mobileraker Companion'
menu_option '16' 'Remove' 'OctoApp Companion'
menu_option '17' 'Remove' 'SimplyPrint'
menu_option '13' 'Remove' 'OctoEverywhere'
menu_option '14' 'Remove' 'Moonraker Obico'
menu_option '15' 'Remove' 'GuppyFLO'
menu_option '16' 'Remove' 'Mobileraker Companion'
menu_option '17' 'Remove' 'OctoApp Companion'
menu_option '18' 'Remove' 'SimplyPrint'
hr
inner_line
hr
@ -119,60 +120,66 @@ function remove_menu_ke() {
run "remove_save_zoffset_macros" "remove_menu_ui_ke"
fi;;
8)
if [ ! -f "$M600_SUPPORT_FILE" ]; then
error_msg "M600 Support is not installed!"
else
run "remove_m600_support" "remove_menu_ui_ke"
fi;;
9)
if [ ! -f "$GIT_BACKUP_FILE" ]; then
error_msg "Git Backup is not installed!"
else
run "remove_git_backup" "remove_menu_ui_ke"
fi;;
9)
10)
if [ ! -f "$TIMELAPSE_FILE" ]; then
error_msg "Moonraker Timelapse is not installed!"
else
run "remove_moonraker_timelapse" "remove_menu_ui_ke"
fi;;
10)
11)
if [ ! -f "$CAMERA_SETTINGS_FILE" ]; then
error_msg "Nebula Camera Settings Control is not installed!"
else
run "remove_camera_settings_control" "remove_menu_ui_ke"
fi;;
11)
12)
if [ ! -f "$USB_CAMERA_FILE" ]; then
error_msg "USB Camera Support is not installed!"
else
run "remove_usb_camera" "remove_menu_ui_3v3"
fi;;
12)
13)
if [ ! -d "$OCTOEVERYWHERE_FOLDER" ]; then
error_msg "OctoEverywhere is not installed!"
else
run "remove_octoeverywhere" "remove_menu_ui_ke"
fi;;
13)
14)
if [ ! -d "$MOONRAKER_OBICO_FOLDER" ]; then
error_msg "Moonraker Obico is not installed!"
else
run "remove_moonraker_obico" "remove_menu_ui_ke"
fi;;
14)
15)
if [ ! -d "$GUPPYFLO_FOLDER" ]; then
error_msg "GuppyFLO is not installed!"
else
run "remove_guppyflo" "remove_menu_ui_ke"
fi;;
15)
16)
if [ ! -d "$MOBILERAKER_COMPANION_FOLDER" ]; then
error_msg "Mobileraker Companion is not installed!"
else
run "remove_mobileraker_companion" "remove_menu_ui_ke"
fi;;
16)
17)
if [ ! -d "$OCTOAPP_COMPANION_FOLDER" ]; then
error_msg "OctoApp Companion is not installed!"
else
run "remove_octoapp_companion" "remove_menu_ui_ke"
fi;;
17)
18)
if ! grep -q "\[simplyprint\]" "$MOONRAKER_CFG"; then
error_msg "SimplyPrint is not installed!"
else
@ -187,4 +194,4 @@ function remove_menu_ke() {
esac
done
remove_menu_ke
}
}