mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 19:14:27 +05:00
fix: make adding the kiauh_macros optional
This commit is contained in:
@@ -114,8 +114,6 @@ MULTI_STARTSCRIPT
|
||||
|
||||
create_minimal_printer_cfg(){
|
||||
/bin/sh -c "cat > $1" << MINIMAL_CFG
|
||||
[include kiauh_macros.cfg]
|
||||
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/
|
||||
pin_map: arduino
|
||||
@@ -182,7 +180,6 @@ create_single_klipper_instance(){
|
||||
|
||||
### create basic configs if missing
|
||||
[ ! -f $PRINTER_CFG ] && create_minimal_printer_cfg "$PRINTER_CFG"
|
||||
[ ! -f $PRINTER_CFG_LOC/kiauh_macros.cfg ] && cp ${SRCDIR}/kiauh/resources/kiauh_macros.cfg $PRINTER_CFG_LOC/kiauh_macros.cfg
|
||||
|
||||
### enable instance
|
||||
sudo systemctl enable klipper.service
|
||||
@@ -215,7 +212,6 @@ create_multi_klipper_instance(){
|
||||
|
||||
### create basic configs if missing
|
||||
[ ! -f $PRINTER_CFG ] && create_minimal_printer_cfg "$PRINTER_CFG"
|
||||
[ ! -f $PRINTER_CFG_LOC/printer_$INSTANCE/kiauh_macros.cfg ] && cp ${SRCDIR}/kiauh/resources/kiauh_macros.cfg $PRINTER_CFG_LOC/printer_$INSTANCE/kiauh_macros.cfg
|
||||
|
||||
### enable instance
|
||||
sudo systemctl enable klipper-$INSTANCE.service
|
||||
|
||||
Reference in New Issue
Block a user