add: support for new dwc-for-klipper-socket by @Stephan3

This will replace the previous installer for dwc2-for-klipper without substitution. dwc2-for-klipper won't be maintained anymore.
This commit is contained in:
th33xitus
2020-09-12 09:31:40 +02:00
parent d0ac497a60
commit 9bfce238d7
6 changed files with 106 additions and 164 deletions

View File

@@ -44,7 +44,7 @@ dwc2_status(){
dcount=0
dwc2_data=(
$DWC2FK_DIR
$WEB_DWC2
$DWC_ENV_DIR
$DWC2_DIR
)
#count+1 for each found data-item from array
@@ -113,6 +113,9 @@ octoprint_status(){
fi
}
#############################################################
#############################################################
#reading the log for the last branch that got checked out assuming that this is also the currently active branch.
read_branch(){
if [ -d $KLIPPER_DIR/.git ]; then
@@ -184,6 +187,9 @@ compare_klipper_versions(){
fi
}
#############################################################
#############################################################
read_dwc2fk_versions(){
if [ -d $DWC2FK_DIR ] && [ -d $DWC2FK_DIR/.git ]; then
cd $DWC2FK_DIR
@@ -210,8 +216,8 @@ compare_dwc2fk_versions(){
}
read_local_dwc2_version(){
if [ -e $DWC2_DIR/web/version ]; then
DWC2_LOCAL_VER=$(head -n 1 $DWC2_DIR/web/version)
if [ -e $DWC2_DIR/version ]; then
DWC2_LOCAL_VER=$(head -n 1 $DWC2_DIR/version)
else
DWC2_LOCAL_VER="${red}-----${default}"
fi
@@ -240,6 +246,9 @@ compare_dwc2_versions(){
fi
}
#############################################################
#############################################################
read_local_mainsail_version(){
if [ -e $MAINSAIL_DIR/version ]; then
MAINSAIL_LOCAL_VER=$(head -n 1 $MAINSAIL_DIR/version)