Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions packages/ns-flashstart/files/ns-flashstart
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,8 @@ def __save(pending_changes: bool):
if pending_dhcp:
subprocess.run(['ubus', 'call', 'uci', 'commit', json.dumps({'config': 'dhcp'})], check=True)
if pending_firewall:
# reload the firewall if changes are there, this is done cause sets are not reloaded correctly after the
# commit this 100% needs to be fixed upstream.
e_uci.commit('firewall')
subprocess.run(['fw4', 'restart'], capture_output=True)
subprocess.run(['ubus', 'call', 'uci', 'commit', json.dumps({'config': 'firewall'})], check=True)
subprocess.run(['fw4', 'reload-sets'], capture_output=True)


def __add_bypass_ipset():
Expand Down
Loading