From 1c0dfb864a371039b71597ba64c975ac2e92c883 Mon Sep 17 00:00:00 2001 From: Ramon Moesching Date: Fri, 12 Apr 2019 11:50:29 +0200 Subject: [PATCH] um-service-config: remove availability check FCT Hotfix: Remove unnecessary ping check and fix zerobyte warning. ip=dhcp is affecting init system and services are failing even when target is started with/after network-online.target Needs further investigations! Signed-off-by: Ramon Moesching --- .../um-service-cfg/files/um-service-config.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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 -