@ElDavoPer convertire la porta rossa in una quinta porta lan:
https://github.com/ElDavoo/agevo/wiki/IT:-Tips-and-tricks
Mi sembra un "dirty hack" quindi se trovate un modo più elegante di gestire la cosa ve ne sarei grato. Però funziona!
Ho provato il "dirty hack" ma non mi funziona
Come prima cosa ho notato che il path che mi ritrovo è leggermente diverso:
/usr/lib/lua/wansensingfw/scripthelpers.lua
anzichè:
/usr/lib/lua/wansensing/scripthelpers.lua
ma penso sia solo un refuso.
Io ho modificato così:
--- Checks if a l2 device has carrier
-- @param l2intf the interface name (netdevice interface name)
-- @return {boolean} whether the given interface has carrier or not
M.l2HasCarrier = function(l2intf)
local status, carrier = pcall(run_checkLinkState,l2intf)
if l2intf == 'eth4' then
return false
end
if status and carrier == 'up' then
return true
else
return false
end
end
è corretto?