From 79ce89977563b95c60512be491ae279c32c0619a Mon Sep 17 00:00:00 2001 From: Stefano Babic Date: Fri, 8 Nov 2019 11:34:09 +0100 Subject: [PATCH] Fix setting default router after changing the name Signed-off-by: Stefano Babic --- SWUpdateGUI_osinterface.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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