diff --git a/scripts/functions.sh b/scripts/functions.sh index 2bc71de..a6b0f83 100755 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -52,6 +52,18 @@ restart_klipper(){ fi } +start_dwc(){ + status_msg "Starting DWC-for-Klipper-Socket Service ..." + sudo systemctl start dwc + ok_msg "DWC-for-Klipper-Socket Service started!" +} + +stop_dwc(){ + status_msg "Stopping DWC-for-Klipper-Socket Service ..." + sudo systemctl stop dwc + ok_msg "DWC-for-Klipper-Socket Service stopped!" +} + start_moonraker(){ if [ -e /etc/init.d/moonraker ]; then status_msg "Starting Moonraker Service ..." diff --git a/scripts/update.sh b/scripts/update.sh index 04bbc1c..8e7cd8c 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -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(){