mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-11 17:44:28 +05:00
71 lines
2.5 KiB
Bash
Executable File
71 lines
2.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#=======================================================================#
|
|
# Copyright (C) 2020 - 2022 Dominik Willner <th33xitus@gmail.com> #
|
|
# #
|
|
# This file is part of KIAUH - Klipper Installation And Update Helper #
|
|
# https://github.com/th33xitus/kiauh #
|
|
# #
|
|
# This file may be distributed under the terms of the GNU GPLv3 license #
|
|
#=======================================================================#
|
|
|
|
set -e
|
|
|
|
function remove_ui() {
|
|
top_border
|
|
echo -e "| ${red}~~~~~~~~~~~~~~ [ Remove Menu ] ~~~~~~~~~~~~~~${white} |"
|
|
hr
|
|
echo -e "| ${yellow}INFO: Configurations and/or any backups will be kept!${white} |"
|
|
hr
|
|
echo -e "| Firmware & API: | 3rd Party Webinterface: |"
|
|
echo -e "| 1) [Klipper] | 6) [OctoPrint] |"
|
|
echo -e "| 2) [Moonraker] | |"
|
|
echo -e "| | Webcam Streamer: |"
|
|
echo -e "| Klipper Webinterface: | 7) [MJPG-Streamer] |"
|
|
echo -e "| 3) [Mainsail] | |"
|
|
echo -e "| 4) [Fluidd] | Other: |"
|
|
echo -e "| | 8) [PrettyGCode] |"
|
|
echo -e "| Touchscreen GUI: | 9) [Telegram Bot] |"
|
|
echo -e "| 5) [KlipperScreen] | 10) [Obico for Klipper] |"
|
|
echo -e "| | 11) [NGINX] |"
|
|
back_footer
|
|
}
|
|
|
|
function remove_menu() {
|
|
do_action "" "remove_ui"
|
|
|
|
local action
|
|
while true; do
|
|
read -p "${cyan}####### Perform action:${white} " action
|
|
case "${action}" in
|
|
1)
|
|
do_action "remove_klipper" "remove_ui";;
|
|
2)
|
|
do_action "remove_moonraker" "remove_ui";;
|
|
3)
|
|
do_action "remove_mainsail" "remove_ui";;
|
|
4)
|
|
do_action "remove_fluidd" "remove_ui";;
|
|
5)
|
|
do_action "remove_klipperscreen" "remove_ui";;
|
|
6)
|
|
do_action "remove_octoprint" "remove_ui";;
|
|
7)
|
|
do_action "remove_mjpg-streamer" "remove_ui";;
|
|
8)
|
|
do_action "remove_prettygcode" "remove_ui";;
|
|
9)
|
|
do_action "remove_telegram_bot" "remove_ui";;
|
|
10)
|
|
do_action "remove_moonraker_obico" "remove_ui";;
|
|
11)
|
|
do_action "remove_nginx" "remove_ui";;
|
|
B|b)
|
|
clear; main_menu; break;;
|
|
*)
|
|
deny_action "remove_ui";;
|
|
esac
|
|
done
|
|
remove_menu
|
|
}
|