move query print to a thread, if eth0 work avoid ppp0 check