Skip to content

Commit

Permalink
Fix setting default router after changing the name
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Babic <[email protected]>
  • Loading branch information
sbabic committed Nov 8, 2019
1 parent 12aacaa commit 79ce899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SWUpdateGUI_osinterface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,4 +21,4 @@ function ifup(setup)
end
os.execute(cmd)
end
end
end

0 comments on commit 79ce899

Please sign in to comment.