Update
This commit is contained in:
parent
5a38206fd5
commit
34fce88095
4 changed files with 8 additions and 0 deletions
|
@ -82,7 +82,9 @@ function remove_git_backup(){
|
|||
fi
|
||||
if [ -f "$ENTWARE_FILE" ]; then
|
||||
echo -e "Info: Removing packages..."
|
||||
set +e
|
||||
"$ENTWARE_FILE" --autoremove remove inotifywait
|
||||
set -e
|
||||
fi
|
||||
if [ ! -n "$(ls -A "$HS_CONFIG_FOLDER")" ]; then
|
||||
rm -rf "$HS_CONFIG_FOLDER"
|
||||
|
|
|
@ -70,8 +70,10 @@ function remove_moonraker_obico(){
|
|||
rm -f /etc/init.d/S99moonraker_obico
|
||||
if [ -f "$ENTWARE_FILE" ]; then
|
||||
echo -e "Info: Removing packages..."
|
||||
set +e
|
||||
"$ENTWARE_FILE" --autoremove remove python3
|
||||
"$ENTWARE_FILE" --autoremove remove python3-pip
|
||||
set -e
|
||||
fi
|
||||
echo -e "Info: Restarting Moonraker service..."
|
||||
stop_moonraker
|
||||
|
|
|
@ -70,7 +70,9 @@ function remove_moonraker_timelapse(){
|
|||
rm -f /usr/data/moonraker/moonraker/moonraker/components/timelapse.py
|
||||
rm -f /usr/data/moonraker/moonraker/moonraker/components/timelapse.pyc
|
||||
if [ -f /opt/bin/ffmpeg ]; then
|
||||
set +e
|
||||
"$ENTWARE_FILE" --autoremove remove ffmpeg
|
||||
set -e
|
||||
fi
|
||||
if grep -q "include Helper-Script/timelapse" "$PRINTER_CFG" ; then
|
||||
echo -e "Info: Removing Moonraker Timelapse configurations in printer.cfg file..."
|
||||
|
|
|
@ -84,11 +84,13 @@ function remove_usb_camera(){
|
|||
echo -e "Info: Removing file..."
|
||||
rm -f "$INITD_FOLDER"/S50usb_camera
|
||||
echo -e "Info: Removing packages..."
|
||||
set +e
|
||||
"$ENTWARE_FILE" --autoremove remove mjpg-streamer-www
|
||||
"$ENTWARE_FILE" --autoremove remove mjpg-streamer-output-http
|
||||
"$ENTWARE_FILE" --autoremove remove mjpg-streamer-input-uvc
|
||||
"$ENTWARE_FILE" --autoremove remove mjpg-streamer-input-http
|
||||
"$ENTWARE_FILE" --autoremove remove mjpg-streamer
|
||||
set -e
|
||||
ok_msg "USB Camera Support has been removed successfully!"
|
||||
echo -e " Please reboot your printer by using power switch on back!"
|
||||
return;;
|
||||
|
|
Loading…
Add table
Reference in a new issue