Update useful_macros.sh
This commit is contained in:
parent
033a2916e8
commit
3b01a848d6
1 changed files with 6 additions and 6 deletions
|
@ -2,12 +2,6 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
function reload_camera(){
|
|
||||||
echo -e "Info: Reload camera config..."
|
|
||||||
ACTION=reload /usr/bin/auto_uvc.sh
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
function backup_klipper(){
|
function backup_klipper(){
|
||||||
if [ -f /usr/data/printer_data/config/backup_config.tar.gz ]; then
|
if [ -f /usr/data/printer_data/config/backup_config.tar.gz ]; then
|
||||||
rm -f /usr/data/printer_data/config/backup_config.tar.gz
|
rm -f /usr/data/printer_data/config/backup_config.tar.gz
|
||||||
|
@ -64,6 +58,12 @@ function restore_moonraker(){
|
||||||
exit 0
|
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
|
if [ "$1" == "-backup_klipper" ]; then
|
||||||
backup_klipper
|
backup_klipper
|
||||||
elif [ "$1" == "-restore_klipper" ]; then
|
elif [ "$1" == "-restore_klipper" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue