Vim 256 colors detection

My TERM is xterm-256color, I have /usr/share/terminfo/x/xterm-256color and using vim-fuller package. The problem is that :echo &t_Co returns 8 and theme looks wrong by default. If I do :set t_Co=256 it starts to work fine. As I know vim should take if from the terminfo, but I don't know how to check what it returns, it should be possible with

% tput colors
256

but I've not found tput in openwrt packages.