Skip to content

Commit

Permalink
static-ip: migrate to roles
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Mar 5, 2022
1 parent f6e7bf1 commit 1405682
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions package/gluon-static-ip/luasrc/lib/gluon/upgrade/540-static-ip
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,11 @@ if pcall(function() require 'gluon.mesh-vpn' end) then
apply_network('mesh_vpn', vpn_core.enabled(), 7)
end

local wan_mesh = not uci:get_bool('network', 'mesh_wan', 'disabled')
apply_network('mesh_wan', wan_mesh, 10)
local uplink_mesh = not uci:get_bool('network', 'mesh_uplink', 'disabled')
apply_network('mesh_uplink', uplink_mesh, 10)

if uci:get('network', 'mesh_lan', 'proto') then
local lan_mesh = not uci:get_bool('network', 'mesh_lan', 'disabled')
apply_network('mesh_lan', lan_mesh, 11)
end
local other_mesh = not uci:get_bool('network', 'mesh_other', 'disabled')
apply_network('mesh_other', other_mesh, 11)

apply_network('loopback', true, 12)

Expand Down

0 comments on commit 1405682

Please sign in to comment.