Implemented interface rescan (#9511)

* Implemented interface rescan

* Changed confirmation message for recscan interfaces
This commit is contained in:
Manuel Ceroni 2025-08-13 15:41:43 +02:00 committed by GitHub
parent 63c8dd991d
commit daba9b5d82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 43 additions and 4 deletions

View file

@ -713,6 +713,15 @@ end
-- ##############################################
function system_config:rescanInterfaces()
if isAdministrator() then
os.remove(system_config.configFile())
sys_utils.rebootSystem()
end
end
-- ##############################################
function system_config:_getNetworkInterfaceConfig(iface, if_type)
local network_config = self.config.interfaces.configuration