Merge branch 'master' into dev
This commit is contained in:
@@ -2,11 +2,13 @@ advanced_ui(){
|
||||
top_border
|
||||
echo -e "| ${yellow}~~~~~~~~~~~~~ [ Advanced Menu ] ~~~~~~~~~~~~~${default} | "
|
||||
hr
|
||||
echo -e "| 0) $OPRINT_SERVICE_STATUS| "
|
||||
hr
|
||||
echo -e "| | | "
|
||||
if [ ! "$OPRINT_SERVICE_STATUS" == "" ]; then
|
||||
echo -e "| 0) $OPRINT_SERVICE_STATUS| "
|
||||
hr
|
||||
echo -e "| | | "
|
||||
fi
|
||||
echo -e "| Klipper: | Mainsail: | "
|
||||
echo -e "| 1) [Switch Version] | 7) [Theme installer] | "
|
||||
echo -e "| 1) [Switch Branch] | 7) [Theme installer] | "
|
||||
echo -e "| 2) [Rollback] | | "
|
||||
echo -e "| | System: | "
|
||||
echo -e "| Firmware: | 8) [Change hostname] | "
|
||||
@@ -14,6 +16,8 @@ advanced_ui(){
|
||||
echo -e "| 4) [Build + Flash] | Extensions: | "
|
||||
echo -e "| 5) [Build + SD Flash] | 9) [Shell Command] | "
|
||||
echo -e "| 6) [Get MCU ID] | | "
|
||||
echo -e "| | CustomPiOS: | "
|
||||
echo -e "| | 10) [Migration Helper] | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
@@ -40,7 +44,7 @@ advanced_menu(){
|
||||
clear && print_header
|
||||
flash_routine
|
||||
if [ $FLASH_FIRMWARE = "true" ]; then
|
||||
status_msg "Please wait..." && sleep 5 && build_fw
|
||||
status_msg "Please wait..." && sleep 3 && build_fw
|
||||
select_mcu_id
|
||||
fi
|
||||
print_msg && clear_msg
|
||||
@@ -49,7 +53,7 @@ advanced_menu(){
|
||||
clear && print_header
|
||||
flash_routine_sd
|
||||
if [ $FLASH_FW_SD = "true" ]; then
|
||||
status_msg "Please wait..." && sleep 5 && build_fw
|
||||
status_msg "Please wait..." && sleep 3 && build_fw
|
||||
select_mcu_id
|
||||
fi
|
||||
print_msg && clear_msg
|
||||
@@ -66,6 +70,8 @@ advanced_menu(){
|
||||
advanced_ui;;
|
||||
9)
|
||||
do_action "setup_gcode_shell_command" "advanced_ui";;
|
||||
10)
|
||||
do_action "migration_menu";;
|
||||
Q|q)
|
||||
clear; main_menu; break;;
|
||||
*)
|
||||
@@ -163,3 +169,40 @@ rollback_ui(){
|
||||
echo -e "| $PREV_UI | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
#############################################################
|
||||
#############################################################
|
||||
|
||||
migration_ui(){
|
||||
top_border
|
||||
echo -e "| $(title_msg "~~~~~~~~~ [ CustomPiOS Migration ] ~~~~~~~~~~") | "
|
||||
hr
|
||||
echo -e "| This function will help you to migrate a vanilla | "
|
||||
echo -e "| MainsailOS or FluiddPi image to a newer state. | "
|
||||
blank_line
|
||||
echo -e "| Only use this function if you use MainsailOS 0.4.0 | "
|
||||
echo -e "| or lower, or FluiddPi v1.13.0 or lower. | "
|
||||
blank_line
|
||||
echo -e "| Please have a look at the KIAUH changelog for more | "
|
||||
echo -e "| details on what this function will do. | "
|
||||
hr
|
||||
echo -e "| | "
|
||||
echo -e "| 1) [Migrate MainsailOS] | "
|
||||
echo -e "| 2) [Migrate FluiddPi] | "
|
||||
echo -e "| | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
migration_menu(){
|
||||
print_msg && clear_msg
|
||||
migration_ui
|
||||
while true; do
|
||||
read -p "${cyan}Perform action:${default} " action; echo
|
||||
case "$action" in
|
||||
1) migrate_custompios "mainsail"; migration_menu;;
|
||||
2) migrate_custompios "fluiddpi"; migration_menu;;
|
||||
Q|q) clear; advanced_menu; break;;
|
||||
*) print_unkown_cmd; migration_menu;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
@@ -33,6 +33,8 @@ kiauh_update_msg(){
|
||||
top_border
|
||||
echo -e "|${green} New KIAUH update available! ${default}| "
|
||||
hr
|
||||
echo -e "|${green} View Changelog: https://git.io/JnmlX ${default}| "
|
||||
blank_line
|
||||
echo -e "|${yellow} It is recommended to keep KIAUH up to date. Updates ${default}| "
|
||||
echo -e "|${yellow} usually contain bugfixes, important changes or new ${default}| "
|
||||
echo -e "|${yellow} features. Please consider updating! ${default}| "
|
||||
|
||||
@@ -13,9 +13,10 @@ install_ui(){
|
||||
echo -e "| 2) [Moonraker] | 6) [Duet Web Control] | "
|
||||
echo -e "| | 7) [OctoPrint] | "
|
||||
echo -e "| Klipper Webinterface: | 8) [MoonrakerTelegramBot]| "
|
||||
echo -e "| 3) [Mainsail] | | "
|
||||
echo -e "| 4) [Fluidd] | Webcam: | "
|
||||
echo -e "| | 9) [MJPG-Streamer] | "
|
||||
echo -e "| 3) [Mainsail] | 9) [PrettyGCode] | "
|
||||
echo -e "| 4) [Fluidd] | | "
|
||||
echo -e "| | Webcam: | "
|
||||
echo -e "| | 10) [MJPG-Streamer] | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
@@ -41,6 +42,8 @@ install_menu(){
|
||||
8)
|
||||
do_action "install_MoonrakerTelegramBot" "install_ui";;
|
||||
9)
|
||||
do_action "install_pgc_for_klipper" "install_ui";;
|
||||
10)
|
||||
do_action "install_mjpg-streamer" "install_ui";;
|
||||
Q|q)
|
||||
clear; main_menu; break;;
|
||||
|
||||
@@ -61,46 +61,26 @@ main_menu(){
|
||||
while true; do
|
||||
read -p "${cyan}Perform action:${default} " action; echo
|
||||
case "$action" in
|
||||
"start klipper")
|
||||
do_action "klipper_service start" "main_ui";;
|
||||
"stop klipper")
|
||||
do_action "klipper_service stop" "main_ui";;
|
||||
"restart klipper")
|
||||
do_action "klipper_service restart" "main_ui";;
|
||||
"start moonraker")
|
||||
do_action "moonraker_service start" "main_ui";;
|
||||
"stop moonraker")
|
||||
do_action "moonraker_service stop" "main_ui";;
|
||||
"restart moonraker")
|
||||
do_action "moonraker_service restart" "main_ui";;
|
||||
"start dwc")
|
||||
do_action "dwc_service start" "main_ui";;
|
||||
"stop dwc")
|
||||
do_action "dwc_service stop" "main_ui";;
|
||||
"restart dwc")
|
||||
do_action "dwc_service restart" "main_ui";;
|
||||
"start octoprint")
|
||||
do_action "octoprint_service start" "main_ui";;
|
||||
"stop octoprint")
|
||||
do_action "octoprint_service stop" "main_ui";;
|
||||
"restart octoprint")
|
||||
do_action "octoprint_service restart" "main_ui";;
|
||||
update)
|
||||
do_action "update_kiauh" "main_ui";;
|
||||
0)
|
||||
do_action "upload_selection" "main_ui";;
|
||||
1)
|
||||
clear && install_menu && break;;
|
||||
2)
|
||||
clear && update_menu && break;;
|
||||
3)
|
||||
clear && remove_menu && break;;
|
||||
4)
|
||||
clear && advanced_menu && break;;
|
||||
5)
|
||||
clear && backup_menu && break;;
|
||||
6)
|
||||
clear && settings_menu && break;;
|
||||
"start klipper") do_action_service "start" "klipper"; main_ui;;
|
||||
"stop klipper") do_action_service "stop" "klipper"; main_ui;;
|
||||
"restart klipper") do_action_service "restart" "klipper"; main_ui;;
|
||||
"start moonraker") do_action_service "start" "moonraker"; main_ui;;
|
||||
"stop moonraker") do_action_service "stop" "moonraker"; main_ui;;
|
||||
"restart moonraker")do_action_service "restart" "moonraker"; main_ui;;
|
||||
"start dwc") do_action_service "start" "dwc"; main_ui;;
|
||||
"stop dwc") do_action_service "stop" "dwc"; main_ui;;
|
||||
"restart dwc") do_action_service "restart" "dwc"; main_ui;;
|
||||
"start octoprint") do_action_service "start" "octoprint"; main_ui;;
|
||||
"stop octoprint") do_action_service "stop" "octoprint"; main_ui;;
|
||||
"restart octoprint") do_action_service "restart" "octoprint"; main_ui;;
|
||||
update) do_action "update_kiauh" "main_ui";;
|
||||
0) do_action "upload_selection" "main_ui";;
|
||||
1) clear && install_menu && break;;
|
||||
2) clear && update_menu && break;;
|
||||
3) clear && remove_menu && break;;
|
||||
4) clear && advanced_menu && break;;
|
||||
5) clear && backup_menu && break;;
|
||||
6) clear && settings_menu && break;;
|
||||
Q|q)
|
||||
echo -e "${green}###### Happy printing! ######${default}"; echo
|
||||
exit -1;;
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
ms_theme_ui(){
|
||||
top_border
|
||||
echo -e "| ${red}~~~~~~~~ [ Mainsail Theme Installer ] ~~~~~~~${default} | "
|
||||
hr
|
||||
echo -e "| Please note: | "
|
||||
echo -e "| Installing a theme from this menu will overwrite an | "
|
||||
echo -e "| already installed theme or modified custom.css file! | "
|
||||
hr
|
||||
echo -e "| Theme: | "
|
||||
echo -e "| 1) [Dracula] | "
|
||||
echo -e "| | "
|
||||
echo -e "| R) [Remove Theme] | "
|
||||
echo -e "| | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
ms_theme_menu(){
|
||||
do_action "" "ms_theme_ui"
|
||||
while true; do
|
||||
read -p "${cyan}Perform action:${default} " action; echo
|
||||
case "$action" in
|
||||
1)
|
||||
do_action "ms_theme_dracula" "ms_theme_ui";;
|
||||
R|r)
|
||||
do_action "ms_theme_delete" "ms_theme_ui";;
|
||||
Q|q)
|
||||
clear; advanced_menu; break;;
|
||||
*)
|
||||
deny_action "ms_theme_ui";;
|
||||
esac
|
||||
done
|
||||
ms_theme_menu
|
||||
}
|
||||
@@ -12,10 +12,11 @@ remove_ui(){
|
||||
echo -e "| Klipper API: | Other: | "
|
||||
echo -e "| 2) [Moonraker] | 6) [Duet Web Control] | "
|
||||
echo -e "| | 7) [OctoPrint] | "
|
||||
echo -e "| Klipper Webinterface: | 8) [NGINX] | "
|
||||
echo -e "| 3) [Mainsail] | 9) [MJPG-Streamer] | "
|
||||
echo -e "| Klipper Webinterface: | 8) [MJPG-Streamer] | "
|
||||
echo -e "| 3) [Mainsail] | 9) [PrettyGCode] | "
|
||||
echo -e "| 4) [Fluidd] | 10) [MTelegramBot] | "
|
||||
echo -e "| | | "
|
||||
echo -e "| | 11) [NGINX] | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
@@ -39,11 +40,13 @@ remove_menu(){
|
||||
7)
|
||||
do_action "remove_octoprint" "remove_ui";;
|
||||
8)
|
||||
do_action "remove_nginx" "remove_ui";;
|
||||
9)
|
||||
do_action "remove_mjpg-streamer" "remove_ui";;
|
||||
9)
|
||||
do_action "remove_prettygcode" "remove_ui";;
|
||||
10)
|
||||
do_action "remove_MoonrakerTelegramBot" "remove_ui";;
|
||||
11)
|
||||
do_action "remove_nginx" "remove_ui";;
|
||||
Q|q)
|
||||
clear; main_menu; break;;
|
||||
*)
|
||||
|
||||
@@ -21,9 +21,10 @@ update_ui(){
|
||||
echo -e "| Other: |---------------|--------------| "
|
||||
echo -e "| 6) [DWC2-for-Klipper] | $LOCAL_DWC2FK_COMMIT | $REMOTE_DWC2FK_COMMIT | "
|
||||
echo -e "| 7) [DWC2 Web UI] | $DWC2_LOCAL_VER | $DWC2_REMOTE_VER | "
|
||||
echo -e "| 8) [MTelegramBot] | $LOCAL_MOONRAKERTELEGRAMBOT_COMMIT | $REMOTE_MOONRAKERTELEGRAMBOT_COMMIT | "
|
||||
echo -e "| 8) [PrettyGCode] | $LOCAL_PGC_COMMIT | $REMOTE_PGC_COMMIT | "
|
||||
echo -e "| 9) [MTelegramBot] | $LOCAL_MOONRAKERTELEGRAMBOT_COMMIT | $REMOTE_MOONRAKERTELEGRAMBOT_COMMIT | "
|
||||
echo -e "| |------------------------------| "
|
||||
echo -e "| 9) [System] | $DISPLAY_SYS_UPDATE | "
|
||||
echo -e "| 10) [System] | $DISPLAY_SYS_UPDATE | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
@@ -50,8 +51,10 @@ update_menu(){
|
||||
7)
|
||||
do_action "update_dwc2" "update_ui";;
|
||||
8)
|
||||
do_action "update_MoonrakerTelegramBot" "update_ui";;
|
||||
do_action "update_pgc_for_klipper" "update_ui";;
|
||||
9)
|
||||
do_action "update_MoonrakerTelegramBot" "update_ui";;
|
||||
10)
|
||||
do_action "update_system" "update_ui";;
|
||||
a)
|
||||
do_action "update_all" "update_ui";;
|
||||
|
||||
Reference in New Issue
Block a user