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 <ramon.moesching@netmodule.com>
This commit is contained in:
parent
004fa88b74
commit
1c0dfb864a
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue