fix: stop/start dwc service when updating

This commit is contained in:
th33xitus
2020-09-14 22:54:01 +02:00
parent a2201ab3f7
commit 64b6d6b26a
2 changed files with 14 additions and 2 deletions

View File

@@ -33,14 +33,14 @@ update_klipper(){
}
update_dwc2fk(){
stop_klipper
stop_dwc
bb4u "dwc2"
if [ ! -d $DWC2FK_DIR ]; then
cd ${HOME} && git clone $DWC2FK_REPO
else
cd $DWC2FK_DIR && git pull
fi
start_klipper
start_dwc
}
update_dwc2(){