This commit is contained in:
bergware
2025-02-14 18:31:11 +01:00
parent 0471cf9652
commit c21358142e

View File

@@ -26,7 +26,7 @@ $cfg = '/boot/config/network.cfg';
function port($x) {
$sys = "/sys/class/net";
return file_exists("$sys/br{$x}") ? "br${x}" : (file_exists("$sys/bond{$x}") ? "bond{$x}" : "eth{$x}");
return file_exists("$sys/br{$x}") ? "br{$x}" : (file_exists("$sys/bond{$x}") ? "bond{$x}" : "eth{$x}");
}
function update_wireguard($ifname) {