Update useful_macros.sh

This commit is contained in:
Cyril Guislain 2024-04-25 12:38:02 +02:00 committed by GitHub
parent 033a2916e8
commit 3b01a848d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,12 +2,6 @@
set -e
function reload_camera(){
echo -e "Info: Reload camera config..."
ACTION=reload /usr/bin/auto_uvc.sh
exit 0
}
function backup_klipper(){
if [ -f /usr/data/printer_data/config/backup_config.tar.gz ]; then
rm -f /usr/data/printer_data/config/backup_config.tar.gz
@ -64,6 +58,12 @@ function restore_moonraker(){
exit 0
}
function reload_camera(){
echo -e "Info: Reloading camera config..."
ACTION=reload /usr/bin/auto_uvc.sh
exit 0
}
if [ "$1" == "-backup_klipper" ]; then
backup_klipper
elif [ "$1" == "-restore_klipper" ]; then