' : ''; $wait = 5; while ($wait > 0) { if (exec("ip link show ".escapeshellarg($port)."|grep -om1 'UP>'")==$pass) break; sleep(1); $wait--; } ?>