diff --git a/SWUpdateGUI_osinterface.lua b/SWUpdateGUI_osinterface.lua index d71edaf..f2a27bd 100644 --- a/SWUpdateGUI_osinterface.lua +++ b/SWUpdateGUI_osinterface.lua @@ -10,7 +10,7 @@ function ifup(setup) for _,intf in pairs(setup) do local cmd - if intf["name"] == "DefaultGateway" then + if intf["name"] == "Gateway" then cmd = "route del default;route add default gw " .. intf["addr"] else if intf["dhcp"] then @@ -21,4 +21,4 @@ function ifup(setup) end os.execute(cmd) end -end \ No newline at end of file +end