This commit is contained in:
bergware
2025-04-26 15:42:27 +02:00
parent a558b497b2
commit 154073340b

View File

@@ -41,7 +41,7 @@ function carrier($dev) {
try {
for ($n = 0; $n < 10; $n++) {
if (@file_get_contents("/sys/class/net/$dev/carrier") == 1) return true;
sleep 1
sleep(1);
}
} catch (Exception $e) {
return false;