diff --git a/recipes-extended/um-service-cfg/files/um-service-config.sh b/recipes-extended/um-service-cfg/files/um-service-config.sh index e2bbd4e..66d29d1 100644 --- a/recipes-extended/um-service-cfg/files/um-service-config.sh +++ b/recipes-extended/um-service-cfg/files/um-service-config.sh @@ -18,7 +18,7 @@ fi # fetch user module status and network informations for f in $UM_DTS_NODE/*; do - echo "USER_MODULE_${f##*/}=\"`cat $f`\"" | sed -E "s/,|-/_/g" >> $UM_CONFIG + echo "USER_MODULE_${f##*/}=\"`cat $f | tr -d '\0' `\"" | sed -E "s/,|-/_/g" >> $UM_CONFIG done cat $UM_PORTS >> $UM_CONFIG @@ -28,15 +28,6 @@ source $UM_CONFIG if [[ $USER_MODULE_status = "disabled" ]]; then exit 1 -fi - -ping $USER_MODULE_ipv4_addr -w 3 -c 1 - -if [ $? -eq 0 ]; then - echo $DEBUG_NOTE_ORIGIN: Target with ipv4 $USER_MODULE_ipv4_addr available +elif [[ $USER_MODULE_status = "okay" ]]; then exit 0 -else - echo $DEBUG_NOTE_ORIGIN: Target with ipv4 $USER_MODULE_ipv4_addr not available - exit 1 fi -