diff --git a/feeds/ucentral/ucentral-client/files/etc/init.d/ucentral b/feeds/ucentral/ucentral-client/files/etc/init.d/ucentral index 9fa2bb2ed..78e1ecf67 100755 --- a/feeds/ucentral/ucentral-client/files/etc/init.d/ucentral +++ b/feeds/ucentral/ucentral-client/files/etc/init.d/ucentral @@ -44,14 +44,15 @@ start_service() { server=$(cat /etc/ucentral/gateway.json | jsonfilter -e '@["server"]') port=$(cat /etc/ucentral/gateway.json | jsonfilter -e '@["port"]') + [ -n "$server" -a -n "$port" ] || return 0 boot_cause=$(cat /tmp/pstore | jsonfilter -e '@["pstore"][-1]'.boot_cause) [ -z $boot_cause ] && boot_cause=coldboot procd_open_instance procd_set_param command "$PROG" [ -n "$serial" ] && procd_append_param command -S $serial - [ -n "$server" ] && procd_append_param command -s $server - [ -n "$port" ] && procd_append_param command -P $port + procd_append_param command -s $server + procd_append_param command -P $port [ "$debug" -eq 0 ] || procd_append_param command -d [ "$insecure" -eq 0 ] || procd_append_param command -i [ -z "$(mount | grep 'tmpfs on / type tmpfs')" ] || procd_append_param command -r