check terminal status when connect wifi