Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable ffuplink-interface during initial setup #185

Merged
merged 7 commits into from
Jan 27, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ uci set ffberlin-uplink.uplink.auth=none
uci commit ffberlin-uplink

create_ffuplink
uci set network.ffuplink.disabled=1
uci commit network.ffuplink
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function main.write(self, section, value)
uci:set("ffwizard", "settings", "sharenet", 1)
uci:set("ffwizard", "settings", "usersBandwidthUp", usersBandwidthUp:formvalue(section))
uci:set("ffwizard", "settings", "usersBandwidthDown", usersBandwidthDown:formvalue(section))
uci:set("network", "ffuplink", "disabled", "0")

uci:section("openvpn", "openvpn", "ffuplink", {
--persist_tun='0',
Expand All @@ -82,6 +83,7 @@ function main.write(self, section, value)

uci:save("openvpn")
uci:save("ffwizard")
uci:save("network","ffuplink")

-- I need to commit this here, don't know why I can not do this in apply changes
uci:commit("openvpn")
Expand Down