Skip to content

Commit

Permalink
ffwizard: enable the ffuplink interface when sharenet is selected
Browse files Browse the repository at this point in the history
The ffuplink interface is disabled by default on a fresh install.
During the course of running the wizard, the user must select if
they want to share their internet connection or not.  If the user
decides to share their internet, then the ffuplink interface shall
be enabled (setting disabled=0).

This addresses freifunk-berlin/firmware#603
  • Loading branch information
pmelange authored and SvenRoederer committed Dec 30, 2019
1 parent a548568 commit 1aebe45
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ function main.write(self, section, value)
--share internet was not enabled before, set to false now
uci:set("ffwizard", "settings", "sharenet", 0)
uci:save("ffwizard")
--in case the wizard has been re-ran, ensure ffuplink is disabled
uci:set("network", "ffuplink", "disabled", "1")
else
--sharenet was enabled, therefore enable the ffuplink network interface
uci:set("network", "ffuplink", "disabled", "0")
end

-- store wizard data to fill fields if wizard is rerun
Expand Down

0 comments on commit 1aebe45

Please sign in to comment.