From e771ca3b8ec186de79bd35dc71ac4cdb37645a60 Mon Sep 17 00:00:00 2001 From: Nektarios Katakis Date: Fri, 10 Jan 2020 12:11:52 +0000 Subject: [PATCH] networks: add first boot step for router config helper Signed-off-by: Nektarios Katakis Reviewed-by: James Valleroy --- plinth/modules/networks/__init__.py | 6 ++++++ plinth/modules/networks/urls.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/plinth/modules/networks/__init__.py b/plinth/modules/networks/__init__.py index 68a12dae3..5879a4513 100644 --- a/plinth/modules/networks/__init__.py +++ b/plinth/modules/networks/__init__.py @@ -33,6 +33,12 @@ is_essential = True managed_packages = ['network-manager', 'batctl'] +first_boot_steps = [{ + 'id': 'router_setup_wizard', + 'url': 'networks:firstboot_router_setup', + 'order': 4, +}] + name = _('Networks') description = [ diff --git a/plinth/modules/networks/urls.py b/plinth/modules/networks/urls.py index 56c325aca..6c528b349 100644 --- a/plinth/modules/networks/urls.py +++ b/plinth/modules/networks/urls.py @@ -45,4 +45,7 @@ urlpatterns = [ url(r'^sys/networks/router-setup-guide/$', views.router_configuration_help_page, name='router_setup'), + url(r'^sys/networks/firstboot/$', + public(views.router_configuration_help_page), + name='firstboot_router_setup'), ]