0) { if (exec("ip -br link show ".escapeshellarg($port)." | awk '{print \$2;exit}'")==strtoupper($cmd)) break; sleep(1); $wait--; } ?>